Skip to content

Commit 14ae159

Browse files
committed
Cache all images
1 parent 6cce981 commit 14ae159

File tree

6 files changed

+2954
-1398
lines changed

6 files changed

+2954
-1398
lines changed

_posts/2020/include-anything-in-grafana.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,26 @@ Many people have added InfluxDB and [Grafana](https://grafana.com/) to their set
1717
## Instruction
1818

1919
1. Login to Grafana, and add a new panel: click the first button on the top-right hand corner titled `Add panel`, and then `Add new panel` blue button in the new box.
20-
![screenshot#1](https://github.com/zadworny/signalk.github.io/blob/master/images/display-anything-in-grafana-1.png?raw=true)
20+
![screenshot#1](https://raw.githubusercontent.com/zadworny/signalk.github.io/refs/heads/master/images/display-anything-in-grafana-1.png)
2121

2222
2. Now focus on the setting in the `Panel` section on the right-hand side. First, insert any title you like in `Settings`. Then scroll down to `Visualisation` tab, and choose `Text` plugin.
23-
![screenshot#2](https://github.com/zadworny/signalk.github.io/blob/master/images/display-anything-in-grafana-2.png?raw=true)
23+
![screenshot#2](https://raw.githubusercontent.com/zadworny/signalk.github.io/refs/heads/master/images/display-anything-in-grafana-2.png)
2424

2525
3. Below that in the `Display` section, select `HTML` mode and insert the following in the `Content` textarea:
2626
`<iframe src="http://localhost:3000/@signalk/maptracker/" title="Map Tracker" style="width:100%; height:100%; padding:0; margin:0; border:none;"></iframe>`
2727
In the src="" insert an URL address of your choice - http://localhost:3000/@signalk/freeboard-sk/ is just for the tutorial purposes. Click the blue `Apply` button on the top-right hand corner to save the changes.
28-
![screenshot#3](https://github.com/zadworny/signalk.github.io/blob/master/images/display-anything-in-grafana-3.png?raw=true)
28+
![screenshot#3](https://raw.githubusercontent.com/zadworny/signalk.github.io/refs/heads/master/images/display-anything-in-grafana-3.png)
2929

3030
4. Click `Save dashboard` - the second button on the top-right hand corner
31-
![screenshot#4](https://github.com/zadworny/signalk.github.io/blob/master/images/display-anything-in-grafana-5.png?raw=true)
31+
![screenshot#4](https://raw.githubusercontent.com/zadworny/signalk.github.io/refs/heads/master/images/display-anything-in-grafana-5.png)
3232

3333
5. You can add more panels like this, and organise your dashboard however you like.
34-
![screenshot#5](https://github.com/zadworny/signalk.github.io/blob/master/images/display-anything-in-grafana-6.png?raw=true)
34+
![screenshot#5](https://raw.githubusercontent.com/zadworny/signalk.github.io/refs/heads/master/images/display-anything-in-grafana-6.png)
3535

3636
**FIX:** The Grafana's `Text` plugin may not work with HTML code by default, and you may need to fix it in 3 simple steps:
3737

3838
- Open Grafana ini file, it's usually located in `signalk_volume/grafana/conf/defaults.ini`
3939
- Find `disable_sanitize_html` value and change it from `false` to `true`
40-
![screenshot#6](https://github.com/zadworny/signalk.github.io/blob/master/images/display-anything-in-grafana-7.png?raw=true)
40+
![screenshot#6](https://raw.githubusercontent.com/zadworny/signalk.github.io/refs/heads/master/images/display-anything-in-grafana-7.png)
4141
- Save the file and restart Grafana
4242
- Source: [https://github.com/grafana/grafana/blob/v6.0.0/CHANGELOG.md#breaking-changes-1](https://github.com/grafana/grafana/blob/v6.0.0/CHANGELOG.md#breaking-changes-1)

astro.config.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,6 @@ export default defineConfig({
3535
icon({
3636
include: {
3737
tabler: ['*'],
38-
'flat-color-icons': [
39-
'template',
40-
'gallery',
41-
'approval',
42-
'document',
43-
'advertising',
44-
'currency-exchange',
45-
'voice-presentation',
46-
'business-contact',
47-
'database',
48-
],
4938
},
5039
}),
5140

@@ -74,7 +63,7 @@ export default defineConfig({
7463
],
7564

7665
image: {
77-
domains: ['cdn.pixabay.com'],
66+
remotePatterns: [{ protocol: 'https' }],
7867
},
7968

8069
markdown: {

0 commit comments

Comments
 (0)