Skip to content

Commit

Permalink
PMM-1708 add pmm-client into pmm-server
Browse files Browse the repository at this point in the history
  • Loading branch information
delgod committed Nov 16, 2017
1 parent 3874d40 commit cb759bd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions node_exporter.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
Description=Prometheus Node Exporter Service
After=network.target

[Service]
User=nobody
Type=simple
Environment=WEB_LISTEN_ADDRESS=":9100"
Environment=COLLECTORS_ENABLED="conntrack,diskstats,entropy,filefd,filesystem,hwmon,loadavg,mdadm,meminfo,netdev,netstat,sockstat,stat,textfile,time,uname,vmstat"
EnvironmentFile=-/etc/sysconfig/node_exporter
ExecStart=/usr/local/percona/pmm-client/node_exporter -web.listen-address $WEB_LISTEN_ADDRESS -collectors.enabled $COLLECTORS_ENABLED
Restart=on-failure
RestartSec=10s

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion playbook-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@
- percona-grafana
- percona-prometheus
- percona-orchestrator
- percona-node_exporter
- percona-qan-api
- percona-qan-app
- percona-toolkit
- percona-dashboards
- pmm-server
- pmm-client
- pmm-manage
- pmm-managed
- pmm-update
Expand Down
2 changes: 1 addition & 1 deletion supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ autorestart = unexpected
[program:node_exporter]
priority = 11
command =
/usr/sbin/node_exporter
/usr/local/percona/pmm-client/node_exporter
-web.listen-address=localhost:9100
-collectors.enabled=diskstats,filefd,filesystem,loadavg,meminfo,netdev,netstat,stat,time,uname,vmstat
stdout_logfile = /var/log/node_exporter.log
Expand Down

0 comments on commit cb759bd

Please sign in to comment.