Creating Your First Configuration
tip
The easiest way to create your first configuration is to use the Web Interface. This guide covers the equivalent YAML if you prefer to edit the file directly.
-
Copy this minimal configuration:
# metricshub.yamlattributes:site: my-datacenter # Where your resources are locatedresources:my-first-host: # # Change: unique identifier for this resourceattributes:host.name: 192.168.1.100 # # Change: IP address or hostnamehost.type: linux # # Change: win, linux, network, storage, etc.protocols:ssh: # # Change: protocol to use (see Protocols below)username: admin # # Change: your credentialspassword: changeme # # Change: your passwordtimeout: 120s -
Change
host.nameto your server's IP address or hostname -
Change
host.typeto match your system (see Configuring the Host Types) -
Update the
protocolssection with the required protocol(s) and credentials (see Protocols and Credentials) -
Save as
metricshub.yamlinC:\ProgramData\MetricsHub\configfor Windows,/opt/metricshub/lib/configfor Linux -
Open Tools > YAML Editor in the Web Interface to validate your configuration
-
Restart MetricsHub.