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 multiple time formats for the timestamp field in the /export API. #40

Closed hayk96 closed 3 days ago

hayk96 commented 4 days ago

Is your feature request related to a problem? Please describe. In some cases, the timestamp format used in the timestamp field is not convenient for data representation.

__name__,instance,job,timestamp,value
up,prometheus-api:5000,prometheus-api,1719131438.585,1
up,localhost:9090,prometheus,1719131438.585,1

Describe the solution you'd like It would be much better to support several time formats such as ISO8601, RFC2822, RFC-3339, etc.

Describe alternatives you've considered N/A

Additional context N/A