Closed NikolaBorisov closed 1 month ago
I believe I'm seeing something similar
It looks like on the backend for OpenTSDB, response object from OpenTSDB is a map. Since server side expressions go through the backend, we do not get sorted data (since old alerting was always reducing, order didn't really matter).
IIRC, opentsdb has an option that is (asArray) or something like this, so the request should specify that, and then we would get ordered data back.
Edit: I think "arrays" under "api/query": http://opentsdb.net/docs/build/html/api_http/serializers/json.html
@kylebrandt this sounds like a change to the opentsdb plugin then? Would it change anything for paneledit/explore if we enabled arrays?
@peterholmberg No, this change would entirely be on the backend side and within the OpenTSDB datasource.
Then this is most likely related to changes here I imagine https://github.com/grafana/grafana/pull/35815
@wbrowne The following needs to change to not be a map for Datapoints:
And then however you specify that serializer option in my link above would also need to be set so the response marshals into it.
@wbrowne Also if you look at http://opentsdb.net/docs/build/html/api_http/query/index.html, the response contains tags, so those should be captured in the Labels property of the numeric field so things work correctly with alerting.
e.g. the host tag in the following:
[
{
"metric": "tsd.hbase.puts",
"tags": {
"host": "tsdb-1.mysite.com"
},
"aggregatedTags": [],
"dps": {
"1365966001": 3758788892,
"1365966061": 3758804070,
...
"1365974281": 3778141673
}
},
{
"metric": "tsd.hbase.puts",
"tags": {
"host": "tsdb-2.mysite.com"
},
"aggregatedTags": [],
"dps": {
"1365966001": 3902179270,
"1365966062": 3902197769,
...
"1365974281": 3922266478
}
}
]
Hello All,
Is there any chance to fix this? Basically the new alerting does not work for people using OpenTSDB...
CC @grafana/observability-squad just in case this one is lost
Any change someone can look at this one.
Because of this we can not use grafana alerts with OpenTSDB
+cc @grafana/observability-metrics
Hey OpenTSDB is owned by the metrics squad, not the traces and profiling squad :) I'm unassigning myself and you already have someone from the metrics squad!
This should be fixed by #90991
What happened: Data from query on the Create Alert Rule page is not displayed properly. It looks like the data is not sorted and the graph looks terrible.
What you expected to happen: I expected the graph displayed on the Create alert rule page to look exactly like the panel for which I'm trying to create the alert.
How to reproduce it (as minimally and precisely as possible): Try to create an alert on a OpenTSDB graph panel. Click "Run queries" and look at the data in Time series format and also table format.
Anything else we need to know?:
Environment: