forked from infra/ansible
Copr: add trigger opdata to Zabbix builds template
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
This commit is contained in:
parent
50d9008108
commit
40890a5962
1 changed files with 3 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ zabbix_export:
|
|||
- uuid: 5ef177b6793041e79442412d0fd19479
|
||||
expression: 'last(/COPR Build metrics/copr.builds.avg_time[{#POOL}]) > {$COPR.STARTUP.MAX:"{#POOL}"}'
|
||||
name: 'Pool {#POOL}: startup time over {$COPR.STARTUP.MAX:"{#POOL}"}'
|
||||
opdata: '{ITEM.LASTVALUE1}'
|
||||
priority: WARNING
|
||||
tags:
|
||||
- tag: scope
|
||||
|
|
@ -123,6 +124,7 @@ zabbix_export:
|
|||
- uuid: e28b894fcebc4b7b9ce13a83edd90a85
|
||||
expression: 'last(/COPR Build metrics/copr.builds.success_rate[{#POOL}])<60'
|
||||
name: 'Pool {#POOL}: success rate below 60%'
|
||||
opdata: '{{ITEM.LASTVALUE1}.fmtnum(2)}%'
|
||||
priority: WARNING
|
||||
tags:
|
||||
- tag: scope
|
||||
|
|
@ -138,6 +140,7 @@ zabbix_export:
|
|||
last(/COPR Build metrics/copr.builds.last_attempt[{#POOL}],#1:now-6m) - last(/COPR Build metrics/copr.builds.last_success[{#POOL}],#1:now-6m)
|
||||
) > 3600
|
||||
name: 'Pool {#POOL}: last successful build is more than 1h older than last attempted build'
|
||||
opdata: '{{ITEM.LASTVALUE1} - {ITEM.LASTVALUE2}} s'
|
||||
priority: WARNING
|
||||
tags:
|
||||
- tag: scope
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue