mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-01-24 12:59:06 +01:00
2.0 KiB
2.0 KiB
PerfCmdMetric collector
Configuration
{
"perf_command": "perf",
"metrics" : [
{
"name": "cpu_cycles",
"event": "cycles",
"unit": "Hz",
"type": "hwthread",
"publish": true,
"use_perf_unit": false,
"type_aggregation": "socket",
"tags": {
"tags_just" : "for_the_event"
},
"meta": {
"meta_info_just" : "for_the_event"
}
}
],
"expressions": [
{
"metric": "avg_cycles_per_second",
"expression": "cpu_cycles / time",
"type": "node",
"type_aggregation": "avg",
"publish": true
}
]
}
perf_command
: Path to theperf
command. If it is not an absolute path, the command is looked up in$PATH
.metrics
: List of metrics to measurename
: Name of metric for output and expressionsevent
: Event as supplied toperf stat -e <event>
likecycles
oruncore_imc_0/event=0x01,umask=0x00/
unit
: Unit for the metric. Will be added as meta information thus similar then adding"meta" : {"unit": "myunit"}
.type
: Do measurments at this level (hwthread
andsocket
are the most common ones).publish
: Publish the metric or use it only for expressions.use_perf_unit
: For some events,perf
outputs a unit. With this switch, the unit provided byperf
is added as meta informations.type_aggregation
: Sum the metric values to the given typetags
: Tags just for this metricmeta
: Meta informations just for this metric
expressions
: Calculate metrics out of multiple measurementsmetric
: Name of metric for outputexpression
: What should be calculatedtype
: Aggregate the expression results to this leveltype_aggregation
: Aggregate the expression results withsum
,min
,max
,avg
ormean
publish
: Publish metric