Skip to content

Commit

Permalink
filter logging pods by label (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
imagebastler authored and ReToCode committed Aug 21, 2018
1 parent c483379 commit 50e308a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/client/checks/openshift.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func CheckRouterHealth(ip string) error {
func CheckLoggingRestartsCount() error {
log.Println("Checking log-container restart count")

out, err := exec.Command("bash", "-c", "oc get pods -n logging -o wide | tr -s ' ' | cut -d ' ' -f 4").Output()
out, err := exec.Command("bash", "-c", "oc get pods -n logging -o wide -l app=sematext-agent | tr -s ' ' | cut -d ' ' -f 4").Output()
if err != nil {
msg := "Could not parse logging container restart count: " + err.Error()
log.Println(msg)
Expand Down

0 comments on commit 50e308a

Please sign in to comment.