Skip to content

Commit

Permalink
delete duplicate rules
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Oct 9, 2016
1 parent 2086e07 commit ced0d51
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions prometheus/targets.rules
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,4 @@ ALERT hight_storage_load
summary = "Server storage is almost full",
description = "Docker host storage usage is {{ humanize $value}}%. Reported by instance {{ $labels.instance }} of job {{ $labels.job }}.",
}

ALERT jenkins_down
IF absent(container_memory_usage_bytes{name="jenkins"})
FOR 30s
LABELS { severity = "critical" }
ANNOTATIONS {
summary= "Jenkins down",
description= "Jenkins container is down for more than 30 seconds."
}

ALERT jenkins_high_cpu
IF sum(rate(container_cpu_usage_seconds_total{name="jenkins"}[1m])) / count(node_cpu{mode="system"}) * 100 > 10
FOR 30s
LABELS { severity = "warning" }
ANNOTATIONS {
summary= "Jenkins high CPU usage",
description= "Jenkins CPU usage is {{ humanize $value}}%."
}

ALERT jenkins_high_memory
IF sum(container_memory_usage_bytes{name="jenkins"}) > 1200000000
FOR 30s
LABELS { severity = "warning" }
ANNOTATIONS {
summary = "Jenkins high memory usage",
description = "Jenkins memory consumption is at {{ humanize $value}}.",
}

0 comments on commit ced0d51

Please sign in to comment.