Get CPU, Memory usage of servers from Icinga2 and insert it into influxDB

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?

Hi. I am having the same exact issue right now. We are testing Icinga2 with exporting to InfluxDB. We’ve downloaded a few of the available Icinga2/InfluxDB dashboards and we do see some data. But when browsing the Icinga2 InfluxDB tables, for example, check_snmp_cpu, check_snmp_mem, I do not see actual CPU or memory values. I see execution_time and latency but those don’t make sense for CPU and memory. Is Icinga2 not exporting perfdata?