What does `honor_timestamps` do?
AdvancedConceptPrometheus Architecture
Answer
By default (honor_timestamps: true) if an exposed sample carries an explicit timestamp, Prometheus uses it instead of the scrape time. Setting it to false forces the scrape time.
Exposing timestamps is almost always a mistake for live metrics: samples older than the head block window are rejected as out of bounds, and staleness handling does not work for timestamped series. It is legitimate only for federation and some exporters that mirror external systems.
More on Prometheus Architecture
Describe the Prometheus architecture.BeginnerWhat does a basic prometheus.yml look like?BeginnerWhat is the `up` metric?BeginnerWhat are `job` and `instance` labels and where do they come from?BeginnerHow is the Prometheus TSDB organized on disk?AdvancedWhat is the WAL and why does Prometheus restart slowly sometimes?Advanced