forked from newrelic/nri-flex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkins.yml
28 lines (28 loc) · 880 Bytes
/
jenkins.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
integrations:
- name: nri-flex
interval: 60s
config: # Flex configuration starts here!
name: jenkins
global:
#Provide jenkins credentials
base_url: http://172.24.16.167:8080/
user: admin
pass: 123
apis:
#This is for capturing all the jobs running
- event_type: CiJobs
url: /api/json?tree=jobs[name]
store_lookups:
name: name
#This is for capturing all the stages running
- event_type: CiStages
url: /job/${lookup:name}/wfapi/runs
custom_attributes:
job_name: ${lookup:name}
start_key:
- stages
#This is for capturing all the builds running
- event_type: CiBuilds
url: /job/${lookup:name}/api/json?tree=allBuilds[*]
custom_attributes:
name: ${lookup:name}