sql_exporter icon indicating copy to clipboard operation
sql_exporter copied to clipboard

can sql exporter support timestamps

Open romange opened this issue 6 years ago • 1 comments

Hi,

I would like to export values with their assigned timestamps. can I do it with sql exporter?

romange avatar Jul 08 '19 08:07 romange

SQL Exporter does not support exporting values with timestamps, as described in the Prometheus exposition format documentation, e.g.

http_requests_total{method="post",code="200"} 1027 1395066363000

where 1027 is the sample value and 1395066363000 is the sample timestamp.

I guess the functionality could be added (contributions are welcome) but this is not commonly used functionality and Prometheus documentation advises against using it.

free avatar Jul 08 '19 17:07 free