Skip to content

Commit 185101f

Browse files
committed
Micrometer: add shinyproxy_realm tag
1 parent dcd357e commit 185101f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/eu/openanalytics/containerproxy/service/IdentifierService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class IdentifierService {
6464
public String instanceId = null;
6565

6666
/**
67-
* String identifying the realm ShinyProxy operatores in.
67+
* String identifying the realm ShinyProxy operates in.
6868
*/
6969
public String realmId = null;
7070

src/main/java/eu/openanalytics/containerproxy/stat/impl/MicrometerRegistryConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ public String tagKey(@NonNull String key) {
7171
}
7272
})
7373
// add a common tag with the instanceId of this server. (it cannot simple be called instance, since that is already a default Prometheus label).
74-
.commonTags("shinyproxy_instance", identifierService.instanceId);
74+
.commonTags("shinyproxy_instance", identifierService.instanceId,
75+
"shinyproxy_realm", identifierService.realmId != null ? identifierService.realmId : "");
7576
}
7677

7778

0 commit comments

Comments
 (0)