Mimir Write in Python fails with err-mimir-missing-metric-name #4009
-
Hi all, So I downloaded the proto definition , compiled it for python and constructed the message as per the proto requirements (all using dummy data so far).
I did find a reference to this error in this document, but I can't figure out what I am missing in my code as all fields seem to be filled in. The code -->
I based myself a bit on the golang example for timeseries_test. Am I missing something in the code ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
So something I noticed in the proto definition is the following piece of code -->
While it is defined though, it does not seem to be part of any proto definition, and hence not part of the WriteRequest. Maybe an issue ? |
Beta Was this translation helpful? Give feedback.
-
Hi. "Metric name" refers to a special label
All have metric name
I don't see that label being set in your code. |
Beta Was this translation helpful? Give feedback.
-
Ok thanks, |
Beta Was this translation helpful? Give feedback.
-
@Ycallaer can you provide me the protoc code here.because i am working to send metrci to mimir api and refer you python code that required proto code also to understand.it would be helpful if you send it here. |
Beta Was this translation helpful? Give feedback.
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:All have metric name
node_cpu_seconds_total
. Prometheus internally stores these series as: