zabbix_export:
version: '7.0'
template_groups:
- uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
name: Templates/Applications
templates:
- uuid: 2ef2f2eb75ee4a0bae839e22aa76e5fc
template: 'Jenkins by HTTP'
name: 'Jenkins by HTTP'
description: |
Get Jenkins metrics by HTTP agent.
Metrics are collected by requests to Metrics API. Install Metrics plugin and configure access to the Metrics Servlet by issuing API key.
Don't forget to change macros {$JENKINS.URL}, {$JENKINS.USER}, {$JENKINS.API.TOKEN}, {$JENKINS.API.KEY}.
You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback
Generated by official Zabbix template tool "Templator"
vendor:
name: Zabbix
version: 7.0-1
groups:
- name: Templates/Applications
items:
- uuid: 7ae6f7fae8d4485fb850c84ac00b7ff1
name: 'Get computer info'
type: HTTP_AGENT
key: jenkins.computer_info
history: '0'
value_type: TEXT
trends: '0'
authtype: BASIC
username: '{$JENKINS.USER}'
password: '{$JENKINS.API.TOKEN}'
preprocessing:
- type: CHECK_NOT_SUPPORTED
parameters:
- '-1'
url: '{$JENKINS.URL}/computer/api/json'
tags:
- tag: component
value: computers
- tag: component
value: raw
- uuid: 790aedce97be4e7dae6f4de8238340a7
name: 'File descriptor ratio'
type: DEPENDENT
key: jenkins.descriptor.ratio
delay: '0'
value_type: FLOAT
units: '%'
description: 'The ratio of used to total file descriptors'
preprocessing:
- type: JSONPATH
parameters:
- '$.[''vm.file.descriptor.ratio''].value'
- type: MULTIPLIER
parameters:
- '100'
master_item:
key: jenkins.gauges.raw
tags:
- tag: component
value: fds
triggers:
- uuid: 5ec22ac264d445769039bd4c13e41bf7
expression: 'min(/Jenkins by HTTP/jenkins.descriptor.ratio,5m)>{$JENKINS.FILE_DESCRIPTORS.MAX.WARN}'
name: 'Jenkins: Current number of used files is too high'
event_name: 'Jenkins: Current number of used files is too high (over {$JENKINS.FILE_DESCRIPTORS.MAX.WARN}% for 5m)'
priority: WARNING
tags:
- tag: scope
value: capacity
- uuid: 0b3cf1992122407795eef5ab9474101d
name: 'Disk space check'
type: DEPENDENT
key: jenkins.disk_space
delay: '0'
description: 'Returns FAIL if any of the Jenkins disk space monitors are reporting the disk space as less than the configured threshold.'
valuemap:
name: 'Jenkins healthcheck'
preprocessing:
- type: JSONPATH
parameters:
- '$[''disk-space''].healthy'
- type: BOOL_TO_DECIMAL
parameters:
- ''
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
master_item: