Skip to content

Mimir Write in Python fails with err-mimir-missing-metric-name #4009

Discussion options

You must be logged in to vote

Hi. "Metric name" refers to a special label __name__ that must be present in each series that Mimir ingests. Prometheus normally converts metric names into this label. For example series like:

# HELP node_cpu_seconds_total Seconds the CPUs spent in each mode.
# TYPE node_cpu_seconds_total counter
node_cpu_seconds_total{cpu="0",mode="idle"} 4282.67
node_cpu_seconds_total{cpu="0",mode="nice"} 0
node_cpu_seconds_total{cpu="0",mode="system"} 1009.48
node_cpu_seconds_total{cpu="0",mode="user"} 1471.18

All have metric name node_cpu_seconds_total. Prometheus internally stores these series as:

{__name__="node_cpu_seconds_total",cpu="0",mode="idle"}
{__name__="node_cpu_seconds_total",cpu="0",mode…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Ycallaer
Comment options

Answer selected by Ycallaer
Comment options

You must be logged in to vote
1 reply
@pstibrany
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants