Skip to content

No output in pusher_power, PowerReport #626

@masoudbaharlou

Description

@masoudbaharlou

Hello,
I want to integrate powerapi, but nothing is being written to the output.

Here are details to my setup:
I can run hwpc sensor without problem:

I: 25-06-16 12:19:52 build: version unknown (rev: unknown)
I: 25-06-16 12:19:52 uname: Linux 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
I: 25-06-16 12:19:52 pmu: found ix86arch 'Intel X86 architectural PMU' having 7 events, 7 counters (4 general, 3 fixed)
I: 25-06-16 12:19:52 pmu: found perf 'perf_events generic PMU' having 198 events, 0 counters (0 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found rapl 'Intel RAPL' having 2 events, 3 counters (0 general, 3 fixed)
I: 25-06-16 12:19:52 pmu: found perf_raw 'perf_events raw PMU' having 1 events, 0 counters (0 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdw_ep 'Intel Broadwell EP' having 75 events, 11 counters (8 general, 3 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_cbo0 'Intel BroadwellX C-Box 0 uncore' having 28 events, 4 counters (4 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_cbo1 'Intel BroadwellX C-Box 1 uncore' having 28 events, 4 counters (4 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_cbo2 'Intel BroadwellX C-Box 2 uncore' having 28 events, 4 counters (4 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_cbo3 'Intel BroadwellX C-Box 3 uncore' having 28 events, 4 counters (4 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_cbo4 'Intel BroadwellX C-Box 4 uncore' having 28 events, 4 counters (4 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_cbo5 'Intel BroadwellX C-Box 5 uncore' having 28 events, 4 counters (4 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_cbo6 'Intel BroadwellX C-Box 6 uncore' having 28 events, 4 counters (4 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_cbo7 'Intel BroadwellX C-Box 7 uncore' having 28 events, 4 counters (4 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_ha0 'Intel BroadwellX HA 0 uncore' having 47 events, 4 counters (4 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_imc0 'Intel BroadwellX IMC0 uncore' having 42 events, 5 counters (4 general, 1 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_imc1 'Intel BroadwellX IMC1 uncore' having 42 events, 5 counters (4 general, 1 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_imc2 'Intel BroadwellX IMC2 uncore' having 42 events, 5 counters (4 general, 1 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_imc3 'Intel BroadwellX IMC3 uncore' having 42 events, 5 counters (4 general, 1 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_imc4 'Intel BroadwellX IMC4 uncore' having 42 events, 5 counters (4 general, 1 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_pcu 'Intel BroadwellX PCU uncore' having 62 events, 4 counters (4 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_qpi0 'Intel BroadwellX QPI0 uncore' having 53 events, 4 counters (4 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_qpi1 'Intel BroadwellX QPI1 uncore' having 53 events, 4 counters (4 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_ubo 'Intel BroadwellX U-Box uncore' having 3 events, 3 counters (2 general, 1 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_r2pcie 'Intel BroadwellX R2PCIe uncore' having 15 events, 4 counters (4 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_r3qpi0 'Intel BroadwellX R3QPI0 uncore' having 28 events, 3 counters (3 general, 0 fixed)
I: 25-06-16 12:19:52 pmu: found bdx_unc_r3qpi1 'Intel BroadwellX R3QPI1 uncore' having 28 events, 3 counters (3 general, 0 fixed)
I: 25-06-16 12:19:52 sensor: configuration is valid, starting monitoring...
I: 25-06-16 12:19:52 perf: monitoring actor started

The config file for hwpc:

{
"name": "sensor",
"verbose": true,
"frequency": 500,
"output": {
"type": "mongodb",
"uri": "mongodb://127.0.0.1",
"database": "db_sensor2",
"collection": "report_0"
},
"system": {
"rapl": {
"events": ["RAPL_ENERGY_PKG", "RAPL_ENERGY_DRAM"],
"monitoring_type": "MONITOR_ONE_CPU_PER_SOCKET"
},
"msr": {
"events": ["TSC", "APERF", "MPERF"]
}
},
"container": {
"core": {
"events": [
"CPU_CLK_THREAD_UNHALTED:REF_P",
"CPU_CLK_THREAD_UNHALTED:THREAD_P",
"LLC_MISSES",
"INSTRUCTIONS_RETIRED"
]
}
}
}

The problem is that when I start the formula in smartwatts, I don't see anything written in the output (PowerReport), the bucket is being created in Influxdb but it's empty

This is the config file I'm using:

{
"verbose": true,
"stream": true,
"input": {
"puller": {
"model": "HWPCReport",
"type": "mongodb",
"uri": "mongodb://127.0.0.1",
"db": "db_sensor2",
"collection": "report_0"
}
},
"output": {
"pusher_power": {
"model": "PowerReport",
"type": "influxdb2",
"uri": "http://127.0.0.1:8086",
"db": "power_consumption",
"org": "{myorg}",
"token": "{mytoken}"
}
},
"cpu-base-freq": 1200,
"cpu-error-threshold": 2.0,
"disable-dram-formula": false,
"sensor-reports-frequency": 1000
}

I manually checked mongodb and there is no "system" event, not sure if this is the problem and how to solve it:

Image

Thanks in advance for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions