deployment: Add field 'cluster-role' to distinguish metrics in dashboards

pull/609/head
cruizba 2021-02-04 21:51:24 +01:00
parent d8beb2147d
commit e321370014
4 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,7 @@ filebeat.inputs:
kurento-media-server: true kurento-media-server: true
ip: ${MEDIA_NODE_IP} ip: ${MEDIA_NODE_IP}
cluster-id: ${CLUSTER_ID} cluster-id: ${CLUSTER_ID}
cluster-role: media-node
fields_under_root: true fields_under_root: true
processors: processors:

View File

@ -42,7 +42,7 @@ metricbeat.modules:
enabled: true enabled: true
period: ${OPENVIDU_PRO_CLUSTER_LOAD_INTERVAL}0s period: ${OPENVIDU_PRO_CLUSTER_LOAD_INTERVAL}0s
cpu.metrics: [normalized_percentages] cpu.metrics: [normalized_percentages]
fields: {ip: "${MEDIA_NODE_IP}", cluster-id: "${CLUSTER_ID}"} fields: {ip: "${MEDIA_NODE_IP}", cluster-id: "${CLUSTER_ID}", cluster-role: media-node}
pipeline: pipeline:
queue.mem.events: 0 queue.mem.events: 0
setup.ilm.enabled: false setup.ilm.enabled: false

View File

@ -28,6 +28,7 @@ processors:
- add_fields: - add_fields:
fields: fields:
cluster-id: ${OPENVIDU_PRO_CLUSTER_ID:undefined} cluster-id: ${OPENVIDU_PRO_CLUSTER_ID:undefined}
cluster-role: openvidu-server-pro
output: output:
elasticsearch: elasticsearch:

View File

@ -44,6 +44,7 @@ metricbeat.modules:
enabled: true enabled: true
period: ${OPENVIDU_PRO_STATS_MONITORING_INTERVAL}s period: ${OPENVIDU_PRO_STATS_MONITORING_INTERVAL}s
cpu.metrics: [normalized_percentages] cpu.metrics: [normalized_percentages]
fields: {ip: "${MEDIA_NODE_IP}", cluster-id: "${CLUSTER_ID}", cluster-role: openvidu-server-pro}
output: output:
elasticsearch: elasticsearch:
hosts: ["${OPENVIDU_PRO_ELASTICSEARCH_HOST}"] hosts: ["${OPENVIDU_PRO_ELASTICSEARCH_HOST}"]