Skip to content
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

RecordBatch to Prometheus JSON format conversion #1020

Closed
waynexia opened this issue Feb 16, 2023 · 0 comments · Fixed by #1022
Closed

RecordBatch to Prometheus JSON format conversion #1020

waynexia opened this issue Feb 16, 2023 · 0 comments · Fixed by #1022
Labels
C-feature Category Features

Comments

@waynexia
Copy link
Member

What problem does the new feature solve?

The preliminary requirement of #1016.

What does the feature do?

Support to convert our query result (in RecordBatch) into Prometheus' result format, which looks like

[
  {
    "metric": { "<label_name>": "<label_value>", ... },
    "value": [ <unix_time>, "<sample_value>" ],
    "histogram": [ <unix_time>, <histogram> ]
  },
  ...
]

and

[
  {
    "metric": { "<label_name>": "<label_value>", ... },
    "values": [ [ <unix_time>, "<sample_value>" ], ... ],
    "histograms": [ [ <unix_time>, <histogram> ], ... ]
  },
  ...
]

Implementation challenges

No response

@waynexia waynexia added the C-feature Category Features label Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category Features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant