From 055a5d85f259d1ffcdd0285f2ae27606f63b9808 Mon Sep 17 00:00:00 2001 From: Zak Shearman <34372536+ZakShearman@users.noreply.github.com> Date: Fri, 5 Jan 2024 18:33:26 +0000 Subject: [PATCH] (feat): add namespace to Pyroscope, bump common-proto-sdk --- build.gradle.kts | 2 +- .../minestom/core/module/monitoring/MonitoringModule.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index a02f591..1ff70c0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -31,7 +31,7 @@ dependencies { // APIs api("dev.emortal.api:module-system:1.0.0") api("dev.emortal.api:agones-sdk:1.0.7") - api("dev.emortal.api:common-proto-sdk:ca990cc") + api("dev.emortal.api:common-proto-sdk:fee482e") api("dev.emortal.api:live-config-parser:f0728b0") api("io.kubernetes:client-java:18.0.1") diff --git a/src/main/java/dev/emortal/minestom/core/module/monitoring/MonitoringModule.java b/src/main/java/dev/emortal/minestom/core/module/monitoring/MonitoringModule.java index c62bcea..ef233ca 100644 --- a/src/main/java/dev/emortal/minestom/core/module/monitoring/MonitoringModule.java +++ b/src/main/java/dev/emortal/minestom/core/module/monitoring/MonitoringModule.java @@ -100,7 +100,8 @@ public boolean onLoad() { private void setupPyroscope() { Pyroscope.setStaticLabels(Map.of( - "pod", Environment.getHostname() + "pod", Environment.getHostname(), + "namespace", NAMESPACE )); Config config = new Config.Builder()