Add example interval aggregation to MetricRouter config for CI

This commit is contained in:
Thomas Roehl 2022-01-30 15:04:31 +01:00
parent cf810b1c0c
commit 18c5d0eb34

View File

@ -1,22 +1,37 @@
{
"add_tags" : [
"add_tags": [
{
"key" : "cluster",
"value" : "testcluster",
"if" : "*"
"key": "cluster",
"value": "testcluster",
"if": "*"
},
{
"key" : "test",
"value" : "testing",
"if" : "name == 'temp_package_id_0'"
"key": "test",
"value": "testing",
"if": "name == 'temp_package_id_0'"
}
],
"delete_tags" : [
"delete_tags": [
{
"key" : "unit",
"value" : "*",
"if" : "*"
"key": "unit",
"value": "*",
"if": "*"
}
],
"interval_timestamp" : true
"interval_aggregates": [
{
"name": "temp_cores_avg",
"function": "avg(values)",
"if": "match('temp_core_%d+', metric.Name())",
"tags": {
"type": "node"
},
"meta": {
"group": "<copy>",
"unit": "<copy>",
"source": "MetricAggregator"
}
}
],
"interval_timestamp": true
}