Cannot connect to Grafana using token #406
Replies: 1 comment
-
|
Two thing that solved my problem. I had to activate the ski_ssl flag and verifying the orgname in both importer configs and in both the exporter and importer bash scripts. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My grafana is running on a dockerhost and I have been able to export dashboards, folders and datasources using the Grafana api.
As I am having problems with the library panels and our company recomends gdg I am trying with this.
I am using a token to connect and that works using the api but when I use the gdg It cannot connect to my Grafana.
Can someone please give me hint?
grafana api curl(works):
Input list:
list=$(curl -s -k -H "Authorization: Bearer $token" -X GET $grafanaurl/folders)
Looping through all folder entries:
for uid in $(echo $list | jq -r '.[] | .uid'); do
Export:
curl -s -vv -k -H "Authorization: Bearer $token" -X GET $grafanaurl/folders/$uid | jq > grafana-folders-$uid.json
I have used a very simple config(importer.yml). The storage_engine is left empty, could that be the cause? If yes, do we have an exmple?
context_name: gdg-config
storage_engine: {}
contexts:
gdg-config:
token: xxxxx
connections: null
dashboard_settings:
nested_folders: true
ignore_filters: false
ignore_bad_folders: false
watched:
- VFMU
- Traces
- Postgres
- ObservabilityInfrastructure
watched_folders_override: []
organization_name: ""
output_path: /data/appv/svc/grafana/exports/gdg
password: ""
storage: ""
url: https://xxxx
user_name: ""
user: null
global:
debug: true
api_debug: true
ignore_ssl_errors: false
retry_count: 2
retry_delay: 10s
clear_output: false
Beta Was this translation helpful? Give feedback.
All reactions