From 69abd6d9f65a6358025461510237366f1d939c70 Mon Sep 17 00:00:00 2001 From: Arthur Silva Sens Date: Wed, 13 Dec 2023 12:12:50 -0300 Subject: [PATCH] Document feature flag 'created-timestamp-zero-ingestion' (#13279) Signed-off-by: Arthur Silva Sens --- docs/feature_flags.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/feature_flags.md b/docs/feature_flags.md index 0e585f13c..bcf8309b5 100644 --- a/docs/feature_flags.md +++ b/docs/feature_flags.md @@ -194,3 +194,13 @@ won't work when you push OTLP metrics. Enables PromQL functions that are considered experimental and whose name or semantics could change. + +## Created Timestamps Zero Injection + +`--enable-feature=created-timestamp-zero-ingestion` + +Enables ingestion of created timestamp. Created timestamps are injected as 0 valued samples when appropriate. See [PromCon talk](https://youtu.be/nWf0BfQ5EEA) for details. + +Currently Prometheus supports created timestamps only on the traditional Prometheus Protobuf protocol (WIP for other protocols). As a result, when enabling this feature, the Prometheus protobuf scrape protocol will be prioritized (See `scrape_config.scrape_protocols` settings for more details). + +Besides enabling this feature in Prometheus, created timestamps need to be exposed by the application being scraped.