Replies: 2 comments 1 reply
-
First just wanted to highlight some details:
These are different by nature:
Note: For a core backend datasource both grafana_datasource_request_* and grafana_plugin_request_* metrics will be captured.
I understand that. My main question is what kind of answers do you need this metrics to answer and how are you planning to use the labels?
Not saying no to this, but feels a bit weird. To me it feels more like we're lacking a metric for querying data. Or I would rather include more labels on grafana_plugin_request_* to include datasource reference/name. Again, depends a bit on what answers you want from the metrics. |
Beta Was this translation helpful? Give feedback.
-
Hello, as you may have heard, we are transitioning away from using discussions to discuss feature requests. Due to the age and number of responses to this discussion, we are deciding to close it. If this is something you would like to see in Grafana, feel free to open an issue so the discussion can continue. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Today we instrument Data source requests with two metrics
grafana_datasource_request_total
andgrafana_plugin_request_total
grafana_datasource_request_total
instruments all data source requests. Exgrafana_datasource_request_duration_seconds_count{code="200", datasource="grafanacloudusage", method="post"}
grafana_plugin_request_total
instruments all plugins requests and contains theplugin_id
as label. Exgrafana_plugin_request_total{endpoint="checkHealth", plugin_id="prometheus", status="ok"}
Ideally we want to instrument everything using the same metrics since that makes it easier for operator to slice and dice based on what they want instead of exposing two almost similar series.
I suggest we instrument both use-cases with
grafana_datasource_request_total
but extend it withplugin_id
andendpoint
.plugin_id
should not impact the number of series exported andendpoint
is bound to 4 different values shou which is within reasonable limits.grafana_plugin_request_total
has status andgrafana_datasource_request_total
has code which I think we can merge into one value. Considering the vast majority of the data sources use http status code I think we should default to that.With these new values we could aggregate how ever we see fit.
Beta Was this translation helpful? Give feedback.
All reactions