Add support for experimental Metricbeat service module

Metricbeat has recently added experimental support for service monitoring
as part of the system metricset:
https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-system-service.html
This commit enables this when metricbeat is deployed, so Metricbeat
will now also collect service information.

Change-Id: Ia68f23f3a0e41fd3977af0a5252ce8109a798b03
This commit is contained in:
Duncan Martin Walker 2020-05-01 18:01:51 +01:00
parent bfe38b3a21
commit 3ddeb28e4d

View File

@ -45,7 +45,7 @@ metricbeat.max_start_delay: 10s
# period: 30s
# hosts: ["${host}:2379"]
#========================== Modules configuration ============================
{% set metric_sets = ['network', 'process', 'process_summary', 'uptime'] %}
{% set metric_sets = ['network', 'process', 'process_summary', 'uptime', 'service'] %}
{% if physical_host is defined and physical_host != inventory_hostname %}
{% set host_mount_devices = (hostvars[physical_host]['ansible_mounts'] | map(attribute='device') | list) %}
{% set container_mount_devices = (ansible_mounts | map(attribute='device') | list) %}