From 581dbbaddfac45db907972fb1a823eaddd7d4752 Mon Sep 17 00:00:00 2001 From: Galo Navarro Date: Tue, 26 Jan 2021 19:15:20 +0100 Subject: [PATCH] Add synthesis rules for INFRA-CONTAINER (#45) * Add synthesis rules for INFRA-CONTAINER * Missing aliasing one tag (docker.state should create container.state). We have to add this feature to the config files. * Missing defining a second set of rules for Kubernetes containers, which needs adding the multiple-telemetry support feature to these files. This will however allow us to start seeing some synthesized containers. --- definitions/infra-container/definition.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/definitions/infra-container/definition.yml b/definitions/infra-container/definition.yml index 7eb42ab82..f45b2c749 100644 --- a/definitions/infra-container/definition.yml +++ b/definitions/infra-container/definition.yml @@ -1,8 +1,28 @@ domain: INFRA type: CONTAINER + +# TODO: missing conditions to match on k8s containers, waiting until +# we add support for multiple telemetry sources. +synthesis: + identifier: entity.id + name: docker.name + encodeIdentifierInGUID: true + + conditions: + - attribute: docker.containerId + + tags: + - container.state + - docker.state + - docker.containerId + - newrelic.integrationName + - newrelic.integrationVersion + - newrelic.agentVersion + goldenTags: - environment - container.state + compositeMetrics: goldenMetrics: - golden_metrics.yml