Skip to content

Commit

Permalink
Adding kube_name label for polling k8s error metric (#207)
Browse files Browse the repository at this point in the history
* Adding kube_name label for polling k8s error metric

* 0.11.1
  • Loading branch information
koropets authored Jun 9, 2021
1 parent 82b8fff commit da773a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gordo-controller"
version = "0.6.2"
version = "0.11.1"
authors = ["Miles Granger <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ pub async fn controller_init(
loop {
if let Err(err) = c1.poll().await {
error!("Controller polling encountered an error: {:?}", err);
crd::metrics::KUBE_ERRORS.with_label_values(&["controller_polling"]).inc_by(1);
crd::metrics::KUBE_ERRORS.with_label_values(&["controller_polling", "unknown"]).inc_by(1);
}
}
});
Expand Down

0 comments on commit da773a6

Please sign in to comment.