From 98b95e8dc67c40907c297f8020acccfe50fa2045 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Fri, 28 Jan 2022 14:56:45 +0100 Subject: [PATCH] Fix config files for CI --- .github/ci-collectors.json | 16 +++++++++++ .github/ci-config.json | 58 +++++--------------------------------- .github/ci-receivers.json | 2 ++ .github/ci-router.json | 22 +++++++++++++++ .github/ci-sinks.json | 6 ++++ 5 files changed, 53 insertions(+), 51 deletions(-) create mode 100644 .github/ci-collectors.json create mode 100644 .github/ci-receivers.json create mode 100644 .github/ci-router.json create mode 100644 .github/ci-sinks.json diff --git a/.github/ci-collectors.json b/.github/ci-collectors.json new file mode 100644 index 0000000..1b5fa4b --- /dev/null +++ b/.github/ci-collectors.json @@ -0,0 +1,16 @@ +{ + "tempstat": { + "tag_override": { + "hwmon0" : { + "type" : "socket", + "type-id" : "0" + }, + "hwmon1" : { + "type" : "socket", + "type-id" : "1" + } + } + }, + "diskstat": {}, + "memstat" : {} +} diff --git a/.github/ci-config.json b/.github/ci-config.json index 402388d..6557fd6 100644 --- a/.github/ci-config.json +++ b/.github/ci-config.json @@ -1,52 +1,8 @@ { - "sink": { - "user": "testuser", - "password": "testpass", - "host": "127.0.0.1", - "port": "9090", - "database": "testdb", - "organization": "testorg", - "type": "stdout" - }, - "interval": 3, - "duration": 1, - "collectors": [ - "tempstat", - "loadavg", - "memstat", - "netstat", - "ibstat", - "lustrestat", - "cpustat", - "topprocs", - "nvidia", - "diskstat", - "ipmistat", - "gpfs", - "cpufreq", - "cpufreq_cpuinfo" - ], - "default_tags": { - "cluster": "testcluster" - }, - "receiver": { - "type": "none" - }, - "collect_config": { - "topprocs": { - "num_procs": 2 - }, - "tempstat": { - "tag_override": { - "hwmon0": { - "type": "socket", - "type-id": "0" - }, - "hwmon1": { - "type": "socket", - "type-id": "1" - } - } - } - } -} \ No newline at end of file + "sinks": "ci-sinks.json", + "collectors" : "ci-collectors.json", + "receivers" : "ci-receivers.json", + "router" : "ci-router.json", + "interval": 5, + "duration": 1 +} diff --git a/.github/ci-receivers.json b/.github/ci-receivers.json new file mode 100644 index 0000000..0d4f101 --- /dev/null +++ b/.github/ci-receivers.json @@ -0,0 +1,2 @@ +[ +] diff --git a/.github/ci-router.json b/.github/ci-router.json new file mode 100644 index 0000000..a7d6d28 --- /dev/null +++ b/.github/ci-router.json @@ -0,0 +1,22 @@ +{ + "add_tags" : [ + { + "key" : "cluster", + "value" : "cicluster", + "if" : "*" + }, + { + "key" : "test", + "value" : "testing", + "if" : "name == 'temp_package_id_0'" + } + ], + "delete_tags" : [ + { + "key" : "unit", + "value" : "*", + "if" : "*" + } + ], + "interval_timestamp" : true +} diff --git a/.github/ci-sinks.json b/.github/ci-sinks.json new file mode 100644 index 0000000..d304018 --- /dev/null +++ b/.github/ci-sinks.json @@ -0,0 +1,6 @@ +[ + { + "type" : "stdout", + "meta_as_tags" : true + } +]