aboutsummaryrefslogtreecommitdiff
path: root/app/telemetry/config/grafana-litestream.yml
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-26 21:31:58 +0100
committerAlex Auvolat <alex@adnab.me>2022-02-26 21:31:58 +0100
commit41a65b803217d7a3ebdaa5029d58a5cac4ce63da (patch)
tree3853243fc3b3eb4999479ae5fb5d116f047b49d1 /app/telemetry/config/grafana-litestream.yml
parent7dcb4072dcced7a4d92ae2c356722ccb6bfd5e2b (diff)
downloadnixcfg-41a65b803217d7a3ebdaa5029d58a5cac4ce63da.tar.gz
nixcfg-41a65b803217d7a3ebdaa5029d58a5cac4ce63da.zip
Allow grafana to move between nodes
Diffstat (limited to 'app/telemetry/config/grafana-litestream.yml')
-rw-r--r--app/telemetry/config/grafana-litestream.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/telemetry/config/grafana-litestream.yml b/app/telemetry/config/grafana-litestream.yml
new file mode 100644
index 0000000..a537d9c
--- /dev/null
+++ b/app/telemetry/config/grafana-litestream.yml
@@ -0,0 +1,10 @@
+dbs:
+ - path: /ephemeral/grafana.db
+ replicas:
+ - url: s3://grafana-db/grafana.db
+ region: garage-staging
+ endpoint: http://{{ env "attr.unique.network.ip-address" }}:3990
+ access-key-id: {{ key "secrets/telemetry/grafana/s3_access_key" | trimSpace }}
+ secret-access-key: {{ key "secrets/telemetry/grafana/s3_secret_key" | trimSpace }}
+ force-path-style: true
+ sync-interval: 60s