adding node exporter, loki, and promtail
This commit is contained in:
11
addon-prometheus/rootfs/etc/cont-init.d/prometheus.sh
Normal file
11
addon-prometheus/rootfs/etc/cont-init.d/prometheus.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/command/with-contenv bashio
|
||||
# ==============================================================================
|
||||
# Home Assistant Community Add-on: Prometheus
|
||||
# Configures Prometheus
|
||||
# ==============================================================================
|
||||
echo "${SUPERVISOR_TOKEN}" > '/run/home-assistant.token'
|
||||
|
||||
mkdir -p /data/prometheus
|
||||
find /data/prometheus -not -perm 0644 -type f -exec chmod 0660 {} \;
|
||||
find /data/prometheus -not -perm 0755 -type d -exec chmod 0770 {} \;
|
||||
chown -R prometheus:prometheus /data/prometheus
|
Reference in New Issue
Block a user