Commit Graph

12 Commits

Author SHA1 Message Date
Nils K 715a2ed674
Gracefully handle absence of environment configuration file (#3062)
node_exporter has reasonable defaults so it is able to start without explicit config.
Such a setup is common in /usr/-only images where /etc/ is an empty tmpfs upon boot.

Signed-off-by: Nils K <24257556+septatrix@users.noreply.github.com>
2024-09-22 19:34:41 +02:00
Perry Naseck 440a132c38
Add multiple listeners and systemd socket listener activation (#2393)
Update exporter-toolkit to v0.8.1 to enable new listener support.

Signed-off-by: Perry Naseck <git@perrynaseck.com>
2022-10-23 12:45:29 +02:00
Tom Wilkie 53e3418e5f Add init.d script for OpenWrt.
Signed-off-by: Tom Wilkie <tom@grafana.com>
2020-04-28 16:14:19 +02:00
Fatih Degirmenci a78c5d3cd8
Update systemd example readme file (#1663)
The readme file does not mention the need to create a folder named
/var/lib/node_exporter/textfile_collector as a step. Lack of this
folder results errors for node_exporter service which is visible
in systemd status output. These errors possibly harmless but it is
not good to have them still.

$ sudo systemctl status node_exporter
--- snipped ---
Apr 04 14:51:35 ubuntu node_exporter[14713]: level=info ts=2020-04-04T14:51:35.584Z caller=node_exporter.go:190 msg="Listening on" address=:9100
Apr 04 15:05:34 ubuntu node_exporter[14876]: level=error ts=2020-04-04T15:05:34.464Z caller=textfile.go:197 collector=textfile msg="failed to read textfile collector directory" path=/var/lib/node_exporter/textfile_collector=textfile msg="failed to read textfile collector directory" path=/var/lib/node_exporter/textfile_collector err="open /var/lib/node_exporter/textfile_collector: no such file or directory"
--- snipped ---

Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2020-04-06 15:32:02 +02:00
Roman Pertl 8864a7bf0d Fix grammer in examples/init.d (#1497)
Fix the grammar of an error message.

Signed-off-by: Roman Pertl <roman@pertl.org>
2019-10-28 09:21:45 +01:00
Shawn Craver b8b0195d6d OpenBSD rc.d script (#1306)
* OpenBSD rc.d script

Signed-off-by: Shawn Craver <craversp@gmail.com>
2019-04-04 13:06:31 +02:00
Paul Gier 3cf5b006fb examples/init.d: fix web.listen-address flag (#1157)
CLI flags use two dashes instead of one since v0.15.0
Also, use default port number
Fixes #1156

Signed-off-by: Paul Gier <pgier@redhat.com>
2018-11-16 00:50:09 +01:00
dbalakirev 5273b00df9 launchctl example based on LaunchDaemons (#1102)
LaunchDaemons are the correct way to create services that are restart proof.
There is now only a single destination place mentioned in the readme for the plist file.

Signed-off-by: Dávid Balakirev <dave00ster@gmail.com>
2018-10-10 12:44:05 +02:00
gentlejo 2269df255c Add node_exporter script for init.d (#1059)
* Add node_exporter script for init.d

Signed-off-by: gentlejo <josungil@gmail.com>
2018-10-04 13:57:49 +02:00
Morten Siebuhr a310029890 Add example launchctl-file for MacOS (#856)
* Add example LaunchCtl-file for MacOS

Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>

* Rewrite program location in launctctl file

This seem to be the way most plist files does it.

Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>

* Make launct-agent run as nobody/nobody

Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>

* Rename plist per general naming scheme

Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>

* Pass arguments-file when launched through launchctl

Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>
2018-03-22 15:31:53 +01:00
Calle Pettersson dfe07eaae8 Switch to kingpin flags (#639)
* Switch to kingpin flags

* Fix logrus vendoring

* Fix flags in main tests

* Fix vendoring versions
2017-08-12 15:07:24 +02:00
Tobias Florek 2a38b57a2a Mention copr yum repository, add systemd unit (#529)
* add systemd unit as example

* mention community yum repo

fixes #498

* rename textfile collector dir
2017-04-19 18:54:15 +02:00