I already have installed influxDB plugin on Icinga2 as below:
icinga2 feature enable influxdb
It is enabled and I have configured it to send all data to influxDB. The configuration is as the following code block:
library "perfdata"
object InfluxdbWriter "influxdb" {
host = "159.100.248.41"
port = 8086
database = "icinga2"
host_template = {
measurement = "$host.check_command$"
tags = {
hostname = "$host.name$"
}
}
service_template = {
measurement = "$service.check_command$"
tags = {
hostname = "$host.name$"
service = "$service.name$"
}
}
enable_send_thresholds = true // Optional. Send additional threshold metrics
enable_send_metadata = true // Send additional metadata metrics
}
I have data like ping4, snmp-load, snmp-disk, host alive data metrics in influxDB, but the problem is that I cannot see any config for sending CPU usage, Memory usage. How should I send these data to influx?