From 0ae8625285d0746a5cb996e2f555086515d1e7bd Mon Sep 17 00:00:00 2001 From: Jorge Brisa Date: Thu, 23 Jul 2026 16:46:40 +0200 Subject: [PATCH] synthesis rules f5 in stg --- entity-types/infra-f5node/definition.stg.yml | 39 +++++++++++++ .../tests/F5BigIpNodeSample.stg.json | 44 ++++++++++++++ entity-types/infra-f5pool/definition.stg.yml | 40 +++++++++++++ .../tests/F5BigIpPoolSample.stg.json | 53 +++++++++++++++++ .../infra-f5poolmember/definition.stg.yml | 40 +++++++++++++ .../tests/F5BigIpPoolMemberSample.stg.json | 44 ++++++++++++++ .../infra-f5system/definition.stg.yml | 39 +++++++++++++ .../tests/F5BigIpSystemSample.stg.json | 56 ++++++++++++++++++ .../infra-f5virtualserver/definition.stg.yml | 40 +++++++++++++ .../tests/F5BigIpVirtualServerSample.stg.json | 58 +++++++++++++++++++ 10 files changed, 453 insertions(+) create mode 100644 entity-types/infra-f5node/definition.stg.yml create mode 100644 entity-types/infra-f5node/tests/F5BigIpNodeSample.stg.json create mode 100644 entity-types/infra-f5pool/definition.stg.yml create mode 100644 entity-types/infra-f5pool/tests/F5BigIpPoolSample.stg.json create mode 100644 entity-types/infra-f5poolmember/definition.stg.yml create mode 100644 entity-types/infra-f5poolmember/tests/F5BigIpPoolMemberSample.stg.json create mode 100644 entity-types/infra-f5system/definition.stg.yml create mode 100644 entity-types/infra-f5system/tests/F5BigIpSystemSample.stg.json create mode 100644 entity-types/infra-f5virtualserver/definition.stg.yml create mode 100644 entity-types/infra-f5virtualserver/tests/F5BigIpVirtualServerSample.stg.json diff --git a/entity-types/infra-f5node/definition.stg.yml b/entity-types/infra-f5node/definition.stg.yml new file mode 100644 index 0000000000..baa809417c --- /dev/null +++ b/entity-types/infra-f5node/definition.stg.yml @@ -0,0 +1,39 @@ +domain: INFRA +type: F5NODE +configuration: + entityExpirationTime: DAILY + alertable: true + +synthesis: + rules: + # Data from F5 integration OHI + - ruleName: infra_f5node_entityId + identifier: entityId + name: entityKey + legacyFeatures: + useNonStandardAttributes: true + overrideGuidType: true + conditions: + - attribute: eventType + value: F5BigIpNodeSample + prefixedTags: + label.: + ttl: PT4H + tags: + integrationName: + ttl: P1D + integrationVersion: + ttl: P1D + reportingAgent: + ttl: P1D + reportingEndpoint: + ttl: P1D + +dashboardTemplates: + # This should match the entity created from the ohi in the infra pipeline + newRelic: + template: newrelic_dashboard.json + +ownership: + primaryOwner: + teamName: "OnHost Agent and Integrations" diff --git a/entity-types/infra-f5node/tests/F5BigIpNodeSample.stg.json b/entity-types/infra-f5node/tests/F5BigIpNodeSample.stg.json new file mode 100644 index 0000000000..7789ac14c9 --- /dev/null +++ b/entity-types/infra-f5node/tests/F5BigIpNodeSample.stg.json @@ -0,0 +1,44 @@ +[ + { + "agentName": "Infrastructure", + "agentVersion": "1.XX.X", + "coreCount": "1", + "displayName": "/Common/_auto_XXX", + "entityGuid": "MTAwMDB8SU5GUkF8TkF8LTEwMDAwMDAw", + "entityId": "-10000000", + "entityKey": "f5-node:XXXX:443:node=/common/_auto_XXX", + "entityName": "node:/Common/_auto_XXX", + "event_type": "F5BigIpNodeSample", + "externalKey": "f5-node:XXXX:443:node=/common/_auto_XXX", + "fullHostname": "abcd0123.myhost.name", + "host": "abcd0123", + "hostStatus": "running", + "hostname": "abcd0123", + "instanceType": "VMware, Inc. VMwareXX", + "integrationName": "com.newrelic.f5", + "integrationVersion": "2.XX.XX", + "kernelVersion": "XXX1.XXX.x86_64", + "linuxDistribution": "Oracle Linux Server X", + "node.availabilityState": 1, + "node.connections": 0, + "node.connectionsPerSecond": 0, + "node.enabled": 1, + "node.inDataInBytesPerSecond": 0, + "node.monitorStatus": 1, + "node.outDataInBytesPerSecond": 0, + "node.packetsReceivedPerSecond": 0, + "node.packetsSentPerSecond": 0, + "node.requestsPerSecond": 0, + "node.sessionStatus": 1, + "node.sessions": 0, + "node.statusReason": "Node address does not have service checking enabled", + "nr.entityType": "F5Node", + "nr.ingestTimeMs": 1750314663000, + "operatingSystem": "linux", + "processorCount": "2", + "reportingAgent": "abcd0123.myhost.name", + "reportingEndpoint": "abcd0123:443", + "systemMemoryBytes": "456451612", + "timestamp": 1750314663000 + } +] \ No newline at end of file diff --git a/entity-types/infra-f5pool/definition.stg.yml b/entity-types/infra-f5pool/definition.stg.yml new file mode 100644 index 0000000000..ce2df2893c --- /dev/null +++ b/entity-types/infra-f5pool/definition.stg.yml @@ -0,0 +1,40 @@ +domain: INFRA +type: F5POOL +goldenTags: [] +configuration: + entityExpirationTime: DAILY + alertable: true + +synthesis: + rules: + # Data from F5 integration OHI + - ruleName: infra_f5pool_entityId + identifier: entityId + name: entityKey + legacyFeatures: + useNonStandardAttributes: true + overrideGuidType: true + conditions: + - attribute: eventType + value: F5BigIpPoolSample + prefixedTags: + label.: + ttl: PT4H + tags: + integrationName: + ttl: P1D + integrationVersion: + ttl: P1D + reportingAgent: + ttl: P1D + reportingEndpoint: + ttl: P1D + +dashboardTemplates: + # This should match the entity created from the ohi in the infra pipeline + newRelic: + template: newrelic_dashboard.json + +ownership: + primaryOwner: + teamName: "OnHost Agent and Integrations" diff --git a/entity-types/infra-f5pool/tests/F5BigIpPoolSample.stg.json b/entity-types/infra-f5pool/tests/F5BigIpPoolSample.stg.json new file mode 100644 index 0000000000..f2f81a1d1f --- /dev/null +++ b/entity-types/infra-f5pool/tests/F5BigIpPoolSample.stg.json @@ -0,0 +1,53 @@ +[ + { + "agentName": "Infrastructure", + "agentVersion": "1.XX.X", + "coreCount": "1", + "displayName": "/Common/pool_XXX", + "entityGuid": "MTAwMDB8SU5GUkF8TkF8LTEwMDAwMDAw", + "entityId": "-10000000", + "entityKey": "f5-pool:XXXX:443:pool=/common/pool_XXX", + "entityName": "pool:/Common/pool_XXX", + "event_type": "F5BigIpPoolSample", + "externalKey": "f5-pool:XXXX:443:pool=/common/pool_XXX", + "fullHostname": "abcd0123.myhost.name", + "host": "abcd0123", + "hostStatus": "running", + "hostname": "abcd0123", + "instanceType": "VMware, Inc. VMwareXX", + "integrationName": "com.newrelic.f5", + "integrationVersion": "2.XX.XX", + "kernelVersion": "XXX1.XXX.x86_64", + "linuxDistribution": "Oracle Linux Server X", + "nr.entityType": "F5Pool", + "nr.ingestTimeMs": 1750314663000, + "operatingSystem": "linux", + "pool.activeMembers": 2, + "pool.availabilityState": 2, + "pool.connections": 0, + "pool.connqAgeEdm": 0, + "pool.connqAgeEma": 0, + "pool.connqAgeHead": 0, + "pool.connqAgeMax": 0, + "pool.connqAllAgeEdm": 0, + "pool.connqAllAgeEma": 0, + "pool.connqAllAgeHead": 0, + "pool.connqAllAgeMax": 0, + "pool.connqAllDepth": 0, + "pool.connqDepth": 0, + "pool.enabled": 1, + "pool.inDataInBytesPerSecond": 0, + "pool.minActiveMembers": 0, + "pool.outDataInBytesPerSecond": 0, + "pool.packetsReceivedPerSecond": 0, + "pool.packetsSentPerSecond": 0, + "pool.requestsPerSecond": 0, + "pool.sessions": 0, + "pool.statusReason": "The pool is available", + "processorCount": "2", + "reportingAgent": "abcd0123.myhost.name", + "reportingEndpoint": "abcd0123:443", + "systemMemoryBytes": "456451612", + "timestamp": 1750314663000 + } +] diff --git a/entity-types/infra-f5poolmember/definition.stg.yml b/entity-types/infra-f5poolmember/definition.stg.yml new file mode 100644 index 0000000000..2da71e1b77 --- /dev/null +++ b/entity-types/infra-f5poolmember/definition.stg.yml @@ -0,0 +1,40 @@ +domain: INFRA +type: F5POOLMEMBER +goldenTags: [] +configuration: + entityExpirationTime: DAILY + alertable: true + +synthesis: + rules: + # Data from F5 integration OHI + - ruleName: infra_f5poolmember_entityId + identifier: entityId + name: entityKey + legacyFeatures: + useNonStandardAttributes: true + overrideGuidType: true + conditions: + - attribute: eventType + value: F5BigIpPoolMemberSample + prefixedTags: + label.: + ttl: PT4H + tags: + integrationName: + ttl: P1D + integrationVersion: + ttl: P1D + reportingAgent: + ttl: P1D + reportingEndpoint: + ttl: P1D + +dashboardTemplates: + # This should match the entity created from the ohi in the infra pipeline + newRelic: + template: newrelic_dashboard.json + +ownership: + primaryOwner: + teamName: "OnHost Agent and Integrations" diff --git a/entity-types/infra-f5poolmember/tests/F5BigIpPoolMemberSample.stg.json b/entity-types/infra-f5poolmember/tests/F5BigIpPoolMemberSample.stg.json new file mode 100644 index 0000000000..73c7827395 --- /dev/null +++ b/entity-types/infra-f5poolmember/tests/F5BigIpPoolMemberSample.stg.json @@ -0,0 +1,44 @@ +[ + { + "agentName": "Infrastructure", + "agentVersion": "1.XX.X", + "coreCount": "1", + "displayName": "/Common/bnXXX:0", + "entityGuid": "MTAwMDB8SU5GUkF8TkF8LTEwMDAwMDAw", + "entityId": "-10000000", + "entityKey": "f5-poolmember:XXXX:443:poolmember=/common/bnXXX:0", + "entityName": "poolmember:/Common/bnXXX:0", + "event_type": "F5BigIpPoolMemberSample", + "externalKey": "f5-poolmember:XXXX:443:poolmember=/common/bnXXX:0", + "fullHostname": "abcd0123.myhost.name", + "host": "abcd0123", + "hostStatus": "running", + "hostname": "abcd0123", + "instanceType": "VMware, Inc. VMwareXX", + "integrationName": "com.newrelic.f5", + "integrationVersion": "2.XX.XX", + "kernelVersion": "XXX1.XXX.x86_64", + "linuxDistribution": "Oracle Linux Server X", + "member.availabilityState": 0, + "member.connections": 0, + "member.enabled": 0, + "member.inDataInBytesPerSecond": 0, + "member.monitorStatus": 2, + "member.outDataInBytesPerSecond": 0, + "member.packetsReceivedPerSecond": 0, + "member.packetsSentPerSecond": 0, + "member.requestsPerSecond": 0, + "member.sessionStatus": 2, + "member.sessions": 0, + "member.statusReason": "Forced down", + "nr.entityType": "F5PoolMember", + "nr.ingestTimeMs": 1750314663000, + "operatingSystem": "linux", + "poolName": "/Common/pool_xx-XXX", + "processorCount": "2", + "reportingAgent": "abcd0123.myhost.name", + "systemMemoryBytes": "456451612", + "timestamp": 1750314663000, + "url": "https://XXX:443" + } +] \ No newline at end of file diff --git a/entity-types/infra-f5system/definition.stg.yml b/entity-types/infra-f5system/definition.stg.yml new file mode 100644 index 0000000000..21b41fbbd3 --- /dev/null +++ b/entity-types/infra-f5system/definition.stg.yml @@ -0,0 +1,39 @@ +domain: INFRA +type: F5SYSTEM +configuration: + entityExpirationTime: DAILY + alertable: true + +synthesis: + rules: + # Data from F5 integration OHI + - ruleName: infra_f5system_entityId + identifier: entityId + name: entityKey + legacyFeatures: + useNonStandardAttributes: true + overrideGuidType: true + conditions: + - attribute: eventType + value: F5BigIpSystemSample + prefixedTags: + label.: + ttl: PT4H + tags: + integrationName: + ttl: P1D + integrationVersion: + ttl: P1D + reportingAgent: + ttl: P1D + reportingEndpoint: + ttl: P1D + +dashboardTemplates: + # This should match the entity created from the ohi in the infra pipeline + newRelic: + template: newrelic_dashboard.json + +ownership: + primaryOwner: + teamName: "OnHost Agent and Integrations" diff --git a/entity-types/infra-f5system/tests/F5BigIpSystemSample.stg.json b/entity-types/infra-f5system/tests/F5BigIpSystemSample.stg.json new file mode 100644 index 0000000000..96694bab91 --- /dev/null +++ b/entity-types/infra-f5system/tests/F5BigIpSystemSample.stg.json @@ -0,0 +1,56 @@ +[ + { + "agentName": "Infrastructure", + "agentVersion": "1.XX.X", + "coreCount": "1", + "displayName": "XXXXXX:443", + "entityGuid": "MTAwMDB8SU5GUkF8TkF8LTEwMDAwMDAw", + "entityId": "-10000000", + "entityKey": "f5-system:XXXXXX:443", + "entityName": "f5-system:XXXXXX:443", + "event_type": "F5BigIpSystemSample", + "externalKey": "f5-system:XXXXXX:443", + "fullHostname": "abcd0123.myhost.name", + "host": "abcd0123", + "hostStatus": "running", + "hostname": "abcd0123", + "instanceType": "VMware, Inc. VMwareXX", + "integrationName": "com.newrelic.f5", + "integrationVersion": "2.XX.XX", + "kernelVersion": "XXX1.XXX.x86_64", + "linuxDistribution": "Oracle Linux Server X", + "nr.entityType": "F5System", + "nr.ingestTimeMs": 1750314663000, + "operatingSystem": "linux", + "processorCount": "2", + "reportingAgent": "abcd0123.myhost.name", + "reportingEndpoint": "XXXXXX:443", + "system.cpuIOWaitUtilization": 0, + "system.cpuIdleTicksPerSecond": 147.57142857142858, + "system.cpuIdleUtilization": 69, + "system.cpuInterruptRequestUtilization": 0, + "system.cpuNiceLevelUtilization": 0, + "system.cpuSoftInterruptRequestUtilization": 0, + "system.cpuStolenUtilization": 0, + "system.cpuSystemTicksPerSecond": 8.571428571428571, + "system.cpuSystemUtilization": 0, + "system.cpuUserTicksPerSecond": 36.142857142857146, + "system.cpuUserUtilization": 0, + "system.hostId": "0", + "system.memoryFreeInBytes": 6104340784, + "system.memoryTotalInBytes": 8372977664, + "system.memoryUsedInBytes": 2268636880, + "system.otherMemoryFreeInBytes": 866443264, + "system.otherMemoryTotalInBytes": 2832302080, + "system.otherMemoryUsedInBytes": 1965858816, + "system.swapFreeInBytes": 1040195584, + "system.swapTotalInBytes": 1048571904, + "system.swapUsedInBytes": 8376320, + "system.tmmMemoryFreeInBytes": 5237897520, + "system.tmmMemoryTotalInBytes": 5540675584, + "system.tmmMemoryUsedInBytes": 302778064, + "systemMemoryBytes": "456451612", + "timestamp": 1750314663000, + "url": "https://XXXXXX:443" + } +] \ No newline at end of file diff --git a/entity-types/infra-f5virtualserver/definition.stg.yml b/entity-types/infra-f5virtualserver/definition.stg.yml new file mode 100644 index 0000000000..3f97f80477 --- /dev/null +++ b/entity-types/infra-f5virtualserver/definition.stg.yml @@ -0,0 +1,40 @@ +domain: INFRA +type: F5VIRTUALSERVER +goldenTags: [] +configuration: + entityExpirationTime: DAILY + alertable: true + +synthesis: + rules: + # Data from F5 integration OHI + - ruleName: infra_f5virtualserver_entityId + identifier: entityId + name: entityKey + legacyFeatures: + useNonStandardAttributes: true + overrideGuidType: true + conditions: + - attribute: eventType + value: F5BigIpVirtualServerSample + prefixedTags: + label.: + ttl: PT4H + tags: + integrationName: + ttl: P1D + integrationVersion: + ttl: P1D + reportingAgent: + ttl: P1D + reportingEndpoint: + ttl: P1D + +dashboardTemplates: + # This should match the entity created from the ohi in the infra pipeline + newRelic: + template: newrelic_dashboard.json + +ownership: + primaryOwner: + teamName: "OnHost Agent and Integrations" diff --git a/entity-types/infra-f5virtualserver/tests/F5BigIpVirtualServerSample.stg.json b/entity-types/infra-f5virtualserver/tests/F5BigIpVirtualServerSample.stg.json new file mode 100644 index 0000000000..8a9c2bd878 --- /dev/null +++ b/entity-types/infra-f5virtualserver/tests/F5BigIpVirtualServerSample.stg.json @@ -0,0 +1,58 @@ +[ + { + "agentName": "Infrastructure", + "agentVersion": "1.XX.X", + "coreCount": "1", + "displayName": "/Common/XXXX.com_https", + "entityGuid": "MTAwMDB8SU5GUkF8TkF8LTEwMDAwMDAw", + "entityId": "-10000000", + "entityKey": "f5-virtualServer:XXXX:443:virtualserver=/common/XXXX.com_https", + "entityName": "virtualServer:/Common/XXXX.com_https", + "event_type": "F5BigIpVirtualServerSample", + "externalKey": "f5-virtualServer:XXXX:443:virtualserver=/common/XXXX.com_https", + "fullHostname": "abcd0123.myhost.nam", + "host": "abcd0123", + "hostStatus": "running", + "hostname": "abcd0123", + "instanceType": "VMware, Inc. VMwareXX", + "integrationName": "com.newrelic.f5", + "integrationVersion": "2.XX.XX", + "kernelVersion": "XXX1.XXX.x86_64", + "linuxDistribution": "Oracle Linux Server X", + "nr.entityType": "F5VirtualServer", + "nr.ingestTimeMs": 1750314663000, + "operatingSystem": "linux", + "processorCount": "2", + "reportingAgent": "abcd0123.myhost.nam", + "reportingEndpoint": "XXXX:443", + "systemMemoryBytes": "456451612", + "timestamp": 1750314663000, + "virtualserver.availabilityState": 1, + "virtualserver.clientsideConnectionsPerSecond": 0, + "virtualserver.cmpEnableMode": "all-cpus", + "virtualserver.cmpEnabled": "enabled", + "virtualserver.connections": 0, + "virtualserver.csMaxConnDur": 0, + "virtualserver.csMeanConnDur": 0, + "virtualserver.csMinConnDur": 0, + "virtualserver.enabled": 0, + "virtualserver.ephemeralBytesInPerSecond": 0, + "virtualserver.ephemeralBytesOutPerSecond": 0, + "virtualserver.ephemeralConnectionsPerSecond": 0, + "virtualserver.ephemeralCurrentConnections": 0, + "virtualserver.ephemeralEvictedConnectionsPerSecond": 0, + "virtualserver.ephemeralMaxConnections": 0, + "virtualserver.ephemeralPacketsReceivedPerSecond": 0, + "virtualserver.ephemeralPacketsSentPerSecond": 0, + "virtualserver.ephemeralSlowKilledPerSecond": 0, + "virtualserver.evictedConnsPerSecond": 0, + "virtualserver.inDataInBytesPerSecond": 0, + "virtualserver.outDataInBytesPerSecond": 0, + "virtualserver.packetsReceivedPerSecond": 0, + "virtualserver.packetsSentPerSecond": 0, + "virtualserver.requestsPerSecond": 0, + "virtualserver.slowKilledPerSecond": 0, + "virtualserver.statusReason": "The children pool member(s) either don't have service checking enabled, or service check results are not available yet", + "virtualserver.usageRatio": 0 + } +] \ No newline at end of file