treydock / cgroup_exporter

Apache License 2.0
18 stars 7 forks source link

multi --config.paths return error #25

Closed YukkiKaze closed 2 months ago

YukkiKaze commented 1 year ago

I boot cgroup_exporter with ./cgroup_exporter --config.paths="/user.slice,/system.slice", it return prometheus client metrics serving error from :9306/metrics, seems metrics with same labelset exists in exporter?


An error has occurred while serving metrics:

13 error(s) occurred:
* [from Gatherer #1] collected metric "cgroup_cpu_user_seconds" { label:{name:"cgroup"  value:"/user.slice"}  gauge:{value:175.31}} was collected before with the same name and label values
* [from Gatherer #1] collected metric "cgroup_cpu_system_seconds" { label:{name:"cgroup"  value:"/user.slice"}  gauge:{value:115.32}} was collected before with the same name and label values
* [from Gatherer #1] collected metric "cgroup_cpu_total_seconds" { label:{name:"cgroup"  value:"/user.slice"}  gauge:{value:255.74626031}} was collected before with the same name and label values
* [from Gatherer #1] collected metric "cgroup_cpus" { label:{name:"cgroup"  value:"/user.slice"}  gauge:{value:0}} was collected before with the same name and label values
* [from Gatherer #1] collected metric "cgroup_cpu_info" { label:{name:"cgroup"  value:"/user.slice"}  label:{name:"cpus"  value:""}  gauge:{value:1}} was collected before with the same name and label values
* [from Gatherer #1] collected metric "cgroup_memory_rss_bytes" { label:{name:"cgroup"  value:"/user.slice"}  gauge:{value:1.251328e+07}} was collected before with the same name and label values
* [from Gatherer #1] collected metric "cgroup_memory_cache_bytes" { label:{name:"cgroup"  value:"/user.slice"}  gauge:{value:2.48283136e+08}} was collected before with the same name and label values
* [from Gatherer #1] collected metric "cgroup_memory_used_bytes" { label:{name:"cgroup"  value:"/user.slice"}  gauge:{value:7.90392832e+08}} was collected before with the same name and label values
* [from Gatherer #1] collected metric "cgroup_memory_total_bytes" { label:{name:"cgroup"  value:"/user.slice"}  gauge:{value:9.223372036854772e+18}} was collected before with the same name and label values
* [from Gatherer #1] collected metric "cgroup_memory_fail_count" { label:{name:"cgroup"  value:"/user.slice"}  gauge:{value:0}} was collected before with the same name and label values
* [from Gatherer #1] collected metric "cgroup_memsw_used_bytes" { label:{name:"cgroup"  value:"/user.slice"}  gauge:{value:7.90392832e+08}} was collected before with the same name and label values
* [from Gatherer #1] collected metric "cgroup_memsw_total_bytes" { label:{name:"cgroup"  value:"/user.slice"}  gauge:{value:9.223372036854772e+18}} was collected before with the same name and label values
* [from Gatherer #1] collected metric "cgroup_memsw_fail_count" { label:{name:"cgroup"  value:"/user.slice"}  gauge:{value:0}} was collected before with the same name and label values