diff --git a/00. Inbox/Linux/架站/Grafana.md b/00. Inbox/Linux/架站/Grafana.md index cea4a4f..b753f2a 100644 --- a/00. Inbox/Linux/架站/Grafana.md +++ b/00. Inbox/Linux/架站/Grafana.md @@ -47,25 +47,28 @@ services: ## 設定 InfluxDB 先把 docker 建立起來,然後打開 influxdb([http://awinpi4:8082](http://awinpi4:8082/)),建立帳號、密碼、資料庫名稱。如下: -![[20240217_212138_chrome_1894x1254.png]] +![[20240217_212138_chrome_setup_influxdb.png]] 之後會出現一串Token,如下,這個要記起來。 -![[20240217_212319_chrome_1894x1254.png]] +![[20240217_212319_chrome_1894x1254_influxdb_token.png]] ## 設定 telegraf -然後打開 `./data/telegraf/telegraf.conf` ,找到 `[[outputs.influxdb_v2]]` 這個區塊,把 `token` 的值改為剛剛那一串。 +然後打開 `./data/telegraf/telegraf.conf` ,找到 `[[outputs.influxdb_v2]]` 這個區塊,把 `urls`、`organization`、`bucket`、`token` 的值改為剛剛建立與複製的那一串。如圖: +![[20240217_213900_Code_setup_telegraf_ini.png]] 然後重啟 docker compose。 # 設定 InfluxDB 的 dashboard 到 [https://github.com/influxdata/community-templates#templates](https://github.com/influxdata/community-templates#templates) 挑一個 template,例如 [# Raspberry Pi System Template](https://github.com/influxdata/community-templates/tree/master/raspberry-pi),找到他的網址,如下: -![[20240217_213108_chrome_1864x1044.png]] +![[20240217_213108_chrome_1864x1044_raspberrypi_template_on_github.png]] 複製這一行,然後到 InfluxDB 的 template 去把它 import 進來。如下: -![[20240217_213237_chrome_2753x1254.png]] +![[20240217_213237_chrome_2753x1254_setup_influxdb.png]] -![[20240217_213311_chrome_2753x1254.png]] +![[20240217_213311_chrome_2753x1254_influxdb_install_template.png]] 接著 Dashboards 就會出現一個 Raspberry Pi System 的 dashboard 了。 -![[20240217_213343_chrome_1624x1120.png]] +![[20240217_213343_chrome_1624x1120_influxdb_dashboard.png]] +點下去之後大概是長這樣: +![[20240217_214001_chrome_2604x1716_influxdb_dashboard.png]] \ No newline at end of file diff --git a/attachments/20240217_212138_chrome_1894x1254.png b/attachments/20240217_212138_chrome_setup_influxdb.png similarity index 100% rename from attachments/20240217_212138_chrome_1894x1254.png rename to attachments/20240217_212138_chrome_setup_influxdb.png diff --git a/attachments/20240217_212319_chrome_1894x1254.png b/attachments/20240217_212319_chrome_1894x1254_influxdb_token.png similarity index 100% rename from attachments/20240217_212319_chrome_1894x1254.png rename to attachments/20240217_212319_chrome_1894x1254_influxdb_token.png diff --git a/attachments/20240217_213108_chrome_1864x1044.png b/attachments/20240217_213108_chrome_1864x1044_raspberrypi_template_on_github.png similarity index 100% rename from attachments/20240217_213108_chrome_1864x1044.png rename to attachments/20240217_213108_chrome_1864x1044_raspberrypi_template_on_github.png diff --git a/attachments/20240217_213237_chrome_2753x1254.png b/attachments/20240217_213237_chrome_2753x1254_setup_influxdb.png similarity index 100% rename from attachments/20240217_213237_chrome_2753x1254.png rename to attachments/20240217_213237_chrome_2753x1254_setup_influxdb.png diff --git a/attachments/20240217_213311_chrome_2753x1254.png b/attachments/20240217_213311_chrome_2753x1254_influxdb_install_template.png similarity index 100% rename from attachments/20240217_213311_chrome_2753x1254.png rename to attachments/20240217_213311_chrome_2753x1254_influxdb_install_template.png diff --git a/attachments/20240217_213343_chrome_1624x1120.png b/attachments/20240217_213343_chrome_1624x1120_influxdb_dashboard.png similarity index 100% rename from attachments/20240217_213343_chrome_1624x1120.png rename to attachments/20240217_213343_chrome_1624x1120_influxdb_dashboard.png diff --git a/attachments/20240217_213900_Code_setup_telegraf_ini.png b/attachments/20240217_213900_Code_setup_telegraf_ini.png new file mode 100644 index 0000000..fc4c45a Binary files /dev/null and b/attachments/20240217_213900_Code_setup_telegraf_ini.png differ diff --git a/attachments/20240217_214001_chrome_2604x1716 1.png b/attachments/20240217_214001_chrome_2604x1716 1.png new file mode 100644 index 0000000..d2091a8 Binary files /dev/null and b/attachments/20240217_214001_chrome_2604x1716 1.png differ diff --git a/attachments/20240217_214001_chrome_2604x1716_influxdb_dashboard.png b/attachments/20240217_214001_chrome_2604x1716_influxdb_dashboard.png new file mode 100644 index 0000000..d2091a8 Binary files /dev/null and b/attachments/20240217_214001_chrome_2604x1716_influxdb_dashboard.png differ