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
== Limitation on same name with different set of tag keys
194
194
195
195
The `PrometheusMeterRegistry` doesn't allow to create meters having the same name with a different set of tag keys, so you should guarantee that meters having the same name have the same set of tag keys.
196
-
Otherwise, subsequent meters having the same name with a different set of tag keys will not be registered silently by default.
196
+
Otherwise, subsequent meters having the same name with a different set of tag keys will not be registered.
This will result in the following warning and the second `Meter` will not be registered:
207
+
[source]
208
+
----
209
+
WARNING: The meter (MeterId{name='test', tags=[tag(second=2)]}) registration has failed: Prometheus requires that all meters with the same name have the same set of tag keys. There is already an existing meter named 'test' containing tag keys [first]. The meter you are attempting to register has keys [second]. Note that subsequent logs will be logged at debug level.
0 commit comments