Jimdo / prometheus_client_php

Prometheus instrumentation library for PHP applications
https://prometheus.io/docs/concepts/metric_types/
Apache License 2.0
281 stars 213 forks source link

Support for timestamp in text format #75

Open erichard opened 6 years ago

erichard commented 6 years ago

Hello,

The text exposition format is defined like this

metric_name [
  "{" label_name "=" `"` label_value `"` { "," label_name "=" `"` label_value `"` } [ "," ] "}"
] value [ timestamp ]

I haven't found a way with this library to specify the timestamp of my metrics. It could be great as it allow us to expose past metrics.