Closed mlajkim closed 5 months ago
token metrics now includes k8s_namespace and k8s_pod_name if the following env exists
k8s_namespace
k8s_pod_name
NAMESPACE
POD_NAME
sample:
curl -sfS localhost:9793/metrics | grep token | grep token_expires_in_seconds # HELP token_expires_in_seconds Indicates remaining time until the token expires # TYPE token_expires_in_seconds gauge token_expires_in_seconds{domain="athenz.provider-domain",k8s_namespace="my-namespace",k8s_pod="test-pod-1a2cb7",max_expiry="14400",role="provider-client",type="accesstoken"} 12792.730765255 token_expires_in_seconds{domain="athenz.provider-domain",k8s_namespace="my-namespace",k8s_pod="test-pod-1a2cb7",min_expiry="14400",role="provider-client",type="roletoken"} 12792.730655096
Background
token metrics now includes
k8s_namespace
andk8s_pod_name
if the following env existsNAMESPACE
POD_NAME
sample:
TODOs
POD_NAME