caretdev / grafana-intersystems-datasource

Apache License 2.0
2 stars 0 forks source link

metrics do not work #4

Open twupp opened 1 year ago

twupp commented 1 year ago

When running the docker-compose.yml from the repository, the logs show up but when trying to explorer some metrics the query for the drop-down-list to choose a certain metric runs forever with errors in the log of the grafana container. perhaps a grafana-version-problem? I tried with some 7.x Versions of grafana but that did not change the behaviour. part of the logs when trying to see metrics:

2023-11-15 16:55:30 t=2023-11-15T15:55:30+0000 lvl=dbug msg="\t/Users/daimor/go/pkg/mod/google.golang.org/grpc@v1.35.0/server.go:878 +0xab" logger=plugins.backend pluginId=grafana-intersystems-datasource 2023-11-15 16:55:30 t=2023-11-15T15:55:30+0000 lvl=dbug msg="created by google.golang.org/grpc.(*Server).serveStreams.func1" logger=plugins.backend pluginId=grafana-intersystems-datasource 2023-11-15 16:55:30 t=2023-11-15T15:55:30+0000 lvl=dbug msg="\t/Users/daimor/go/pkg/mod/google.golang.org/grpc@v1.35.0/server.go:876 +0x1fd" logger=plugins.backend pluginId=grafana-intersystems-datasource 2023-11-15 16:55:30 t=2023-11-15T15:55:30+0000 lvl=eror msg="Metric request error" logger=context userId=0 orgId=1 uname= error="rpc error: code = Unavailable desc = transport is closing" remote_addr=172.25.0.1 2023-11-15 16:55:30 t=2023-11-15T15:55:30+0000 lvl=eror msg="Request Completed" logger=context userId=0 orgId=1 uname= method=POST path=/api/ds/query status=500 remote_addr=172.25.0.1 time_ms=51 size=34 referer="http://localhost:3000/explore?orgId=1&left=%5B%22now-1h%22,%22now%22,%22InterSystems%20IRIS%22,%7B%22queryType%22:%22metrics%22,%22options%22:%7B%22file%22:%22alerts.log%22%7D%7D%5D" 2023-11-15 16:55:30 t=2023-11-15T15:55:30+0000 lvl=dbug msg="plugin process exited" logger=plugins.backend pluginId=grafana-intersystems-datasource path=/var/lib/grafana/plugins/grafana-intersystems-datasource/dist/gpx_grafana-intersystems-plugin_linux_amd64 pid=419 error="exit status 2" 2023-11-15 16:55:31 t=2023-11-15T15:55:31+0000 lvl=dbug msg="Restarting plugin" logger=plugins.backend pluginId=grafana-intersystems-datasource

daimor commented 1 year ago

I did not touch this project for a while now, probably, would need to update it a bit, to check if everything is working well