You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/monitor_elasticsearch.go
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ query string.
25
25
26
26
Usage with Lucene query:
27
27
28
-
$ helm monitor elasticsearch frontend 'status:500 AND kubernetes.labels.app:app'
28
+
$ helm monitor elasticsearch frontend 'status:500 AND kubernetes.labels.app:app AND version:2.0.0'
29
29
30
30
Usage with query DSL file:
31
31
@@ -85,7 +85,7 @@ func newMonitorElasticSearchCmd(client helm.Interface, out io.Writer) *cobra.Com
85
85
f.BoolVar(&elasticSearchMonitor.dryRun, "dry-run", false, "simulate a monitoring")
86
86
f.Int64Var(&elasticSearchMonitor.timeout, "timeout", 300, "time in seconds to wait before assuming a monitoring action is successfull")
87
87
f.Int64Var(&elasticSearchMonitor.rollbackTimeout, "rollback-timeout", 300, "time in seconds to wait for any individual Kubernetes operation during the rollback (like Jobs for hooks)")
88
-
f.Int64Var(&elasticSearchMonitor.interval, "interval", 10, "time in seconds between each PromQL query")
88
+
f.Int64Var(&elasticSearchMonitor.interval, "interval", 10, "time in seconds between each query")
89
89
f.BoolVar(&elasticSearchMonitor.wait, "wait", false, "if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking a rollback as successful. It will wait for as long as --rollback-timeout")
90
90
f.BoolVar(&elasticSearchMonitor.force, "force", false, "force resource update through delete/recreate if needed")
91
91
f.BoolVar(&elasticSearchMonitor.disableHooks, "no-hooks", false, "prevent hooks from running during rollback")
Copy file name to clipboardExpand all lines: cmd/monitor_prometheus.go
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ func newMonitorPrometheusCmd(client helm.Interface, out io.Writer) *cobra.Comman
80
80
f.BoolVar(&prometheusMonitor.dryRun, "dry-run", false, "simulate a monitoring")
81
81
f.Int64Var(&prometheusMonitor.timeout, "timeout", 300, "time in seconds to wait before assuming a monitoring action is successfull")
82
82
f.Int64Var(&prometheusMonitor.rollbackTimeout, "rollback-timeout", 300, "time in seconds to wait for any individual Kubernetes operation during the rollback (like Jobs for hooks)")
83
-
f.Int64Var(&prometheusMonitor.interval, "interval", 10, "time in seconds between each PromQL query")
83
+
f.Int64Var(&prometheusMonitor.interval, "interval", 10, "time in seconds between each query")
84
84
f.BoolVar(&prometheusMonitor.wait, "wait", false, "if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking a rollback as successful. It will wait for as long as --rollback-timeout")
85
85
f.BoolVar(&prometheusMonitor.force, "force", false, "force resource update through delete/recreate if needed")
86
86
f.BoolVar(&prometheusMonitor.disableHooks, "no-hooks", false, "prevent hooks from running during rollback")
0 commit comments