Skip to content

Commit

Permalink
fix prometheus readme: bld phase/reason conversion to all lower case …
Browse files Browse the repository at this point in the history
…was reverted
  • Loading branch information
gabemontero committed Dec 14, 2017
1 parent 2f933b0 commit f1194fd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/prometheus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,26 +119,26 @@ Returns PLEG (pod lifecycle event generator) latency metrics. This represents t

### OpenShift build related queries

> count(openshift_build_active_time_seconds{phase="running"} < time() - 600)
> count(openshift_build_active_time_seconds{phase="Running"} < time() - 600)
Returns the number of builds that have been running for more than 10 minutes (600 seconds).

> count(openshift_build_active_time_seconds{phase="pending"} < time() - 600)
> count(openshift_build_active_time_seconds{phase="Pending"} < time() - 600)
Returns the number of build that have been waiting at least 10 minutes (600 seconds) to start.

> sum(openshift_build_total{phase="failed"})
> sum(openshift_build_total{phase="Failed"})
Returns the number of failed builds, regardless of the failure reason.

> openshift_build_total{phase="failed",reason="fetchsourcefailed"}
> openshift_build_total{phase="failed",reason="FetchSourceFailed"}
Returns the number of failed builds because of problems retrieving source from the associated Git repository.

> sum(openshift_build_total{phase="complete"})
> sum(openshift_build_total{phase="Complete"})
Returns the number of successfully completed builds.

> openshift_build_total{phase="failed"} offset 5m
> openshift_build_total{phase="Failed"} offset 5m
Returns the failed builds totals, per failure reason, from 5 minutes ago.

0 comments on commit f1194fd

Please sign in to comment.