hayk96 / prometheus-api

Extended HTTP API service for Prometheus
https://hayk96.github.io/prometheus-api/
MIT License
25 stars 1 forks source link

Add support for exporting data in several file formats #36

Closed hayk96 closed 3 days ago

hayk96 commented 1 week ago

Is your feature request related to a problem? Please describe. As we already have an /export API that returns the requested data from Prometheus as a CSV file, we need to support additional formats such as YAML, JSON and NDJSON.

Describe the solution you'd like The API must take HTTP query parameters like ?format=csv|yaml|yml|json default should be csv

Describe alternatives you've considered N/A

Additional context N/A