From 24cc751805919fca47ad0d6c436aad891c3f8ea7 Mon Sep 17 00:00:00 2001 From: voorepreethi Date: Wed, 18 Dec 2024 14:52:37 +0530 Subject: [PATCH 1/5] feat: changed fb entity definition --- .../dashboard.json | 0 .../ext-fluentbit-kubernetes/definition.yml | 35 +++++++++++++++++++ entity-types/ext-fluentbit/definition.yml | 19 ---------- 3 files changed, 35 insertions(+), 19 deletions(-) rename entity-types/{ext-fluentbit => ext-fluentbit-kubernetes}/dashboard.json (100%) create mode 100644 entity-types/ext-fluentbit-kubernetes/definition.yml delete mode 100644 entity-types/ext-fluentbit/definition.yml diff --git a/entity-types/ext-fluentbit/dashboard.json b/entity-types/ext-fluentbit-kubernetes/dashboard.json similarity index 100% rename from entity-types/ext-fluentbit/dashboard.json rename to entity-types/ext-fluentbit-kubernetes/dashboard.json diff --git a/entity-types/ext-fluentbit-kubernetes/definition.yml b/entity-types/ext-fluentbit-kubernetes/definition.yml new file mode 100644 index 000000000..796b7b7ce --- /dev/null +++ b/entity-types/ext-fluentbit-kubernetes/definition.yml @@ -0,0 +1,35 @@ +domain: EXT +type: FLUENTBIT - KUBERENETES +synthesis: + rules: + - compositeIdentifier: + separator: ":" + attributes: + - cluster_name + - namespace + - daemonset_name + name: daemonset_name + encodeIdentifierInGUID: true + conditions: + - attribute: eventType + value: Metric + - attribute: metricName + prefix: fluentbit_ + - attribute: daemonset_name + present: true + - attribute: namespace + present: true + - attribute: cluster_name + present: true + tags: + daemonset_name: + entityTagNames: [k8s.daemonsetName] + namespace: + entityTagNames: [k8s.namespaceName] + cluster_name: + entityTagNames: [k8s.clusterName] + version: + entityTagNames: [fluentbit.version] +dashboardTemplates: + newRelic: + template: dashboard.json \ No newline at end of file diff --git a/entity-types/ext-fluentbit/definition.yml b/entity-types/ext-fluentbit/definition.yml deleted file mode 100644 index 34f1f1c4e..000000000 --- a/entity-types/ext-fluentbit/definition.yml +++ /dev/null @@ -1,19 +0,0 @@ -domain: EXT -type: FLUENTBIT -synthesis: - rules: - - compositeIdentifier: - separator: "/" - attributes: - - namespace - - helm_release_name - name: helm_release_name - encodeIdentifierInGUID: true - conditions: - - attribute: eventType - value: Metric - - attribute: metricName - prefix: fluentbit_ -dashboardTemplates: - newRelic: - template: dashboard.json \ No newline at end of file From 8091e99c6925d3c98d468d2b440630ce8930b829 Mon Sep 17 00:00:00 2001 From: voorepreethi Date: Wed, 18 Dec 2024 15:00:03 +0530 Subject: [PATCH 2/5] feat: updated type of FB entity --- entity-types/ext-fluentbit-kubernetes/definition.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entity-types/ext-fluentbit-kubernetes/definition.yml b/entity-types/ext-fluentbit-kubernetes/definition.yml index 796b7b7ce..8c3d661ff 100644 --- a/entity-types/ext-fluentbit-kubernetes/definition.yml +++ b/entity-types/ext-fluentbit-kubernetes/definition.yml @@ -1,5 +1,5 @@ domain: EXT -type: FLUENTBIT - KUBERENETES +type: FLUENTBIT_KUBERENETES synthesis: rules: - compositeIdentifier: From e0e07834e5a6ec49e01b4d24fce89f44a86f6125 Mon Sep 17 00:00:00 2001 From: voorepreethi Date: Wed, 18 Dec 2024 15:04:40 +0530 Subject: [PATCH 3/5] feat: updated folder name --- .../dashboard.json | 0 .../definition.yml | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename entity-types/{ext-fluentbit-kubernetes => ext-fluentbit_kubernetes}/dashboard.json (100%) rename entity-types/{ext-fluentbit-kubernetes => ext-fluentbit_kubernetes}/definition.yml (100%) diff --git a/entity-types/ext-fluentbit-kubernetes/dashboard.json b/entity-types/ext-fluentbit_kubernetes/dashboard.json similarity index 100% rename from entity-types/ext-fluentbit-kubernetes/dashboard.json rename to entity-types/ext-fluentbit_kubernetes/dashboard.json diff --git a/entity-types/ext-fluentbit-kubernetes/definition.yml b/entity-types/ext-fluentbit_kubernetes/definition.yml similarity index 100% rename from entity-types/ext-fluentbit-kubernetes/definition.yml rename to entity-types/ext-fluentbit_kubernetes/definition.yml From 6912b59de2615aed69aff4be9550ca7b0b7bc7c5 Mon Sep 17 00:00:00 2001 From: voorepreethi Date: Wed, 18 Dec 2024 15:05:53 +0530 Subject: [PATCH 4/5] feat: updated folder name --- .../dashboard.json | 0 .../definition.yml | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename entity-types/{ext-fluentbit_kubernetes => ext-fluentbit_kuberenetes}/dashboard.json (100%) rename entity-types/{ext-fluentbit_kubernetes => ext-fluentbit_kuberenetes}/definition.yml (100%) diff --git a/entity-types/ext-fluentbit_kubernetes/dashboard.json b/entity-types/ext-fluentbit_kuberenetes/dashboard.json similarity index 100% rename from entity-types/ext-fluentbit_kubernetes/dashboard.json rename to entity-types/ext-fluentbit_kuberenetes/dashboard.json diff --git a/entity-types/ext-fluentbit_kubernetes/definition.yml b/entity-types/ext-fluentbit_kuberenetes/definition.yml similarity index 100% rename from entity-types/ext-fluentbit_kubernetes/definition.yml rename to entity-types/ext-fluentbit_kuberenetes/definition.yml From 60f22c1fdb6192b82112b246efc8cf4ab4fdd86f Mon Sep 17 00:00:00 2001 From: voorepreethi Date: Wed, 18 Dec 2024 17:34:12 +0530 Subject: [PATCH 5/5] feat: spelling changedd --- .../dashboard.json | 0 .../definition.yml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename entity-types/{ext-fluentbit_kuberenetes => ext-fluentbit_kubernetes}/dashboard.json (100%) rename entity-types/{ext-fluentbit_kuberenetes => ext-fluentbit_kubernetes}/definition.yml (96%) diff --git a/entity-types/ext-fluentbit_kuberenetes/dashboard.json b/entity-types/ext-fluentbit_kubernetes/dashboard.json similarity index 100% rename from entity-types/ext-fluentbit_kuberenetes/dashboard.json rename to entity-types/ext-fluentbit_kubernetes/dashboard.json diff --git a/entity-types/ext-fluentbit_kuberenetes/definition.yml b/entity-types/ext-fluentbit_kubernetes/definition.yml similarity index 96% rename from entity-types/ext-fluentbit_kuberenetes/definition.yml rename to entity-types/ext-fluentbit_kubernetes/definition.yml index 8c3d661ff..318ec6d9f 100644 --- a/entity-types/ext-fluentbit_kuberenetes/definition.yml +++ b/entity-types/ext-fluentbit_kubernetes/definition.yml @@ -1,5 +1,5 @@ domain: EXT -type: FLUENTBIT_KUBERENETES +type: FLUENTBIT_KUBERNETES synthesis: rules: - compositeIdentifier: