Skip to content

Commit

Permalink
Add 'citadel_secret_controller' prefix to controller monitoring packa…
Browse files Browse the repository at this point in the history
…ge (istio#16280)
  • Loading branch information
Sam Naser authored and istio-testing committed Sep 3, 2019
1 parent 809562f commit 0699bc6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions security/pkg/k8s/controller/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,27 @@ var (
errorTag = monitoring.MustCreateLabel(errorlabel)

serviceAccountCreationCounts = monitoring.NewSum(
"svc_acc_created_cert_count",
"citadel_secret_controller_svc_acc_created_cert_count",
"The number of certificates created due to service account creation.",
)

serviceAccountDeletionCounts = monitoring.NewSum(
"svc_acc_deleted_cert_count",
"citadel_secret_controller_svc_acc_deleted_cert_count",
"The number of certificates deleted due to service account deletion.",
)

secretDeletionCounts = monitoring.NewSum(
"secret_deleted_cert_count",
"citadel_secret_controller_secret_deleted_cert_count",
"The number of certificates recreated due to secret deletion (service account still exists).",
)

csrErrorCounts = monitoring.NewSum(
"csr_err_count",
"citadel_secret_controller_csr_err_count",
"The number of errors occurred when creating the CSR.",
)

certSignErrorCounts = monitoring.NewSum(
"csr_sign_err_count",
"citadel_secret_controller_csr_sign_err_count",
"The number of errors occurred when signing the CSR.",
monitoring.WithLabels(errorTag),
)
Expand Down

0 comments on commit 0699bc6

Please sign in to comment.