@@ -32,6 +32,7 @@ This exporter does not output Nagios check results as Prometheus metrics; it is
3232 - [ Table of Contents] ( #table-of-contents )
3333 - [ Installation] ( #installation )
3434 - [ Debian/RPM package] ( #debianrpm-package )
35+ - [ Docker] ( #docker )
3536 - [ Binary] ( #binary )
3637 - [ Source] ( #source )
3738 - [ Configuration] ( #configuration )
@@ -59,6 +60,17 @@ wget https://github.com/wbollock/nagios_exporter/releases/download/v{{ version }
5960{dpkg,rpm} -i prometheus-nagios-exporter_{{ version }}_linux_amd64.{deb,rpm}
6061```
6162
63+ ### Docker
64+
65+ Populate ` config.toml ` with your ` APIKey = NagiosXIAPIKey `
66+
67+ ``` console
68+ sudo docker run \
69+ -v ./config.toml:/etc/prometheus-nagios-exporter/config.toml \
70+ ghcr.io/wbollock/nagios_exporter \
71+ --nagios.scrape-uri http://localhost
72+ ```
73+
6274### Binary
6375
6476``` bash
@@ -108,7 +120,7 @@ To see all available configuration flags:
108120| ` ---config.path ` | Configuration file path, only for API key | /etc/prometheus-nagios-exporter/config.toml | ❌ |
109121| ` --log.level ` | Minimum log level like "debug" or "info" | info | ❌ |
110122| ` --nagios.check-updates ` | Enable optional ` nagios_update_available_info ` metric | false | ❌ |
111- | ` --nagios.config_path ` | Nagios configuration path for use with nagiostats binary | ` /usr/local/nagios/etc/nagios.cfg ` | ❌ |
123+ | ` --nagios.config_path ` | Nagios configuration path for use with nagiostats binary | ` /usr/local/nagios/etc/nagios.cfg ` | ❌ |
112124| ` --nagios.scrape-uri ` | Nagios application address to scrape | ` http://localhost ` | ❌ |
113125| ` --nagios.ssl-verify ` | SSL certificate validation | false | ❌ |
114126| ` --nagios.stats_binary ` | Path of nagiostats binary and configuration (e.g ` /usr/local/nagios/bin/nagiostats ` ) | | ❌ |
0 commit comments