zostay / raku-Prometheus-Client

A Prometheus Client for Raku
1 stars 2 forks source link

properly collect metrics with labels #4

Closed kbucheli closed 4 years ago

kbucheli commented 4 years ago

The Problem

The metric meta data should only be provided once for a given metric. See the Prometheus exposition formats documentation and my Telegraf based scraper also complains.

Expected Behavior

# HELP m1 doc
# TYPE m1 gauge
m1{label1="a",label2="b"} 3.141592653589793
m1{label1="y",label2="z"} 6.283185307179

Actual Behavior

# HELP m1 doc
# TYPE m1 gauge
m1{label1="a",label2="b"} 3.141592653589793
# HELP m1 doc
# TYPE m1 gauge
m1{label1="y",label2="z"} 6.283185307179
zostay commented 4 years ago

This looks good except for the failing tests. I'm not sure what is up with the tests. My brain is too mushy to try and figure it out right now.