Send metrics with cluster id undefined if OPENVIDU_PRO_CLUSTER_ID and DOMAIN_OR_PUBLIC_IP are not defined

pull/609/head
cruizba 2021-02-08 16:44:46 +01:00
parent 9355248439
commit 2ab6eb7d9b
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ processors:
container.image.name: docker.elastic.co/beats/metricbeat-oss
- add_fields:
fields:
cluster_id: ${OPENVIDU_PRO_CLUSTER_ID:${DOMAIN_OR_PUBLIC_IP}}
cluster_id: ${OPENVIDU_PRO_CLUSTER_ID:${DOMAIN_OR_PUBLIC_IP:undefined}}
cluster_role: masternode
output:

View File

@ -31,7 +31,7 @@ metricbeat.modules:
period: ${OPENVIDU_PRO_STATS_MONITORING_INTERVAL}s
cpu.metrics: [normalized_percentages]
fields:
cluster_id: ${OPENVIDU_PRO_CLUSTER_ID:${DOMAIN_OR_PUBLIC_IP}}
cluster_id: ${OPENVIDU_PRO_CLUSTER_ID:${DOMAIN_OR_PUBLIC_IP:undefined}}
cluster_role: masternode
output:
elasticsearch: