Hi, I just installed metricbeat-oss-7.6.2-x86_64.rpm. I configured system.yml but when I run it as service I get errors in logs:
2020-05-20T14:52:44.744+0200 INFO module/wrapper.go:252 Error fetching data for metricset system.service: error getting list of running units: Unknown method 'ListUnitsByPatterns' or interface 'org.freedesktop.systemd1.Manager'.
I guess It has something to do with rights and service metricset, /etc/metricbeat is owned by root. I also tried to run metricbeat with --strict.perms=false by defining in metricbeat.service:
ExecStart=/usr/share/metricbeat/bin/metricbeat --strict.perms=false $BEAT_CONFIG_OPTS $BEAT_PATH_OPTS
But still getting same error, can anybody help?
System.yml
- module: system
period: 5s
metricsets:
- cpu
- load
- memory
- network
- process
- process_summary
- service
#- core
- diskio
#- socket
processes: ['nginx','java','httpd']
process.include_top_n:
by_cpu: 5 # include top 5 processes by CPU
by_memory: 5 # include top 5 processes by memory
- module: system
period: 1m
metricsets:
- filesystem
- fsstat
processors:
- drop_event.when.regexp:
system.filesystem.mount_point: '^/(sys|cgroup|proc|dev|etc|host|lib)($|/)'
- module: system
period: 15m
metricsets:
- uptime
#- module: system
# period: 5m
# metricsets:
# - raid
# raid.mount_point: '/'