Skip to content

Commit 328f6d1

Browse files
authored
Merge pull request #17 from NETWAYS/docs/readme
Update README
2 parents 2da44d5 + 3ae0aee commit 328f6d1

3 files changed

Lines changed: 34 additions & 3 deletions

File tree

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ release:
2020
draft: true
2121
github:
2222
owner: NETWAYS
23-
name: icinga-exporter
23+
name: icinga2-exporter
2424
archives:
2525
- formats:
2626
- binary

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Icinga2 exporter
22

3-
Prometheus exporter for Icinga2.
3+
A Prometheus exporter for Icinga2.
4+
5+
The `icinga2-exporter` for Prometheus allows you to scrape status and statistics information from Icinga2 to monitor the health of the Icinga instance.
46

57
## Installation and Usage
68

7-
The `icinga2_exporter` listens on HTTP port 9665 by default.
9+
The `icinga2-exporter` listens on HTTP port 9665 by default.
810
See the `-help` output for more options.
911

1012
```
@@ -48,6 +50,11 @@ See the `-help` output for more options.
4850
Path under which to expose metrics. (default "/metrics")
4951
```
5052

53+
### Cache
54+
55+
The exporter caches the responses from the Icinga2 API to decrease load on the API.
56+
The lifetime of the cache can be adjusted with `-web.cache-ttl`.
57+
5158
## Collectors
5259

5360
By default only the `IcingaApplication` metrics of the status API are collected.

contrib/icinga2-exporter.service

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Example systemd unit
2+
3+
[Unit]
4+
Description=Prometheus exporter for Icinga2
5+
Documentation=https://github.com/NETWAYS/icinga2-exporter
6+
After=network.target
7+
8+
[Service]
9+
EnvironmentFile=-/etc/default/icinga2-exporter
10+
User=icinga2-exporter
11+
ExecStart=/usr/bin/icinga2-exporter $ICINGA2_EXPORTER_OPTS
12+
ExecReload=/bin/kill -HUP $MAINPID
13+
TimeoutStopSec=20s
14+
SendSIGKILL=no
15+
Restart=on-failure
16+
NoNewPrivileges=true
17+
PrivateTmp=true
18+
PrivateUsers=true
19+
ProtectHome=true
20+
ProtectKernelModules=true
21+
ProtectKernelTunables=true
22+
23+
[Install]
24+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)