QuestionQ16Verified/Prometheus FundamentalsCopy linkReport a problemAsk AstroTutorSave questionWhat should be done with counters that use labels?AInstantiate them with their possible label values when creating them so they are exposed with a zero value.BInvestigate if you can move their label value inside their metric name to limit the number of labels.CSave their state between application runs so you can restore their last value on startup.DMake sure every counters with labels has an extra counter, aggregated, without labels.Show AnswerAnswerExplanationKnown labeled counter series should be initialized so they are exported with a value of 0 before any event occurs. This avoids missing metrics, which can make queries and alerts difficult to handle correctly.Learn moreInstrumentation | PrometheusWriting client libraries | PrometheusShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion