mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore: try loki as logging solution
This commit is contained in:
13
snippets/grafana.sh
Normal file
13
snippets/grafana.sh
Normal 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' \
|
||||
"
|
||||
Reference in New Issue
Block a user