QuestionQ45Verified/PromQLCopy linkReport a problemAsk AstroTutorSave questionWhat is “wrong” with the myapp_file_uploads_total\{userid="5123",status="failed"\} metric?AThe metric name should consist of dashes instead of underscores.BThe userid should not be exposed as a label.CThe status should not be exposed as a label.DThe _total suffix should be omitted.Show AnswerAnswerExplanationA user ID is a high-cardinality, potentially unbounded label value. Because every unique label set creates a separate Prometheus time series, exposing userid as a label can cause excessive series growth. A bounded status label is appropriate, and _total is the conventional suffix for a counter.Learn moreMetric and label namingShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion