Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not getting any process metrics from process exporter on Debian 12 (bookworm) #285

Open
darknetehf opened this issue Dec 20, 2023 · 2 comments

Comments

@darknetehf
Copy link

Hi,

This is a possibly related issue: #284

Output of prometheus-process-exporter -version:

process-exporter, version  (branch: debian/sid, revision: 0.7.10-3+b5)
  build user:       [email protected]
  build date:       20230409-10:13:36
  go version:       go1.19.8
  platform:         linux/amd64

OS: Debian GNU/Linux 12 (bookworm)
How the package was installed: the package was installed using Ansible:

    - name: "Install Prometheus exporters"
      apt:
        name:
          - prometheus-node-exporter # 9100
          - prometheus-postfix-exporter # 9154
          - prometheus-process-exporter # 9256

Running in debug mode, on a different port (9257):
prometheus-process-exporter -debug -web.listen-address :9257
We can see that process discovery seems to be taking place normally, but no metrics are returned on the /metrics endpoint:

2023/12/20 21:19:13 Reading metrics from /proc for procnames: []
2023/12/20 21:19:13 using cmdline matchnamer: map[]
2023/12/20 21:19:13 found new proc: {Pid:1 StartTimeRel:3}:{Name:systemd Cmdline:[/sbin/init] Cgroups:[/init.scope] ParentPid:0 StartTime:2023-12-20 21:17:00.03 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:2 StartTimeRel:3}:{Name:kthreadd Cmdline:[] Cgroups:[/] ParentPid:0 StartTime:2023-12-20 21:17:00.03 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:3 StartTimeRel:14}:{Name:rcu_gp Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:4 StartTimeRel:14}:{Name:rcu_par_gp Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:5 StartTimeRel:14}:{Name:slub_flushwq Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:6 StartTimeRel:14}:{Name:netns Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:7 StartTimeRel:14}:{Name:kworker/0:0-cgroup_destroy Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:8 StartTimeRel:14}:{Name:kworker/0:0H-kblockd Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:9 StartTimeRel:14}:{Name:kworker/u2:0-flush-254:0 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:10 StartTimeRel:14}:{Name:mm_percpu_wq Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:11 StartTimeRel:14}:{Name:rcu_tasks_kthread Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:12 StartTimeRel:14}:{Name:rcu_tasks_rude_kthread Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:13 StartTimeRel:14}:{Name:rcu_tasks_trace_kthread Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:14 StartTimeRel:14}:{Name:ksoftirqd/0 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:15 StartTimeRel:14}:{Name:rcu_preempt Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:16 StartTimeRel:14}:{Name:migration/0 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:17 StartTimeRel:14}:{Name:kworker/0:1-rcu_gp Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:18 StartTimeRel:14}:{Name:cpuhp/0 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:20 StartTimeRel:14}:{Name:kdevtmpfs Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:21 StartTimeRel:14}:{Name:inet_frag_wq Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:22 StartTimeRel:14}:{Name:kauditd Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:23 StartTimeRel:14}:{Name:khungtaskd Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:24 StartTimeRel:14}:{Name:oom_reaper Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:25 StartTimeRel:14}:{Name:kworker/u2:1-flush-254:0 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:26 StartTimeRel:16}:{Name:kworker/u2:2-ext4-rsv-conversion Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.16 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:27 StartTimeRel:16}:{Name:writeback Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.16 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:28 StartTimeRel:16}:{Name:kcompactd0 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.16 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:29 StartTimeRel:16}:{Name:ksmd Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.16 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:30 StartTimeRel:16}:{Name:khugepaged Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.16 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:31 StartTimeRel:16}:{Name:kintegrityd Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.16 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:32 StartTimeRel:16}:{Name:kblockd Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.16 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:33 StartTimeRel:16}:{Name:blkcg_punt_bio Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.16 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:34 StartTimeRel:19}:{Name:tpm_dev_wq Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.19 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:35 StartTimeRel:19}:{Name:edac-poller Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.19 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:36 StartTimeRel:19}:{Name:devfreq_wq Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.19 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:37 StartTimeRel:22}:{Name:kworker/0:1H-kblockd Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.22 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:38 StartTimeRel:24}:{Name:kswapd0 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.24 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:44 StartTimeRel:42}:{Name:kthrotld Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.42 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:46 StartTimeRel:43}:{Name:acpi_thermal_pm Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.43 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:47 StartTimeRel:44}:{Name:mld Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.44 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:48 StartTimeRel:44}:{Name:ipv6_addrconf Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.44 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:53 StartTimeRel:44}:{Name:kstrp Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.44 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:58 StartTimeRel:45}:{Name:zswap-shrink Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.45 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:59 StartTimeRel:45}:{Name:kworker/u3:0 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.45 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:114 StartTimeRel:61}:{Name:kworker/0:2-events Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.61 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:116 StartTimeRel:68}:{Name:ata_sff Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.68 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:117 StartTimeRel:68}:{Name:scsi_eh_0 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.68 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:118 StartTimeRel:68}:{Name:scsi_tmf_0 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.68 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:119 StartTimeRel:69}:{Name:scsi_eh_1 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.69 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:120 StartTimeRel:69}:{Name:scsi_tmf_1 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.69 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:121 StartTimeRel:70}:{Name:kworker/u2:3-writeback Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.7 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:122 StartTimeRel:90}:{Name:kworker/0:3-ata_sff Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.9 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:124 StartTimeRel:112}:{Name:kworker/0:2H-kblockd Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:01.12 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:154 StartTimeRel:137}:{Name:jbd2/vda1-8 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:01.37 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:155 StartTimeRel:137}:{Name:ext4-rsv-conver Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:01.37 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:200 StartTimeRel:266}:{Name:systemd-journal Cmdline:[/lib/systemd/systemd-journald] Cgroups:[/system.slice/systemd-journald.service] ParentPid:1 StartTime:2023-12-20 21:17:02.66 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:221 StartTimeRel:276}:{Name:systemd-udevd Cmdline:[/lib/systemd/systemd-udevd] Cgroups:[/system.slice/systemd-udevd.service/udev] ParentPid:1 StartTime:2023-12-20 21:17:02.76 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:254 StartTimeRel:296}:{Name:kworker/0:4-events Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:02.96 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:336 StartTimeRel:369}:{Name:cron Cmdline:[/usr/sbin/cron -f] Cgroups:[/system.slice/cron.service] ParentPid:1 StartTime:2023-12-20 21:17:03.69 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:337 StartTimeRel:369}:{Name:dbus-daemon Cmdline:[/usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only] Cgroups:[/system.slice/dbus.service] ParentPid:1 StartTime:2023-12-20 21:17:03.69 +0000 UTC EffectiveUID:100}
2023/12/20 21:19:13 found new proc: {Pid:342 StartTimeRel:370}:{Name:prometheus-node Cmdline:[/usr/bin/prometheus-node-exporter] Cgroups:[/system.slice/prometheus-node-exporter.service] ParentPid:1 StartTime:2023-12-20 21:17:03.7 +0000 UTC EffectiveUID:106}
2023/12/20 21:19:13 found new proc: {Pid:343 StartTimeRel:370}:{Name:rsyslogd Cmdline:[/usr/sbin/rsyslogd -n -iNONE] Cgroups:[/system.slice/rsyslog.service] ParentPid:1 StartTime:2023-12-20 21:17:03.7 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:344 StartTimeRel:371}:{Name:systemd-logind Cmdline:[/lib/systemd/systemd-logind] Cgroups:[/system.slice/systemd-logind.service] ParentPid:1 StartTime:2023-12-20 21:17:03.71 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:345 StartTimeRel:371}:{Name:atd Cmdline:[/usr/sbin/atd -f] Cgroups:[/system.slice/atd.service] ParentPid:1 StartTime:2023-12-20 21:17:03.71 +0000 UTC EffectiveUID:1}
2023/12/20 21:19:13 found new proc: {Pid:363 StartTimeRel:375}:{Name:firewalld Cmdline:[/usr/bin/python3 /usr/sbin/firewalld --nofork --nopid] Cgroups:[/system.slice/firewalld.service] ParentPid:1 StartTime:2023-12-20 21:17:03.75 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:365 StartTimeRel:378}:{Name:ipmi-msghandler Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:03.78 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:438 StartTimeRel:440}:{Name:named Cmdline:[/usr/sbin/named -f -u bind] Cgroups:[/system.slice/named.service] ParentPid:1 StartTime:2023-12-20 21:17:04.4 +0000 UTC EffectiveUID:105}
2023/12/20 21:19:13 found new proc: {Pid:440 StartTimeRel:440}:{Name:prometheus-proc Cmdline:[/usr/bin/prometheus-process-exporter] Cgroups:[/system.slice/prometheus-process-exporter.service] ParentPid:1 StartTime:2023-12-20 21:17:04.4 +0000 UTC EffectiveUID:106}
2023/12/20 21:19:13 found new proc: {Pid:444 StartTimeRel:443}:{Name:agetty Cmdline:[/sbin/agetty -o -p -- \u --noclear - linux] Cgroups:[/system.slice/system-getty.slice/[email protected]] ParentPid:1 StartTime:2023-12-20 21:17:04.43 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:445 StartTimeRel:443}:{Name:containerd Cmdline:[/usr/bin/containerd] Cgroups:[/system.slice/containerd.service] ParentPid:1 StartTime:2023-12-20 21:17:04.43 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:455 StartTimeRel:453}:{Name:sshd Cmdline:[sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups] Cgroups:[/system.slice/ssh.service] ParentPid:1 StartTime:2023-12-20 21:17:04.53 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:456 StartTimeRel:454}:{Name:nvme-wq Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:04.54 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:459 StartTimeRel:454}:{Name:nvme-reset-wq Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:04.54 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:460 StartTimeRel:455}:{Name:nvme-delete-wq Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:04.55 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:487 StartTimeRel:478}:{Name:ntpd Cmdline:[/usr/sbin/ntpd -p /run/ntpd.pid -c /etc/ntpsec/ntp.conf -g -N -u ntpsec:ntpsec] Cgroups:[/system.slice/ntpsec.service] ParentPid:1 StartTime:2023-12-20 21:17:04.78 +0000 UTC EffectiveUID:102}
2023/12/20 21:19:13 found new proc: {Pid:551 StartTimeRel:518}:{Name:dockerd Cmdline:[/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock] Cgroups:[/system.slice/docker.service] ParentPid:1 StartTime:2023-12-20 21:17:05.18 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:671 StartTimeRel:553}:{Name:polkitd Cmdline:[/usr/lib/polkit-1/polkitd --no-debug] Cgroups:[/system.slice/polkit.service] ParentPid:1 StartTime:2023-12-20 21:17:05.53 +0000 UTC EffectiveUID:996}
2023/12/20 21:19:13 found new proc: {Pid:1062 StartTimeRel:597}:{Name:kworker/u2:4-flush-254:0 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:05.97 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1063 StartTimeRel:597}:{Name:kworker/u2:5-flush-254:0 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:05.97 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1064 StartTimeRel:597}:{Name:kworker/u2:6-flush-254:0 Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:05.97 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1065 StartTimeRel:597}:{Name:kworker/u2:7-events_unbound Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:05.97 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1076 StartTimeRel:599}:{Name:master Cmdline:[/usr/lib/postfix/sbin/master -w] Cgroups:[/system.slice/system-postfix.slice/[email protected]] ParentPid:1 StartTime:2023-12-20 21:17:05.99 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1080 StartTimeRel:600}:{Name:pickup Cmdline:[pickup -l -t unix -u -c] Cgroups:[/system.slice/system-postfix.slice/[email protected]] ParentPid:1076 StartTime:2023-12-20 21:17:06 +0000 UTC EffectiveUID:108}
2023/12/20 21:19:13 found new proc: {Pid:1081 StartTimeRel:600}:{Name:qmgr Cmdline:[qmgr -l -t unix -u] Cgroups:[/system.slice/system-postfix.slice/[email protected]] ParentPid:1076 StartTime:2023-12-20 21:17:06 +0000 UTC EffectiveUID:108}
2023/12/20 21:19:13 found new proc: {Pid:1082 StartTimeRel:600}:{Name:prometheus-post Cmdline:[/usr/bin/prometheus-postfix-exporter] Cgroups:[/system.slice/prometheus-postfix-exporter.service] ParentPid:1 StartTime:2023-12-20 21:17:06 +0000 UTC EffectiveUID:106}
2023/12/20 21:19:13 found new proc: {Pid:1197 StartTimeRel:613}:{Name:packagekitd Cmdline:[/usr/libexec/packagekitd] Cgroups:[/system.slice/packagekit.service] ParentPid:1 StartTime:2023-12-20 21:17:06.13 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1395 StartTimeRel:747}:{Name:docker-proxy Cmdline:[/usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 2019 -container-ip 172.24.0.2 -container-port 2019] Cgroups:[/system.slice/docker.service] ParentPid:551 StartTime:2023-12-20 21:17:07.47 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1405 StartTimeRel:748}:{Name:docker-proxy Cmdline:[/usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 2019 -container-ip 172.24.0.2 -container-port 2019] Cgroups:[/system.slice/docker.service] ParentPid:551 StartTime:2023-12-20 21:17:07.48 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1438 StartTimeRel:751}:{Name:docker-proxy Cmdline:[/usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 443 -container-ip 172.24.0.2 -container-port 443] Cgroups:[/system.slice/docker.service] ParentPid:551 StartTime:2023-12-20 21:17:07.51 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1443 StartTimeRel:751}:{Name:docker-proxy Cmdline:[/usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 443 -container-ip 172.24.0.2 -container-port 443] Cgroups:[/system.slice/docker.service] ParentPid:551 StartTime:2023-12-20 21:17:07.51 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1459 StartTimeRel:755}:{Name:docker-proxy Cmdline:[/usr/bin/docker-proxy -proto udp -host-ip 0.0.0.0 -host-port 443 -container-ip 172.24.0.2 -container-port 443] Cgroups:[/system.slice/docker.service] ParentPid:551 StartTime:2023-12-20 21:17:07.55 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1464 StartTimeRel:755}:{Name:docker-proxy Cmdline:[/usr/bin/docker-proxy -proto udp -host-ip :: -host-port 443 -container-ip 172.24.0.2 -container-port 443] Cgroups:[/system.slice/docker.service] ParentPid:551 StartTime:2023-12-20 21:17:07.55 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1479 StartTimeRel:759}:{Name:docker-proxy Cmdline:[/usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 80 -container-ip 172.24.0.2 -container-port 80] Cgroups:[/system.slice/docker.service] ParentPid:551 StartTime:2023-12-20 21:17:07.59 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1484 StartTimeRel:759}:{Name:docker-proxy Cmdline:[/usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 80 -container-ip 172.24.0.2 -container-port 80] Cgroups:[/system.slice/docker.service] ParentPid:551 StartTime:2023-12-20 21:17:07.59 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1502 StartTimeRel:762}:{Name:containerd-shim Cmdline:[/usr/bin/containerd-shim-runc-v2 -namespace moby -id ae4e59803331fa91faf37cac25b5620b373a20ceb46bf7dd56f7f3b5618330d3 -address /run/containerd/containerd.sock] Cgroups:[/system.slice/containerd.service] ParentPid:1 StartTime:2023-12-20 21:17:07.62 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1503 StartTimeRel:762}:{Name:containerd-shim Cmdline:[/usr/bin/containerd-shim-runc-v2 -namespace moby -id b194ed0e41cec4d1d74934d7a09a688fc614ce27445fb2a8be83a51edcc96249 -address /run/containerd/containerd.sock] Cgroups:[/system.slice/containerd.service] ParentPid:1 StartTime:2023-12-20 21:17:07.62 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1534 StartTimeRel:773}:{Name:containerd-shim Cmdline:[/usr/bin/containerd-shim-runc-v2 -namespace moby -id 5b1860c0e2dedb52fae77cfa357d8049c5424920708966a48f1e18679cfaf80b -address /run/containerd/containerd.sock] Cgroups:[/system.slice/containerd.service] ParentPid:1 StartTime:2023-12-20 21:17:07.73 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1567 StartTimeRel:827}:{Name:mysqld Cmdline:[mysqld] Cgroups:[/system.slice/docker-ae4e59803331fa91faf37cac25b5620b373a20ceb46bf7dd56f7f3b5618330d3.scope] ParentPid:1502 StartTime:2023-12-20 21:17:08.27 +0000 UTC EffectiveUID:999}
2023/12/20 21:19:13 found new proc: {Pid:1574 StartTimeRel:827}:{Name:php-fpm Cmdline:[php-fpm: master process (/usr/local/etc/php-fpm.conf)] Cgroups:[/system.slice/docker-b194ed0e41cec4d1d74934d7a09a688fc614ce27445fb2a8be83a51edcc96249.scope] ParentPid:1503 StartTime:2023-12-20 21:17:08.27 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1581 StartTimeRel:828}:{Name:caddy Cmdline:[caddy run --config /etc/caddy/Caddyfile] Cgroups:[/system.slice/docker-5b1860c0e2dedb52fae77cfa357d8049c5424920708966a48f1e18679cfaf80b.scope] ParentPid:1534 StartTime:2023-12-20 21:17:08.28 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1752 StartTimeRel:956}:{Name:master Cmdline:[/usr/libexec/postfix/master -w] Cgroups:[/system.slice/docker-b194ed0e41cec4d1d74934d7a09a688fc614ce27445fb2a8be83a51edcc96249.scope] ParentPid:1574 StartTime:2023-12-20 21:17:09.56 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1753 StartTimeRel:957}:{Name:pickup Cmdline:[pickup -l -t unix -u] Cgroups:[/system.slice/docker-b194ed0e41cec4d1d74934d7a09a688fc614ce27445fb2a8be83a51edcc96249.scope] ParentPid:1752 StartTime:2023-12-20 21:17:09.57 +0000 UTC EffectiveUID:100}
2023/12/20 21:19:13 found new proc: {Pid:1754 StartTimeRel:957}:{Name:qmgr Cmdline:[qmgr -l -t unix -u] Cgroups:[/system.slice/docker-b194ed0e41cec4d1d74934d7a09a688fc614ce27445fb2a8be83a51edcc96249.scope] ParentPid:1752 StartTime:2023-12-20 21:17:09.57 +0000 UTC EffectiveUID:100}
2023/12/20 21:19:13 found new proc: {Pid:1772 StartTimeRel:1021}:{Name:php-fpm Cmdline:[php-fpm: pool www] Cgroups:[/system.slice/docker-b194ed0e41cec4d1d74934d7a09a688fc614ce27445fb2a8be83a51edcc96249.scope] ParentPid:1574 StartTime:2023-12-20 21:17:10.21 +0000 UTC EffectiveUID:82}
2023/12/20 21:19:13 found new proc: {Pid:1773 StartTimeRel:1021}:{Name:php-fpm Cmdline:[php-fpm: pool www] Cgroups:[/system.slice/docker-b194ed0e41cec4d1d74934d7a09a688fc614ce27445fb2a8be83a51edcc96249.scope] ParentPid:1574 StartTime:2023-12-20 21:17:10.21 +0000 UTC EffectiveUID:82}
2023/12/20 21:19:13 found new proc: {Pid:1903 StartTimeRel:10114}:{Name:sshd Cmdline:[sshd: root@pts/0] Cgroups:[/user.slice/user-0.slice/session-1.scope] ParentPid:455 StartTime:2023-12-20 21:18:41.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1906 StartTimeRel:10134}:{Name:systemd Cmdline:[/lib/systemd/systemd --user] Cgroups:[/user.slice/user-0.slice/[email protected]/init.scope] ParentPid:1 StartTime:2023-12-20 21:18:41.34 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1907 StartTimeRel:10135}:{Name:(sd-pam) Cmdline:[(sd-pam)] Cgroups:[/user.slice/user-0.slice/[email protected]/init.scope] ParentPid:1906 StartTime:2023-12-20 21:18:41.35 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1926 StartTimeRel:10151}:{Name:bash Cmdline:[-bash] Cgroups:[/user.slice/user-0.slice/session-1.scope] ParentPid:1903 StartTime:2023-12-20 21:18:41.51 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 found new proc: {Pid:1931 StartTimeRel:13292}:{Name:prometheus-proc Cmdline:[prometheus-process-exporter -debug -web.listen-address :9257] Cgroups:[/user.slice/user-0.slice/session-1.scope] ParentPid:1926 StartTime:2023-12-20 21:19:12.92 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 ignoring unmatched proc with no matched parent: {Pid:2 StartTimeRel:3}:{Name:kthreadd Cmdline:[] Cgroups:[/] ParentPid:0 StartTime:2023-12-20 21:17:00.03 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 ignoring unmatched proc with no matched parent: {Pid:13 StartTimeRel:14}:{Name:rcu_tasks_trace_kthread Cmdline:[] Cgroups:[/] ParentPid:2 StartTime:2023-12-20 21:17:00.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 ignoring unmatched proc with no matched parent: {Pid:1 StartTimeRel:3}:{Name:systemd Cmdline:[/sbin/init] Cgroups:[/init.scope] ParentPid:0 StartTime:2023-12-20 21:17:00.03 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 ignoring unmatched proc with no matched parent: {Pid:1503 StartTimeRel:762}:{Name:containerd-shim Cmdline:[/usr/bin/containerd-shim-runc-v2 -namespace moby -id b194ed0e41cec4d1d74934d7a09a688fc614ce27445fb2a8be83a51edcc96249 -address /run/containerd/containerd.sock] Cgroups:[/system.slice/containerd.service] ParentPid:1 StartTime:2023-12-20 21:17:07.62 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 ignoring unmatched proc with no matched parent: {Pid:1574 StartTimeRel:827}:{Name:php-fpm Cmdline:[php-fpm: master process (/usr/local/etc/php-fpm.conf)] Cgroups:[/system.slice/docker-b194ed0e41cec4d1d74934d7a09a688fc614ce27445fb2a8be83a51edcc96249.scope] ParentPid:1503 StartTime:2023-12-20 21:17:08.27 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 ignoring unmatched proc with no matched parent: {Pid:1907 StartTimeRel:10135}:{Name:(sd-pam) Cmdline:[(sd-pam)] Cgroups:[/user.slice/user-0.slice/[email protected]/init.scope] ParentPid:1906 StartTime:2023-12-20 21:18:41.35 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 ignoring unmatched proc with no matched parent: {Pid:1081 StartTimeRel:600}:{Name:qmgr Cmdline:[qmgr -l -t unix -u] Cgroups:[/system.slice/system-postfix.slice/[email protected]] ParentPid:1076 StartTime:2023-12-20 21:17:06 +0000 UTC EffectiveUID:108}
2023/12/20 21:19:13 ignoring unmatched proc with no matched parent: {Pid:1903 StartTimeRel:10114}:{Name:sshd Cmdline:[sshd: root@pts/0] Cgroups:[/user.slice/user-0.slice/session-1.scope] ParentPid:455 StartTime:2023-12-20 21:18:41.14 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 ignoring unmatched proc with no matched parent: {Pid:1926 StartTimeRel:10151}:{Name:bash Cmdline:[-bash] Cgroups:[/user.slice/user-0.slice/session-1.scope] ParentPid:1903 StartTime:2023-12-20 21:18:41.51 +0000 UTC EffectiveUID:0}
2023/12/20 21:19:13 ignoring unmatched proc with no matched parent: {Pid:1931 StartTimeRel:13292}:{Name:prometheus-proc Cmdline:[prometheus-process-exporter -debug -web.listen-address :9257] Cgroups:[/user.slice/user-0.slice/session-1.scope] ParentPid:1926 StartTime:2023-12-20 21:19:12.92 +0000 UTC EffectiveUID:0}
level=info ts=2023-12-20T21:19:13.430Z caller=tls_config.go:232 msg="Listening on" address=[::]:9257
level=info ts=2023-12-20T21:19:13.430Z caller=tls_config.go:235 msg="TLS is disabled." http2=false address=[::]:9257

Output from endpoint on port 9256:

# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 9.107e-06
go_gc_duration_seconds{quantile="0.25"} 2.2393e-05
go_gc_duration_seconds{quantile="0.5"} 2.7552e-05
go_gc_duration_seconds{quantile="0.75"} 3.5418e-05
go_gc_duration_seconds{quantile="1"} 4.6078e-05
go_gc_duration_seconds_sum 0.000331196
go_gc_duration_seconds_count 12
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 9
# HELP go_info Information about the Go environment.
# TYPE go_info gauge
go_info{version="go1.19.8"} 1
# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.
# TYPE go_memstats_alloc_bytes gauge
go_memstats_alloc_bytes 2.101024e+06
# HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed.
# TYPE go_memstats_alloc_bytes_total counter
go_memstats_alloc_bytes_total 2.7378888e+07
# HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table.
# TYPE go_memstats_buck_hash_sys_bytes gauge
go_memstats_buck_hash_sys_bytes 1.454657e+06
# HELP go_memstats_frees_total Total number of frees.
# TYPE go_memstats_frees_total counter
go_memstats_frees_total 305831
# HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata.
# TYPE go_memstats_gc_sys_bytes gauge
go_memstats_gc_sys_bytes 9.257536e+06
# HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and still in use.
# TYPE go_memstats_heap_alloc_bytes gauge
go_memstats_heap_alloc_bytes 2.101024e+06
# HELP go_memstats_heap_idle_bytes Number of heap bytes waiting to be used.
# TYPE go_memstats_heap_idle_bytes gauge
go_memstats_heap_idle_bytes 5.013504e+06
# HELP go_memstats_heap_inuse_bytes Number of heap bytes that are in use.
# TYPE go_memstats_heap_inuse_bytes gauge
go_memstats_heap_inuse_bytes 3.047424e+06
# HELP go_memstats_heap_objects Number of allocated objects.
# TYPE go_memstats_heap_objects gauge
go_memstats_heap_objects 10074
# HELP go_memstats_heap_released_bytes Number of heap bytes released to OS.
# TYPE go_memstats_heap_released_bytes gauge
go_memstats_heap_released_bytes 3.801088e+06
# HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system.
# TYPE go_memstats_heap_sys_bytes gauge
go_memstats_heap_sys_bytes 8.060928e+06
# HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection.
# TYPE go_memstats_last_gc_time_seconds gauge
go_memstats_last_gc_time_seconds 1.7031077267780695e+09
# HELP go_memstats_lookups_total Total number of pointer lookups.
# TYPE go_memstats_lookups_total counter
go_memstats_lookups_total 0
# HELP go_memstats_mallocs_total Total number of mallocs.
# TYPE go_memstats_mallocs_total counter
go_memstats_mallocs_total 315905
# HELP go_memstats_mcache_inuse_bytes Number of bytes in use by mcache structures.
# TYPE go_memstats_mcache_inuse_bytes gauge
go_memstats_mcache_inuse_bytes 1200
# HELP go_memstats_mcache_sys_bytes Number of bytes used for mcache structures obtained from system.
# TYPE go_memstats_mcache_sys_bytes gauge
go_memstats_mcache_sys_bytes 15600
# HELP go_memstats_mspan_inuse_bytes Number of bytes in use by mspan structures.
# TYPE go_memstats_mspan_inuse_bytes gauge
go_memstats_mspan_inuse_bytes 43776
# HELP go_memstats_mspan_sys_bytes Number of bytes used for mspan structures obtained from system.
# TYPE go_memstats_mspan_sys_bytes gauge
go_memstats_mspan_sys_bytes 81360
# HELP go_memstats_next_gc_bytes Number of heap bytes when next garbage collection will take place.
# TYPE go_memstats_next_gc_bytes gauge
go_memstats_next_gc_bytes 4.194304e+06
# HELP go_memstats_other_sys_bytes Number of bytes used for other system allocations.
# TYPE go_memstats_other_sys_bytes gauge
go_memstats_other_sys_bytes 574919
# HELP go_memstats_stack_inuse_bytes Number of bytes in use by the stack allocator.
# TYPE go_memstats_stack_inuse_bytes gauge
go_memstats_stack_inuse_bytes 327680
# HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator.
# TYPE go_memstats_stack_sys_bytes gauge
go_memstats_stack_sys_bytes 327680
# HELP go_memstats_sys_bytes Number of bytes obtained from system.
# TYPE go_memstats_sys_bytes gauge
go_memstats_sys_bytes 1.977268e+07
# HELP go_threads Number of OS threads created.
# TYPE go_threads gauge
go_threads 6
# HELP namedprocess_scrape_errors general scrape errors: no proc metrics collected during a cycle
# TYPE namedprocess_scrape_errors counter
namedprocess_scrape_errors 0
# HELP namedprocess_scrape_partial_errors incremented each time a tracked proc's metrics collection fails partially, e.g. unreadable I/O stats
# TYPE namedprocess_scrape_partial_errors counter
namedprocess_scrape_partial_errors 126
# HELP namedprocess_scrape_procread_errors incremented each time a proc's metrics collection fails
# TYPE namedprocess_scrape_procread_errors counter
namedprocess_scrape_procread_errors 0
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 0.2
# HELP process_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, goversion from which process_exporter was built, and the goos and goarch for the build.
# TYPE process_exporter_build_info gauge
process_exporter_build_info{branch="debian/sid",goarch="amd64",goos="linux",goversion="go1.19.8",revision="0.7.10-3+b5",version=""} 1
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 524288
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 11
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 1.5450112e+07
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.7031070244e+09
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 1.046556672e+09
# HELP process_virtual_memory_max_bytes Maximum amount of virtual memory available in bytes.
# TYPE process_virtual_memory_max_bytes gauge
process_virtual_memory_max_bytes 1.8446744073709552e+19
# HELP promhttp_metric_handler_requests_in_flight Current number of scrapes being served.
# TYPE promhttp_metric_handler_requests_in_flight gauge
promhttp_metric_handler_requests_in_flight 1
# HELP promhttp_metric_handler_requests_total Total number of scrapes by HTTP status code.
# TYPE promhttp_metric_handler_requests_total counter
promhttp_metric_handler_requests_total{code="200"} 51
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0

@darknetehf
Copy link
Author

Update and possible fix:

I installed the package manually from this repo instead of using the Debian package. In the releases I picked this file: process-exporter_0.7.10_linux_amd64.deb and installed it with dpkg.

It should be noted that there are differences between this package and the Debian package version.
On Debian the systemd service is named: prometheus-process-exporter.service
In ncabatoff package it is: process-exporter.service

The unit files differ as well:

On Debian:

● prometheus-process-exporter.service - Prometheus exporter that mines /proc to report on selected processes
     Loaded: loaded (/lib/systemd/system/prometheus-process-exporter.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2023-12-20 18:27:04 GMT; 4h 5min ago
       Docs: https://github.com/ncabatoff/process-exporter
             man:prometheus-process-exporter(1)
   Main PID: 4095383 (prometheus-proc)
      Tasks: 5 (limit: 1115)
     Memory: 20.0M
        CPU: 2.980s
     CGroup: /system.slice/prometheus-process-exporter.service
             └─4095383 /usr/bin/prometheus-process-exporter

ncabatoff:

● process-exporter.service - Process Exporter for Prometheus
     Loaded: loaded (/lib/systemd/system/process-exporter.service; enabled; preset: enabled)
     Active: active (running) since Wed 2023-12-20 22:16:30 GMT; 15min ago
   Main PID: 4727 (process-exporte)
      Tasks: 5 (limit: 1108)
     Memory: 16.5M
        CPU: 3.066s
     CGroup: /system.slice/process-exporter.service
             └─4727 /usr/bin/process-exporter --config.path /etc/process-exporter/all.yaml --web.listen-address=:9256

And the EnvironmentFile directive in the systemd unit file differs as well.
The file /etc/process-exporter/all.yaml is not present when installing the Debian package. Contents:

process_names:
  - name: "{{.Comm}}"
    cmdline: 
    - '.+'

This seems to be the missing piece.

A quick fix is to create that missing all.yaml file and adapt the service CLI to use that config file:
For example this command will properly expose the metrics on port 9257:
/usr/bin/prometheus-process-exporter -debug --web.listen-address=:9257 --config.path /tmp/all.yaml

In conclusion the issue seems to be with the Debian packaging.

@darknetehf
Copy link
Author

Quick fix for Debian package

Listing files provided by package:
apt-file list prometheus-process-exporter
Output:

prometheus-process-exporter: /etc/default/prometheus-process-exporter
prometheus-process-exporter: /etc/init.d/prometheus-process-exporter
prometheus-process-exporter: /etc/logrotate.d/prometheus-process-exporter
prometheus-process-exporter: /lib/systemd/system/prometheus-process-exporter.service
prometheus-process-exporter: /usr/bin/prometheus-process-exporter
prometheus-process-exporter: /usr/share/doc/prometheus-process-exporter/README.md.gz
prometheus-process-exporter: /usr/share/doc/prometheus-process-exporter/changelog.Debian.amd64.gz
prometheus-process-exporter: /usr/share/doc/prometheus-process-exporter/changelog.Debian.gz
prometheus-process-exporter: /usr/share/doc/prometheus-process-exporter/copyright
prometheus-process-exporter: /usr/share/doc/prometheus-process-exporter/examples/all.yaml
prometheus-process-exporter: /usr/share/man/man1/prometheus-process-exporter.1.gz

The all.yaml file is provided so it is sufficient to edit this file: /etc/default/prometheus-process-exporter as follows:
ARGS="-config.path /usr/share/doc/prometheus-process-exporter/examples/all.yaml"
Then restart the service:
systemctl restart prometheus-process-exporter
Process metrics will be returned on the /metrics endpoint on port 9256.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant