uptime collector¶
uptime collects the host's system uptime.
Configuration¶
The common collector's configuration is:
| Parameter | Type | Default | Description |
|---|---|---|---|
id |
String | Collector's ID. Must be unique per agent instance. | |
type |
String | Must be uptime |
|
interval |
Integer | agent.defaults.interval |
Repetition interval in seconds |
labels |
Object | Additional collector-level labels | |
relabel |
Array | Optional relabeling rules. See Relabeling Rules for details |
Config example:
Collected Metrics¶
| Metric | Metric Type | Description |
|---|---|---|
uptime_uptime |
Counter | System uptime, in seconds |
Labels¶
uptime collector doesn't append its own labels.
Config Discovery¶
uptime collector supports the Config Discovery by default.
To disable a particular block use the --config-discovery-opts option: