Table of Contents
MetricsHub
MetricsHub 1.0.04-SNAPSHOT
-
Home
- Custom Monitoring
Linux Process Monitoring
You can configure MetricsHub to monitor a Linux process. In the example below, we configured MetricsHub to monitor the systemd process running on the prod-web resource using SSH.
Procedure
To achieve this use case, we:
- Declare the resource to be monitored (
prod-web) and its attributes (host.name,host.type)
resources:
prod-web:
attributes:
host.name: prod-web
host.type: linux
- Configure the
SSHprotocol withcredentialsandtimeout
protocols:
ssh:
username: <username>
password: <password>
timeout: 30
- Add a new instance of the
LinuxProcess[1] connector for the monitoring ofsystemd. Name this new instancesystemdProcess, for example:
additionalConnectors:
systemdProcess:
uses: LinuxProcess
- Set the variable
matchNamefor the service to be monitored (systemd):
variables:
matchName: systemd
Here is the complete YAML configuration:
resources:
prod-web:
attributes:
host.name: prod-web
host.type: linux
protocols:
ssh:
username: <username>
password: <username>
timeout: 30
additionalConnectors:
systemdProcess:
uses: LinuxProcess
variables:
matchName: systemd
Supporting Resources
Search Results for {{siteSearch | truncate:'50'}}
{{resultArray.length}}
No results.
