Commit 697ea7d2 authored by Nick Busey's avatar Nick Busey

Configuring grafana out of the box

parent abdd69ec
Pipeline #44877862 passed with stages
in 33 seconds
...@@ -6,7 +6,8 @@ You can use it to visualize the Weather data imported by [influxdb_darksky](soft ...@@ -6,7 +6,8 @@ You can use it to visualize the Weather data imported by [influxdb_darksky](soft
power, activity, and other data from [Home Assistant](software/homeassistant), and general server power, activity, and other data from [Home Assistant](software/homeassistant), and general server
information via Telegraf. information via Telegraf.
Grafana comes configured with a Dashboard for you out of the box. Grafana comes configured with a Dashboard and Datasource connected for you out of the box. This default
dash and datasource will only with if you have the [TICK](software/tick) stack enabled.
You can login with the default user and pass you setup for HomelabOS. You can login with the default user and pass you setup for HomelabOS.
......
# InfluxDB # TICK
Enabling the TICK stack enables Telegraf, [InfluxDB](https://www.influxdata.com/time-series-platform/influxdb/), Chronograf, and Kapacitor.
[InfluxDB](https://www.influxdata.com/time-series-platform/influxdb/) is the Time Series Database that [Darksky](/software/darksky) writes to and [Grafana](/software/grafana) can visualize. [InfluxDB](https://www.influxdata.com/time-series-platform/influxdb/) is the Time Series Database that [Darksky](/software/darksky) writes to and [Grafana](/software/grafana) can visualize.
...@@ -6,4 +8,4 @@ It can also take data from [Home Assistant](/software/homeassistant) and many ot ...@@ -6,4 +8,4 @@ It can also take data from [Home Assistant](/software/homeassistant) and many ot
## Access ## Access
There is no direct access, but you can access it in Grafana by creating a new InfluxDB data source pointing at host `influxdb`. For security reasons Chronograf is not exposed as a service with Traefik, as it has no authentication. It is served on port 8888.
\ No newline at end of file
...@@ -30,7 +30,6 @@ pages: ...@@ -30,7 +30,6 @@ pages:
- Gitea: software/gitea.md - Gitea: software/gitea.md
- Grafana: software/grafana.md - Grafana: software/grafana.md
- Home Assistant: software/homeassistant.md - Home Assistant: software/homeassistant.md
- InfluxDB: software/influxdb.md
- Inventario: software/inventario.md - Inventario: software/inventario.md
- Jackett: software/jackett.md - Jackett: software/jackett.md
- Kibitzr: software/kibitzr.md - Kibitzr: software/kibitzr.md
...@@ -47,5 +46,6 @@ pages: ...@@ -47,5 +46,6 @@ pages:
- Radarr / Sonarr: software/radarr-sonarr.md - Radarr / Sonarr: software/radarr-sonarr.md
- Synchthing: software/syncthing.md - Synchthing: software/syncthing.md
- The Lounge: software/thelounge.md - The Lounge: software/thelounge.md
- TICK: software/tick.md
- Transmission: software/transmission.md - Transmission: software/transmission.md
... ...
...@@ -68,11 +68,11 @@ ...@@ -68,11 +68,11 @@
tor_domain: "{{ tor_http_domain_file.stdout if tor_http_domain is defined else '' }}" tor_domain: "{{ tor_http_domain_file.stdout if tor_http_domain is defined else '' }}"
- name: Configure HomelabOS systemd service. - name: Configure HomelabOS systemd service.
template: src=homelabos_docs.service dest=/etc/systemd/system/homelabos_docs.service template: src=docs.service dest=/etc/systemd/system/docs.service
- name: Start HomelabOS Docs - name: Start HomelabOS Docs
systemd: systemd:
name: homelabos_docs name: docs
enabled: "yes" enabled: "yes"
daemon-reload: "yes" daemon-reload: "yes"
state: restarted state: restarted
......
...@@ -17,6 +17,15 @@ ...@@ -17,6 +17,15 @@
vars: vars:
tor_domain: "{{ tor_http_domain_file.stdout if tor_http_domain is defined else '' }}" tor_domain: "{{ tor_http_domain_file.stdout if tor_http_domain is defined else '' }}"
- name: Configure grafana influx datasource
template: src=grafana.datasource.influxdb.yaml dest=/var/homelabos/grafana/datasources/
- name: Configure grafana influx dashboard
template: src={{ item }} dest=/var/homelabos/grafana/dashboards/
loop:
- grafana.dashboards.yaml
- grafana.dash.homelab.json
- name: Configure grafana systemd service. - name: Configure grafana systemd service.
template: src=grafana.service dest=/etc/systemd/system/grafana.service template: src=grafana.service dest=/etc/systemd/system/grafana.service
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment