|
| 1 | +# Per-process CPU and memory usage |
| 2 | +# Filter names match the procd service names used by procd_service. |
| 3 | + |
| 4 | +[[inputs.procstat]] |
| 5 | + interval = "30s" |
| 6 | + properties = ["cpu", "memory"] |
| 7 | + |
| 8 | + [[inputs.procstat.filter]] |
| 9 | + name = "snort" |
| 10 | + executables = ["/usr/bin/snort"] |
| 11 | + [[inputs.procstat.filter]] |
| 12 | + name = "netifyd" |
| 13 | + executables = ["/usr/sbin/netifyd"] |
| 14 | + [[inputs.procstat.filter]] |
| 15 | + name = "victoria-metrics" |
| 16 | + executables = ["/usr/bin/victoria-metrics"] |
| 17 | + [[inputs.procstat.filter]] |
| 18 | + name = "victoria-logs" |
| 19 | + executables = ["/usr/bin/victoria-logs"] |
| 20 | + [[inputs.procstat.filter]] |
| 21 | + name = "vmalert" |
| 22 | + executables = ["/usr/bin/vmalert"] |
| 23 | + [[inputs.procstat.filter]] |
| 24 | + name = "telegraf" |
| 25 | + executables = ["/usr/bin/telegraf"] |
| 26 | + [[inputs.procstat.filter]] |
| 27 | + name = "ns-flows" |
| 28 | + executables = ["/usr/sbin/ns-flows"] |
| 29 | + [[inputs.procstat.filter]] |
| 30 | + name = "ns-stats" |
| 31 | + executables = ["/usr/sbin/ns-stats"] |
| 32 | + [[inputs.procstat.filter]] |
| 33 | + name = "ns-api-server" |
| 34 | + executables = ["/usr/bin/nethsecurity-api"] |
| 35 | + # fail2ban-server runs under python3 |
| 36 | + [[inputs.procstat.filter]] |
| 37 | + name = "fail2ban" |
| 38 | + patterns = ["fail2ban-server"] |
| 39 | + [[inputs.procstat.filter]] |
| 40 | + name = "swanctl" |
| 41 | + executables = ["/usr/lib/ipsec/charon"] |
| 42 | + [[inputs.procstat.filter]] |
| 43 | + name = "odhcpd" |
| 44 | + executables = ["/usr/sbin/odhcpd"] |
| 45 | + |
| 46 | + [inputs.procstat.tags] |
| 47 | + influxdb_db = "os-metrics" |
| 48 | + |
| 49 | +# Services running more than one process with the same name |
| 50 | +[[inputs.procstat]] |
| 51 | + interval = "30s" |
| 52 | + properties = ["cpu", "memory"] |
| 53 | + tag_with = ["pid"] |
| 54 | + |
| 55 | + [[inputs.procstat.filter]] |
| 56 | + name = "openvpn" |
| 57 | + patterns = ["^/usr/sbin/openvpn "] |
| 58 | + [[inputs.procstat.filter]] |
| 59 | + name = "ns-plug" |
| 60 | + patterns = ["^openvpn /usr/share/ns-plug/client.conf"] |
| 61 | + [[inputs.procstat.filter]] |
| 62 | + name = "dropbear" |
| 63 | + executables = ["/usr/sbin/dropbear"] |
| 64 | + [[inputs.procstat.filter]] |
| 65 | + name = "nginx" |
| 66 | + executables = ["/usr/sbin/nginx"] |
| 67 | + [[inputs.procstat.filter]] |
| 68 | + name = "dnsmasq" |
| 69 | + executables = ["/usr/sbin/dnsmasq"] |
| 70 | + |
| 71 | + [inputs.procstat.tags] |
| 72 | + influxdb_db = "os-metrics" |
0 commit comments