You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/sap/monitor/provider-linux.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,8 +74,22 @@ When the provider settings validation operation fails with the code ‘Prometheu
74
74
1. Try to restart the node exporter agent:
75
75
1. Go to the folder where you installed the node exporter (the file name resembles `node_exporter-*.*-amd64`).
76
76
1. Run `./node_exporter`.
77
+
1. Adding nohup and & to aboe command decouples the node_exporter from linux machine commandline. If not included node_exporter would stop when the commandline is closed.
77
78
1. Verify that the Prometheus endpoint is reachable from the subnet that you provided while creating the Azure Monitor for SAP solutions resource.
78
79
80
+
## Suggestions
81
+
82
+
### Enabling Node Exporter
83
+
84
+
1. Run `nohup ./node_exporter &` command to enable node_exporter.
85
+
1. Adding nohup and & to aboe command decouples the node_exporter from linux machine commandline. If not included node_exporter would stop when the commandline is closed.
86
+
87
+
### Setting up cron job to start Node exporter on VM restart
88
+
89
+
1. If the target virual machine is restarted/stopped, node exporter is also stopped, and needs to be manually started again to continue monitoring.
90
+
1. Run `sudo crontab -e` command to open cron file.
91
+
1. Add the command `@reboot cd /path/to/node/exporter && nohup ./node_exporter &` at the end of cron file. This will start node exporter on VM reboot.
0 commit comments