From 18c5d0eb34878e71a9989319d4cd020787133ad5 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Sun, 30 Jan 2022 15:04:31 +0100 Subject: [PATCH] Add example interval aggregation to MetricRouter config for CI --- .github/ci-router.json | 55 +++++++++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 20 deletions(-) diff --git a/.github/ci-router.json b/.github/ci-router.json index a9f8714..0146768 100644 --- a/.github/ci-router.json +++ b/.github/ci-router.json @@ -1,22 +1,37 @@ { - "add_tags" : [ - { - "key" : "cluster", - "value" : "testcluster", - "if" : "*" - }, - { - "key" : "test", - "value" : "testing", - "if" : "name == 'temp_package_id_0'" - } - ], - "delete_tags" : [ - { - "key" : "unit", - "value" : "*", - "if" : "*" - } - ], - "interval_timestamp" : true + "add_tags": [ + { + "key": "cluster", + "value": "testcluster", + "if": "*" + }, + { + "key": "test", + "value": "testing", + "if": "name == 'temp_package_id_0'" + } + ], + "delete_tags": [ + { + "key": "unit", + "value": "*", + "if": "*" + } + ], + "interval_aggregates": [ + { + "name": "temp_cores_avg", + "function": "avg(values)", + "if": "match('temp_core_%d+', metric.Name())", + "tags": { + "type": "node" + }, + "meta": { + "group": "", + "unit": "", + "source": "MetricAggregator" + } + } + ], + "interval_timestamp": true }