summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.confd4
-rw-r--r--net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd2
-rw-r--r--net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0.ebuild2
3 files changed, 4 insertions, 4 deletions
diff --git a/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.confd b/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.confd
index da59867f7e6..b6565200130 100644
--- a/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.confd
+++ b/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.confd
@@ -1,2 +1,2 @@
-# arguments for docker-registry
-command_args="--collector.textfile.directory=/var/node_exporter/"
+# arguments for prometheus node exporter
+command_args="--collector.textfile.directory=/var/lib/node_exporter/"
diff --git a/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd b/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd
index 2009f854c6e..1f7338f964e 100644
--- a/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd
+++ b/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd
@@ -8,7 +8,7 @@ user=${user:-${SVCNAME}}
group=${group:-${SVCNAME}}
command="/usr/bin/node_exporter"
-command_args="${command_args:--collector.textfile.directory=/var/node_exporter/}"
+command_args="${command_args:--collector.textfile.directory=/var/lib/node_exporter/}"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
--stdout /var/log/node_exporter/${SVCNAME}.log \
diff --git a/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0.ebuild b/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0.ebuild
index 7632511c4c1..732cc11a933 100644
--- a/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0.ebuild
+++ b/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0.ebuild
@@ -41,7 +41,7 @@ src_install() {
dobin node_exporter
dodoc {README,CHANGELOG,CONTRIBUTING}.md
popd || die
- keepdir /var/node_exporter /var/log/node_exporter
+ keepdir /var/lib/node_exporter /var/log/node_exporter
fowners ${PN}:${PN} /var/node_exporter /var/log/node_exporter
newinitd "${FILESDIR}"/${PN}.initd ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${PN}