Skip to content

Commit

Permalink
name correction for the metric
Browse files Browse the repository at this point in the history
  • Loading branch information
sametd committed Dec 20, 2023
1 parent 884fd4f commit 7675c3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def metric(self):
logger.warning("Could not determine the pod's namespace.")
namespace = "aviso"

pattern = rf'kube_deployment_status_replicas{{namespace="{namespace}",deployment="aviso-auth-\w+"}}'
pattern = rf'kube_deployment_status_replicas{{namespace="{namespace}",deployment="aviso-auth"}}'
# defaults
status = 0
message = "All pods available"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def metric(self):
logger.warning("Could not determine the pod's namespace.")
namespace = "aviso"

pattern = rf'kube_deployment_status_replicas{{namespace="{namespace}",deployment="aviso-rest-\w+"}}'
pattern = rf'kube_deployment_status_replicas{{namespace="{namespace}",deployment="aviso-rest"}}'
# defaults
status = 0
message = "All pods available"
Expand Down

0 comments on commit 7675c3c

Please sign in to comment.