You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you set, e.g., a version via init, then I'm pretty sure we end up adding two gauges, one with a version label and one without a version label. These will both be set within a short period of time.
The result is that our group left query that joins build info to function metrics will cause a 422 from prometheus, with an error like:
Error executing query:
found duplicate series for the match group {instance="localhost:8082", job="am_0"} on the right hand-side of the operation:
[
{__name__="build_info", instance="localhost:8082", job="am_0", service_name="autometrics", version="0.0.1"},
{__name__="build_info", instance="localhost:8082", job="am_0", service_name="autometrics"}
];
many-to-many matching not allowed: matching labels must be unique on one side
The culprit is likely:
defdefault_tracker():
"""Setup the default tracker."""preferred_tracker=get_tracker_type()
returninit_tracker(preferred_tracker)
tracker: TrackMetrics=default_tracker()
We initialize a tracker out of the box. When a user calls init, they effectively "re-initialize" the tracker with new build information, which sets a new build info gauge.