From 3ddeb28e4d0211ca4fb7aa1a79c305b4f914c2fa Mon Sep 17 00:00:00 2001 From: Duncan Martin Walker Date: Fri, 1 May 2020 18:01:51 +0100 Subject: [PATCH] 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 --- .../roles/elastic_metricbeat/templates/metricbeat.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elk_metrics_7x/roles/elastic_metricbeat/templates/metricbeat.yml.j2 b/elk_metrics_7x/roles/elastic_metricbeat/templates/metricbeat.yml.j2 index 0b380775..437c94f9 100644 --- a/elk_metrics_7x/roles/elastic_metricbeat/templates/metricbeat.yml.j2 +++ b/elk_metrics_7x/roles/elastic_metricbeat/templates/metricbeat.yml.j2 @@ -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) %}