diff options
author | Yngve Aasheim <yngveaasheim@users.noreply.github.com> | 2023-01-20 12:38:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 12:38:47 +0100 |
commit | 0c5dbee52de09ce2bd2e592358a1958772ca95ac (patch) | |
tree | 2641f3d817968e2dbe66e52417ef6eb17de18907 /vespa-athenz | |
parent | 4390afeae665cce021d1da99cc20d7babb484b1b (diff) |
Use ContainerMetrics enum
Diffstat (limited to 'vespa-athenz')
-rw-r--r-- | vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/client/AthenzIdentityProviderImpl.java | 3 |
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; |