forked from lest/prometheus-rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
templating.yaml
630 lines (629 loc) · 21.9 KB
/
templating.yaml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
---
# Use YAML anchors so we can prevent repeating ourselves
anchors:
default_build_steps: &default_build_steps
default: '{% extends "default.tpl" %}'
spec: '{% extends "spec.tpl" %}'
unit: '{% extends "unit.tpl" %}'
init: '{% extends "init.tpl" %}'
default_context: &default_context
static: &default_static_context
user: prometheus
group: prometheus
package: '%{name}-%{version}.linux-amd64'
tarball_has_subdirectory: true
release: 1
service_opts: []
environment: {}
#additional_sources:
# - path: example.yml
# from_tarball: false # take file from tarball or repository
# dest: '%{_sysconfdir}/prometheus/example.yml'
# mode: 644 # optional
# user: root # optional
# group: root # optional
# config: true # specify not to override config files
prep_cmds: []
build_cmds:
- /bin/true
install_cmds: []
pre_cmds: []
post_cmds: []
preun_cmds: []
postun_cmds: []
dynamic: &default_dynamic_context
tarball: '{{URL}}/releases/download/v%{version}/{{package}}.tar.gz'
sources:
- '{{tarball}}'
- autogen_%{name}.unit
- autogen_%{name}.default
- autogen_%{name}.init
# Per-package configuration
packages:
node_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 1.1.2
license: ASL 2.0
URL: https://github.com/prometheus/node_exporter
summary: Prometheus exporter for machine metrics, written in Go with pluggable
metric collectors.
description: |
Prometheus exporter for hardware and OS metrics exposed by *NIX kernels,
written in Go with pluggable metric collectors.
blackbox_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.18.0
release: 3
license: ASL 2.0
URL: https://github.com/prometheus/blackbox_exporter
service_opts:
- --config.file=/etc/prometheus/blackbox.yml
additional_sources:
- path: blackbox.yml
dest: '%{_sysconfdir}/prometheus/blackbox.yml'
from_tarball: true
mode: 640
group: '%{group}'
summary: Blackbox prober exporter
description: |
The blackbox exporter allows blackbox probing of endpoints over HTTP, HTTPS,
DNS, TCP and ICMP.
snmp_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.20.0
release: 3
license: ASL 2.0
URL: https://github.com/prometheus/snmp_exporter
service_opts:
- --config.file=/etc/prometheus/snmp.yml
additional_sources:
- path: snmp.yml
dest: '%{_sysconfdir}/prometheus/snmp.yml'
from_tarball: true
mode: 640
group: '%{group}'
summary: Prometheus SNMP exporter.
description: |
This is an exporter that exposes information gathered from SNMP for use by the
Prometheus monitoring system.
mysqld_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.12.1
license: ASL 2.0
release: 2
URL: https://github.com/prometheus/mysqld_exporter
summary: Prometheus exporter for MySQL server metrics.
description: |
Prometheus exporter for MySQL server metrics. Supported MySQL versions: 5.5 and up.
NOTE: Not all collection methods are supported on MySQL < 5.6
postgres_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.9.0
release: 2
license: ASL 2.0
URL: https://github.com/prometheus-community/postgres_exporter
user: postgres
group: postgres
service_opts:
- --extend.query-path=/etc/prometheus/postgres_exporter_queries.yaml
environment:
DATA_SOURCE_NAME: user=postgres host=/var/run/postgresql/ sslmode=disable
additional_sources:
- path: https://raw.githubusercontent.com/prometheus-community/%{name}/v%{version}/queries.yaml
dest: '%{_sysconfdir}/prometheus/%{name}_queries.yaml'
from_tarball: false
summary: Prometheus exporter for PostgreSQL server metrics
description: |
Prometheus exporter for PostgreSQL server metrics.
redis_exporter:
build_steps:
<<: *default_build_steps
context:
static:
<<: *default_static_context
version: 1.20.0
license: MIT
summary: Prometheus exporter for Redis server metrics.
description: Prometheus Exporter for Redis Metrics. Supports Redis 2.x, 3.x,
4.x, 5.x and 6.x
package: '%{name}-v%{version}.linux-amd64'
URL: https://github.com/oliver006/redis_exporter
dynamic:
<<: *default_dynamic_context
haproxy_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.12.0
license: ASL 2.0
URL: https://github.com/prometheus/haproxy_exporter
service_opts:
- --haproxy.scrape-uri=unix:/var/lib/haproxy/stats
summary: This is a simple server that scrapes HAProxy stats and exports them
via HTTP for Prometheus consumption.
description: This is a simple server that scrapes HAProxy stats and exports
them via HTTP for Prometheus consumption.
kafka_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 1.2.0
license: ASL 2.0
release: 2
URL: https://github.com/danielqsj/kafka_exporter
summary: Kafka exporter for Prometheus.
description: Kafka exporter for Prometheus.
nginx_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.9.0
license: ASL 2.0
package: nginx-prometheus-exporter_%{version}_linux_amd64
URL: https://github.com/nginxinc/nginx-prometheus-exporter
tarball_has_subdirectory: false
fix_name: nginx-prometheus-exporter
service_opts:
- --nginx.plus
- --nginx.scrape-uri=http://127.0.0.1:8080/api
summary: NGINX Prometheus Exporter for NGINX and NGINX Plus.
description: NGINX Prometheus Exporter for NGINX and NGINX Plus.
bind_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.4.0
license: ASL 2.0
URL: https://github.com/prometheus-community/bind_exporter
summary: Prometheus exporter for Bind nameserver
description: Export BIND(named/dns) v9+ service metrics to Prometheus.
json_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.3.0
license: ASL 2.0
URL: https://github.com/prometheus-community/json_exporter
summary: A Prometheus exporter which scrapes remote JSON by JSONPath.
description: A Prometheus exporter which scrapes remote JSON by JSONPath.
service_opts:
- --config.file=/etc/prometheus/json_exporter.yml
additional_sources:
- path: https://raw.githubusercontent.com/prometheus-community/%{name}/v%{version}/examples/config.yml
dest: '%{_sysconfdir}/prometheus/%{name}.yaml'
from_tarball: false
keepalived_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.5.0
license: ASL 2.0
user: root
group: root
release: 3
URL: https://github.com/gen2brain/keepalived_exporter
package: '%{name}-%{version}-amd64'
summary: Prometheus exporter for Keepalived metrics
description: Export Keepalived service metrics to Prometheus.
dynamic:
<<: *default_dynamic_context
tarball: '{{URL}}/releases/download/%{version}/{{package}}.tar.gz'
jolokia_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 1.3.1
license: MIT
release: 2
URL: https://github.com/jaxxstorm/jolokia_exporter
package: '%{name}_%{version}'
summary: Prometheus exporter for jolokia metrics
description: Export jolokia metrics to Prometheus.
tarball_has_subdirectory: false
dynamic:
<<: *default_dynamic_context
tarball: '{{URL}}/releases/download/%{version}/{{package}}_Linux_x86_64.tar.gz'
pushgateway:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 1.4.0
license: ASL 2.0
URL: https://github.com/prometheus/pushgateway
summary: Prometheus push acceptor for ephemeral and batch jobs.
description: |
The Prometheus Pushgateway exists to allow ephemeral and batch jobs to
expose their metrics to Prometheus. Since these kinds of jobs may not
exist long enough to be scraped, they can instead push their metrics to
a Pushgateway. The Pushgateway then exposes these metrics to Prometheus.
frr_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.2.13
license: MIT
user: frr
group: frr
URL: https://github.com/tynany/frr_exporter
summary: Prometheus exporter for FRR metrics
description: Export FRR service metrics to Prometheus.
domain_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 1.11.0
license: MIT
URL: https://github.com/caarlos0/domain_exporter
package: '%{name}_linux_amd64'
tarball_has_subdirectory: false
summary: Prometheus exporter for domain expiration time metrics
description: Exports the expiration time of your domains as Prometheus metrics.
mongodb_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.20.4
license: ASL 2.0
URL: https://github.com/percona/mongodb_exporter
package: '%{name}-%{version}.linux-amd64'
summary: A Prometheus exporter for MongoDB including sharding, replication
and storage engines
description: A Prometheus exporter for MongoDB including sharding, replication
and storage engines
graphite_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.10.0
license: ASL 2.0
URL: https://github.com/prometheus/graphite_exporter
summary: Server that accepts metrics via the Graphite protocol and exports
them as Prometheus metrics.
description: |
An exporter for metrics exported in the Graphite plaintext protocol. It
accepts data over both TCP and UDP, and transforms and exposes them for
consumption by Prometheus.
statsd_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.20.1
license: ASL 2.0
URL: https://github.com/prometheus/statsd_exporter
summary: Export StatsD metrics in Prometheus format.
description: |
Exporter receives StatsD-style metrics and exports them as Prometheus metrics.
collectd_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.5.0
license: ASL 2.0
release: 2
URL: https://github.com/prometheus/collectd_exporter
summary: Collectd stats exporter for Prometheus.
description: |
Collectd stats exporter for Prometheus. It accepts collectd's binary network
protocol as sent by collectd's network plugin and metrics in JSON format via
HTTP POST as sent by collectd's write_http plugin, and transforms and exposes
them for consumption by Prometheus.
memcached_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.9.0
license: ASL 2.0
URL: https://github.com/prometheus/memcached_exporter
summary: Memcached stats exporter for Prometheus.
description: |
The memcached exporter exports metrics from a memcached server for consumption by Prometheus.
consul_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.7.1
license: ASL 2.0
release: 2
URL: https://github.com/prometheus/consul_exporter
summary: Consul stats exporter for Prometheus.
description: |
Export Consul service health to Prometheus.
smokeping_prober:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.4.1
license: ASL 2.0
release: 2
URL: https://github.com/SuperQ/smokeping_prober
service_opts:
- localhost
summary: Smokeping-style prober for Prometheus.
description: |
The smokeping-style prober sends a series of ICMP (or UDP) pings to a target and records the responses in Prometheus histogram metrics.
iperf3_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.1.3
license: ASL 2.0
release: 2
URL: https://github.com/edgard/iperf3_exporter
summary: Prometheus exporter for iPerf3 probing.
description: |
The iPerf3 exporter allows iPerf3 probing of endpoints.
apache_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.8.0
license: MIT
release: 2
URL: https://github.com/Lusitaniae/apache_exporter
summary: Prometheus exporter Apache webserver mertics.
description: |
Prometheus exporter for Apache mod_status statistics.
influxdb_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.8.0
license: ASL 2.0
URL: https://github.com/prometheus/influxdb_exporter
summary: InfluxDB stats exporter for Prometheus.
description: |
A server that accepts InfluxDB metrics via the HTTP API and exports them via HTTP for Prometheus consumption.
exporter_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.4.2
release: 3
license: ASL 2.0
URL: https://github.com/QubitProducts/exporter_exporter
additional_sources:
- path: https://raw.githubusercontent.com/QubitProducts/%{name}/v%{version}/expexp.yaml
dest: '%{_sysconfdir}/prometheus/%{name}.yml'
service_opts:
- --config.file=/etc/prometheus/exporter_exporter.yml
summary: Simple reverse proxy for Prometheus exporters
description: |
A simple reverse proxy for prometheus exporters. It is intended as a single
binary alternative to nginx/apache for use in environments where opening
multiple TCP ports to all servers might be difficult (technically or
politically).
junos_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.9.9
license: MIT
URL: https://github.com/czerwonk/junos_exporter
package: '%{name}_%{version}_linux_amd64'
tarball_has_subdirectory: false
additional_sources:
- path: '%{name}.yaml'
dest: '%{_sysconfdir}/prometheus/%{name}.yaml'
group: '%{group}'
mode: 640
service_opts:
- --config.file=/etc/prometheus/junos_exporter.yaml
summary: Prometheus exporter for Junos device metrics.
description: |
Prometheus exporter for Junos device metrics.
dynamic:
<<: *default_dynamic_context
tarball: '{{URL}}/releases/download/%{version}/{{package}}.tar.gz'
openstack_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 1.3.0
release: 2
license: MIT
URL: https://github.com/openstack-exporter/openstack-exporter
package: openstack-exporter-%{version}.linux-amd64
fix_name: openstack-exporter
additional_sources:
- path: '%{name}_clouds.yaml'
dest: '%{_sysconfdir}/prometheus/%{name}_clouds.yaml'
group: '%{group}'
mode: 640
service_opts:
- --os-client-config=/etc/prometheus/openstack_exporter_clouds.yaml
summary: Prometheus exporter for OpenStack metrics.
description: |
OpenStack exporter for Prometheus written in Golang using the gophercloud library.
process_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.7.5
release: 2
license: MIT
URL: https://github.com/ncabatoff/process-exporter
package: process-exporter-%{version}.linux-amd64
fix_name: process-exporter
additional_sources:
- path: https://raw.githubusercontent.com/ncabatoff/process-exporter/v%{version}/packaging/conf/all.yaml
dest: '%{_sysconfdir}/prometheus/%{name}.yml'
service_opts:
- --config.path=/etc/prometheus/process_exporter.yml
summary: Process exporter for Prometheus.
description: |
Prometheus exporter that mines /proc to report on selected processes.
ssl_exporter:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 2.2.0
release: 2
license: ASL 2.0
URL: https://github.com/ribbybibby/ssl_exporter
package: '%{name}_%{version}_linux_amd64'
tarball_has_subdirectory: false
additional_sources:
- path: https://raw.githubusercontent.com/ribbybibby/%{name}/v%{version}/examples/%{name}.yaml
dest: '%{_sysconfdir}/prometheus/%{name}.yml'
service_opts:
- --config.file=/etc/prometheus/ssl_exporter.yml
summary: Prometheus exporter for SSL certificates.
description: |
Prometehus exporter that exports metrics for certificates collected from TCP
probes, local files or Kubernetes secrets. The metrics are labelled with fields
from the certificate, which allows for informational dashboards and flexible
alert routing.
sachet:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 0.2.3
release: 4
license: BSD
URL: https://github.com/messagebird/sachet
additional_sources:
- path: https://raw.githubusercontent.com/messagebird/%{name}/%{version}/examples/config.yaml
dest: '%{_sysconfdir}/prometheus/%{name}.yml'
mode: 640
group: '%{group}'
service_opts:
- --config=/etc/prometheus/sachet.yml
summary: SMS alerts for Prometheus Alertmanager.
description: |
Sachet is Hindi for conscious. Sachet is an SMS alerting tool for the
Prometheus Alertmanager.
dynamic:
<<: *default_dynamic_context
tarball: '{{URL}}/releases/download/%{version}/{{package}}.tar.gz'
jiralert:
build_steps:
<<: *default_build_steps
context:
<<: *default_context
static:
<<: *default_static_context
version: 1.0
release: 2
license: ASL 2.0
URL: https://github.com/prometheus-community/jiralert
service_opts:
- --config=/etc/prometheus/jiralert.yml
additional_sources:
- path: config/jiralert.yml
dest: '%{_sysconfdir}/prometheus/%{name}.yml'
from_tarball: true
group: '%{group}'
mode: 640
- path: config/jiralert.tmpl
dest: '%{_sysconfdir}/prometheus/%{name}.tmpl'
from_tarball: true
summary: Prometheus Alertmanager webhook receiver for JIRA
description: |
JIRAlert implements Alertmanager's webhook HTTP API and connects to one or more
JIRA instances to create highly configurable JIRA issues.
dynamic:
<<: *default_dynamic_context
tarball: '{{URL}}/releases/download/%{version}/{{package}}.tar.gz'