Use Cases
Monitoring a remote system running on Linux
Monitoring a remote system running on Linux is straightforward with MetricsHub. After identifying the linux connectors available to collect metrics about the OS, the network interfaces, or the server itself, you need to configure one or several monitoring protocols, typically:
sshto collect operating system-specific metrics and information about CPU, file system, memory, network interface, physical disk, process, etc.snmporwbemto collect hardware information about the physical machine.
In the example below, we configure MetricsHub to monitor the remote machine dev-nvidia-01 running on Linux through the SSH protocol.
We do not declare any specific connectors to let MetricsHub detect the most suitable ones and collect the metrics available.
Procedure
To monitor a remote machine running on Linux:
-
In the
config/metricshub.yamlfile, we configure the monitoring on a Linux machine throughSSH:resources: dev-nvidia-01: attributes: host.name: dev-nvidia-01 host.type: linux -
Then, we configure the SSH protocol
protocols: ssh: username: myusername password: mypassword
Here is the complete YAML configuration to be added to config/metricshub.yaml
to monitor a remote machine running on Linux:
resources:
dev-nvidia-01:
attributes:
host.name: dev-nvidia-01
host.type: linux
protocols:
ssh:
username: myusername
password: mypassword