chore: try loki as logging solution

This commit is contained in:
Michele Cereda
2025-01-06 17:37:39 +01:00
parent 3647d46b88
commit 02f843cb3b
10 changed files with 372 additions and 3 deletions

13
snippets/grafana.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env sh
# Export all existing dashboards by ID
curl -sS \
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
'http://grafana:3000/api/search' \
| jq -r '.[].uid' - \
| parallel " \
curl -sS \
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
'http://grafana:3000/api/dashboards/uid/{}' \
> '{}.json' \
"