-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finding unhealthy data sources #19
Comments
Hi @chenlujjj, thank you for suggesting that feature. Sure, that can well become an additional functionality to I will be happy to take a look at your go program if you can share it with me by any means? If you don't want to spend a dedicated repository on it, maybe upload it as a gist? With kind regards, |
Sure, I will upload the script when I go back to company next Monday. |
I would say better word for invalid is unhealthy here. Save & test button executes some simple query test, which depends on used datasource. That's IMHO not easy to implement here. It will need to support all current and future built-in & 3rd party datasource types. Also simple TCP connectivity can be a problem, because grafana-wtf can be running on different host as Grafana. |
Hi, thanks for your guidance, Jan. On order to shed some more light on this topic, I wanted to reference [1] here:
In order to pick some arbitrary examples, [2-5] are the corresponding health check implementations for PostgreSQL, InfluxDB, Tempo, and Prometheus. We can clearly see that those implementations differ significantly, just as @jangaraj described it. In order to bring this in as a sensible feature for So, I will be excited to see how @chenlujjj might have solved it. With kind regards, [1] https://grafana.com/tutorials/build-a-data-source-plugin/#test-your-data-source |
Saying the above, the actual outcome from the
|
I have to admit that I haven't considered about non-prometheus type data sources. The code to check if a prometheus data source is healthy or not (omit unrelated parts):
We can notice that the HTTP request made by grafana when clicking the Save & Test button is related to the Access type of the data source.
So maybe the TCP connectivity mentioned by @jangaraj is not a problem any more, right ? |
Hi again, we will be conceiving the foundation for this feature within As soon as the new feature will be ready over there, we will return here in order to use it within With kind regards, |
Hi there,
within our conversation at [1], @chenlujjj asked for another feature:
With kind regards,
Andreas.
[1] https://community.grafana.com/t/how-to-find-out-unused-datasources/56920/7
The text was updated successfully, but these errors were encountered: