Replies: 1 comment
-
|
cc @ZonaHex @alili for those who have experience in rendering those data. My one concern is some |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Purpose
Prometheus is a single-value model, it is to draw a single panel from
query_rangeresponse by default. Since GreptimeDB supports multi-value model, but the compatible/api/v1/query_rangeendpoints can not facilitate multi-value scenarios.HTTP response format
valueundervalueshas multiple value, but the same format as Prometheus when one field is specified in PromQL, or only one column in the tablefieldstells the name of each field in the responseInstant Query response
{ "metric" : { "__name__" : "up", "job" : "prometheus", "instance" : "localhost:9090" }, "fields": ["field1", "field2", "field3"], "values" : [ [ 1435781430.781, "1", "2", "3" ] ] }Range Query response
{ "metric" : { "__name__" : "up", "job" : "prometheus", "instance" : "localhost:9090" }, "fields": ["field1", "field2", "field3"], "values" : [ [ 1435781430.781, "1", "2", "3" ], [ 1435781445.781, "1", "2", "3" ], [ 1435781460.781, "1", "2", "3" ] ] }Panel
The recommended way to draw the panels from multi-value response needs to be carefully designed. The potential options maybe:
Beta Was this translation helpful? Give feedback.
All reactions