Skip to content

Commit 02e9f4f

Browse files
committed
Fix #35061: rename delegate_app_info to delegate_app_status
1 parent 7ca60a2 commit 02e9f4f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/eu/openanalytics/containerproxy/backend/dispatcher/proxysharing/ProxySharingMicrometer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public void onNewProxyEvent(NewProxyEvent event) {
128128
}
129129
if (specIds.contains(event.getSpecId())) {
130130
recentProxies.put(event.getProxyId(), event.getProxyId());
131-
registry.gauge("delegate.app.info",
131+
registry.gauge("delegate.app.status",
132132
Tags.of(
133133
"spec.id", event.getSpecId(),
134134
"proxy.id", event.getProxyId(),
@@ -163,7 +163,7 @@ private void updateDelegateAppInfo() {
163163
continue;
164164
}
165165

166-
registry.gauge("delegate.app.info",
166+
registry.gauge("delegate.app.status",
167167
Tags.of(
168168
"spec.id", specId,
169169
"proxy.id", proxy.getId(),
@@ -181,7 +181,7 @@ private void updateDelegateAppInfo() {
181181
// when the TTL of this proxy in recentProxies expires, the gauge will be removed
182182
// this waiting period allows the metric system to pick up that the proxy is being removed
183183
registry.remove(gauge);
184-
registry.gauge("delegate.app.info",
184+
registry.gauge("delegate.app.status",
185185
Tags.of(
186186
"spec.id", gauge.getId().getTag("spec.id"),
187187
"proxy.id", gauge.getId().getTag("proxy.id"),
@@ -203,7 +203,7 @@ private void updateDelegateAppInfo() {
203203

204204
private Map<String, Gauge> getDelegateAppInfoGauges() {
205205
try {
206-
return new HashMap<>(registry.get("delegate.app.info").gauges().stream()
206+
return new HashMap<>(registry.get("delegate.app.status").gauges().stream()
207207
.collect(Collectors.toMap(g -> g.getId().getTag("proxy.id"), g -> g)));
208208
} catch (MeterNotFoundException ignored) {
209209
return new HashMap<>();

0 commit comments

Comments
 (0)