Certainly, @svetb, thanks for the response!
This is how it’s configured in the web ui:
As you can see, it successfully added the resource, but the test fails. And then this is what happens in a dashboard that’s using that datasource:
Here are the docker logs
, let me know if some other logs would help as well. I’m not sure where any of them live yet.
t=2021-06-09T15:41:33+0000 lvl=info msg="Starting Grafana" logger=server version=7.5.7 commit=91de51771c branch=HEAD compiled=2021-05-17T19:16:45+0000
t=2021-06-09T15:41:33+0000 lvl=info msg="Config loaded from" logger=settings file=/usr/share/grafana/conf/defaults.ini
t=2021-06-09T15:41:33+0000 lvl=info msg="Config loaded from" logger=settings file=/etc/grafana/grafana.ini
t=2021-06-09T15:41:33+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.data=/var/lib/grafana"
t=2021-06-09T15:41:33+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.logs=/var/log/grafana"
t=2021-06-09T15:41:33+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.plugins=/var/lib/grafana/plugins"
t=2021-06-09T15:41:33+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.provisioning=/etc/grafana/provisioning"
t=2021-06-09T15:41:33+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.log.mode=console"
t=2021-06-09T15:41:33+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_DATA=/var/lib/grafana"
t=2021-06-09T15:41:33+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_LOGS=/var/log/grafana"
t=2021-06-09T15:41:33+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_PLUGINS=/var/lib/grafana/plugins"
t=2021-06-09T15:41:33+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_PROVISIONING=/etc/grafana/provisioning"
t=2021-06-09T15:41:33+0000 lvl=info msg="Path Home" logger=settings path=/usr/share/grafana
t=2021-06-09T15:41:33+0000 lvl=info msg="Path Data" logger=settings path=/var/lib/grafana
t=2021-06-09T15:41:33+0000 lvl=info msg="Path Logs" logger=settings path=/var/log/grafana
t=2021-06-09T15:41:33+0000 lvl=info msg="Path Plugins" logger=settings path=/var/lib/grafana/plugins
t=2021-06-09T15:41:33+0000 lvl=info msg="Path Provisioning" logger=settings path=/etc/grafana/provisioning
t=2021-06-09T15:41:33+0000 lvl=info msg="App mode production" logger=settings
t=2021-06-09T15:41:33+0000 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=sqlite3
t=2021-06-09T15:41:33+0000 lvl=info msg="Starting DB migrations" logger=migrator
t=2021-06-09T15:41:33+0000 lvl=info msg="migrations completed" logger=migrator performed=0 skipped=279 duration=759.319µs
t=2021-06-09T15:41:33+0000 lvl=info msg="Starting plugin search" logger=plugins
t=2021-06-09T15:41:34+0000 lvl=info msg="Registering plugin" logger=plugins id=input
t=2021-06-09T15:41:34+0000 lvl=info msg="Registering plugin" logger=plugins id=flant-statusmap-panel
t=2021-06-09T15:41:34+0000 lvl=info msg="Registering plugin" logger=plugins id=yesoreyeram-boomtable-panel
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.368622Z","queryType":"exponential_heatmap_bucket_data"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.368689Z","queryType":"linear_heatmap_bucket_data"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.368717Z","queryType":"random_walk"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.368747Z","queryType":"predictable_pulse"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.368770Z","queryType":"predictable_csv_wave"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.368799Z","queryType":"random_walk_table"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.368822Z","queryType":"slow_query"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.368854Z","queryType":"no_data_points"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.368888Z","queryType":"datapoints_outside_range"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.368914Z","queryType":"manual_entry"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.368943Z","queryType":"csv_metric_values"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.368966Z","queryType":"streaming_client"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.368991Z","queryType":"live"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.369024Z","queryType":"grafana_api"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.369051Z","queryType":"arrow"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.369081Z","queryType":"annotations"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.369103Z","queryType":"table_static"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.369133Z","queryType":"random_walk_with_error"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.369156Z","queryType":"server_error_500"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.369181Z","queryType":"logs"}
{"@level":"debug","@message":"datasource: registering query type handler","@timestamp":"2021-06-09T15:41:34.369209Z","queryType":"node_graph"}
{"@level":"debug","@message":"datasource: registering query type fallback handler","@timestamp":"2021-06-09T15:41:34.369230Z"}
t=2021-06-09T15:41:34+0000 lvl=info msg="HTTP Server Listen" logger=http.server address=[::]:3000 protocol=http subUrl= socket=
t=2021-06-09T15:42:55+0000 lvl=info msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/ status=302 remote_addr=192.168.1.131 time_ms=0 size=29 referer=
2021/06/09 15:42:58 http: superfluous response.WriteHeader call from gopkg.in/macaron%2ev1.(*responseWriter).WriteHeader (response_writer.go:60)
t=2021-06-09T15:42:58+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/datasources/proxy/2/api/v1/query status=403 remote_addr=192.168.1.131 time_ms=24 size=116 referer=http://192.168.1.75:3000/datasources/edit/2/
For good measure, there is the grafana docker-compose and the grafana docker image version is Grafana v7.5.7 (91de51771c)
.
grafana:
container_name: grafana
image: grafana/grafana
restart: unless-stopped
volumes:
- grafana-storage:/var/lib/grafana
# Binding file to container
- ./configs/grafana/grafana.ini:/etc/grafana/grafana.ini:rw
ports:
- "3000:3000"