mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-10-22 05:45:07 +02:00
Move example configurations and update docs. Fixed #150
This commit is contained in:
41
example-configs/collectors.json
Normal file
41
example-configs/collectors.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"cpufreq": {},
|
||||
"cpufreq_cpuinfo": {},
|
||||
"gpfs": {
|
||||
"exclude_filesystem": [
|
||||
"test_fs"
|
||||
]
|
||||
},
|
||||
"ibstat": {},
|
||||
"loadavg": {
|
||||
"exclude_metrics": [
|
||||
"proc_total"
|
||||
]
|
||||
},
|
||||
"memstat": {},
|
||||
"netstat": {
|
||||
"include_devices": [
|
||||
"enp5s0"
|
||||
],
|
||||
"send_derived_values": true
|
||||
},
|
||||
"numastats": {},
|
||||
"nvidia": {},
|
||||
"tempstat": {
|
||||
"report_max_temperature": true,
|
||||
"report_critical_temperature": true,
|
||||
"tag_override": {
|
||||
"hwmon0": {
|
||||
"type": "socket",
|
||||
"type-id": "0"
|
||||
},
|
||||
"hwmon1": {
|
||||
"type": "socket",
|
||||
"type-id": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"topprocs": {
|
||||
"num_procs": 5
|
||||
}
|
||||
}
|
10
example-configs/config.json
Normal file
10
example-configs/config.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"sinks-file": "./sinks.json",
|
||||
"collectors-file" : "./collectors.json",
|
||||
"receivers-file" : "./receivers.json",
|
||||
"router-file" : "./router.json",
|
||||
"main" : {
|
||||
"interval": "10s",
|
||||
"duration": "1s"
|
||||
}
|
||||
}
|
44
example-configs/receivers.json
Normal file
44
example-configs/receivers.json
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"natsrecv": {
|
||||
"type": "nats",
|
||||
"address": "nats://my-url",
|
||||
"port": "4222",
|
||||
"database": "testcluster"
|
||||
},
|
||||
"redfish_recv": {
|
||||
"type": "redfish",
|
||||
"endpoint": "https://%h-bmc",
|
||||
"client_config": [
|
||||
{
|
||||
"host_list": "my-host-1-[1-2]",
|
||||
"username": "username-1",
|
||||
"password": "password-1"
|
||||
},
|
||||
{
|
||||
"host_list": "my-host-2-[1,2]",
|
||||
"username": "username-2",
|
||||
"password": "password-2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ipmi_recv": {
|
||||
"type": "ipmi",
|
||||
"endpoint": "ipmi-sensors://%h-ipmi",
|
||||
"exclude_metrics": [
|
||||
"fan_speed",
|
||||
"voltage"
|
||||
],
|
||||
"client_config": [
|
||||
{
|
||||
"username": "username-1",
|
||||
"password": "password-1",
|
||||
"host_list": "my-host-1-[1-2]"
|
||||
},
|
||||
{
|
||||
"username": "username-2",
|
||||
"password": "password-2",
|
||||
"host_list": "my-host-2-[1,2]"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
23
example-configs/router.json
Normal file
23
example-configs/router.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"process_messages" : {
|
||||
"add_tag_if": [
|
||||
{
|
||||
"key" : "cluster",
|
||||
"value" : "testcluster",
|
||||
"if" : "true"
|
||||
},
|
||||
{
|
||||
"key" : "test",
|
||||
"value" : "testing",
|
||||
"if" : "name == 'temp_package_id_0'"
|
||||
}
|
||||
],
|
||||
"delete_tag_if": [
|
||||
{
|
||||
"key" : "unit",
|
||||
"if" : "true"
|
||||
}
|
||||
]
|
||||
},
|
||||
"interval_timestamp" : true
|
||||
}
|
8
example-configs/sinks.json
Normal file
8
example-configs/sinks.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"mystdout": {
|
||||
"type": "stdout",
|
||||
"meta_as_tags": [
|
||||
"unit"
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user