summaryrefslogtreecommitdiffstats
path: root/vespa-athenz
diff options
context:
space:
mode:
authorKristian Aune <kkraune@users.noreply.github.com>2023-01-20 12:51:31 +0100
committerGitHub <noreply@github.com>2023-01-20 12:51:31 +0100
commit04dfe8102a8f1e38daf37ec2e68fbcf8520cf74c (patch)
tree9a04cf5723cb95aff2d2b8db464b9a816558dcf6 /vespa-athenz
parent2b893946ebf9081178dbc7d83118fa94ce7abff6 (diff)
parente926a330935d57be7a887cec8fb90e0ebbc6f227 (diff)
Merge pull request #25651 from vespa-engine/yngveaasheim/Use-ContainerMetrics-enum-more-places
Use container metrics enum more places
Diffstat (limited to 'vespa-athenz')
-rw-r--r--vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/client/AthenzIdentityProviderImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/client/AthenzIdentityProviderImpl.java b/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/client/AthenzIdentityProviderImpl.java
index 93574339c5a..0caf3bdfd0b 100644
--- a/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/client/AthenzIdentityProviderImpl.java
+++ b/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/client/AthenzIdentityProviderImpl.java
@@ -10,6 +10,7 @@ import com.yahoo.container.core.identity.IdentityConfig;
import com.yahoo.container.jdisc.athenz.AthenzIdentityProvider;
import com.yahoo.container.jdisc.athenz.AthenzIdentityProviderException;
import com.yahoo.jdisc.Metric;
+import com.yahoo.metrics.ContainerMetrics;
import com.yahoo.security.KeyStoreBuilder;
import com.yahoo.security.Pkcs10Csr;
import com.yahoo.security.SslContextBuilder;
@@ -75,7 +76,7 @@ public final class AthenzIdentityProviderImpl extends AbstractComponent implemen
private static final Path CLIENT_TRUST_STORE = Paths.get("/opt/yahoo/share/ssl/certs/yahoo_certificate_bundle.pem");
private static final Path ATHENZ_TRUST_STORE = Paths.get("/opt/yahoo/share/ssl/certs/athenz_certificate_bundle.pem");
- public static final String CERTIFICATE_EXPIRY_METRIC_NAME = "athenz-tenant-cert.expiry.seconds";
+ public static final String CERTIFICATE_EXPIRY_METRIC_NAME = ContainerMetrics.ATHENZ_TENANT_CERT_EXPIRY_SECONDS.baseName();
private volatile AthenzCredentials credentials;
private final Metric metric;