ncabatoff / process-exporter

Prometheus exporter that mines /proc to report on selected processes
MIT License
1.67k stars 265 forks source link

Not getting any namedprocess_namegroup_* metrics from process exporter #284

Closed dSohaliya closed 8 months ago

dSohaliya commented 9 months ago

Hi,

We are using k8s for deployment. So our prometheus server is also running on k8s cluster. but there are some application that are running outside of the cluster, but we want to monitor them using process exporter and export their metrics to prometheus.

So I installed process exporter 0.7.10 on instance and updated the process-exporter.yml file, but still I am not getting any of **namedprocessnamegroup*** matrices.

The only metrices we are getting is

########################### ##########################

go_gc_duration_seconds{quantile="0"} 4.0291e-05 go_gc_duration_seconds{quantile="0.25"} 8.8892e-05 go_gc_duration_seconds{quantile="0.5"} 0.000113702 go_gc_duration_seconds{quantile="0.75"} 0.000155452 go_gc_duration_seconds{quantile="1"} 0.000300644 go_gc_duration_seconds_sum 0.002150275 go_gc_duration_seconds_count 17 go_goroutines 9 go_info{version="go1.17.3"} 1 go_memstats_alloc_bytes 2.732656e+06 go_memstats_alloc_bytes_total 2.5831328e+07 go_memstats_buck_hash_sys_bytes 728690 go_memstats_frees_total 336140 go_memstats_gc_cpu_fraction 6.1909504967471784e-06 go_memstats_gc_sys_bytes 1.57216e+06 go_memstats_heap_alloc_bytes 2.732656e+06 go_memstats_heap_idle_bytes 4.38272e+06 go_memstats_heap_inuse_bytes 3.579904e+06 go_memstats_heap_objects 11952 go_memstats_heap_released_bytes 4.030464e+06 go_memstats_heap_sys_bytes 7.962624e+06 go_memstats_last_gc_time_seconds 1.7029291417687175e+09 go_memstats_lookups_total 0 go_memstats_mallocs_total 348092 go_memstats_mcache_inuse_bytes 1200 go_memstats_mcache_sys_bytes 16384 go_memstats_mspan_inuse_bytes 28240 go_memstats_mspan_sys_bytes 65536 go_memstats_next_gc_bytes 4.194304e+06 go_memstats_other_sys_bytes 614474 go_memstats_stack_inuse_bytes 393216 go_memstats_stack_sys_bytes 393216 go_memstats_sys_bytes 1.1353084e+07 go_threads 5 namedprocess_scrape_errors 0 namedprocess_scrape_partial_errors 72 namedprocess_scrape_procread_errors 0 process_cpu_seconds_total 0.48 process_exporter_build_info{branch="",goversion="go1.17.3",revision="935906b20e56b70afc22443137fa0337f7fa5d05",version="0.7.10"} 1 process_max_fds 65535 process_open_fds 10 process_resident_memory_bytes 1.3746176e+07 process_start_time_seconds 1.70292703062e+09 process_virtual_memory_bytes 8.23410688e+08 process_virtual_memory_max_bytes 1.8446744073709552e+19 promhttp_metric_handler_requests_in_flight 1 promhttp_metric_handler_requests_total{code="200"} 39 promhttp_metric_handler_requests_total{code="500"} 0 promhttp_metric_handler_requests_total{code="503"} 0

################# #################

And my process-exporter.yml file is

process_names:

Can someone explain what could be the issue here?

dSohaliya commented 8 months ago

resolved the issue. My instance was of x86_64 arch. but when I installed amd64 arch version It worked perfectly fine.