Opentsdb enable histogram in grafana

  • What Grafana version and what operating system are you using?
    8.0.3

  • What are you trying to achieve?
    I am trying to run the following query using an opentsdb datasource:

curl -k --request POST
–url http://opentsdb-read.cdl.internal.pan.run:4242/api/query?details
–header ‘accept: application/json’
–header ‘content-type: application/json’
–data ‘{
“start”: 1626883258000,
“end”: 1626886858000,
“queries”: [{
“metric”: “forwarding_logs_latency”,
“aggregator”: “sum”,
“showHistogramBuckets”: true,
“percentiles”: [50.0],
“downsample”: “15m-sum”,
“histogramQuery”: true,
“tags”: {
“schema” : “*”
}
}]
}’

  • How are you trying to achieve it?

I am trying to implement the same query on Grafana.

  • What happened?

No data is returned.

  • What did you expect to happen?

I wanted data to show up.

  • Can you copy/paste the configuration(s) that you are having problems with?
    My original query is above. This is the query grafana uses:

request:Object

method:“POST”

url:“api/datasources/proxy/23/api/query”

data:Object

start:1627285851341

queries:Array[1]

0:Object
metric:“forwarding_logs_latency”
aggregator:“sum”
downsample:“30m-sum”
tags:Object

Notice there is showHistogramBuckets or histogramQuery field in the query. Is there a way to embed showHistogramBuckets and histogramQuery inside the query?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

No

  • Did you follow any online instructions? If so, what is the URL?

No

This topic was automatically closed after 365 days. New replies are no longer allowed.