Hey, a suggestion for your F5 2.0 extension.
Im puzzled how I would create alerting on the com.dynatrace.extension.f5.bigip.sys.cm.state metric.
As everytime a status changes, the metric will change dimensions.
I think this metric was developed to create a nice dashboard, not alerting.
- subgroup: f5-sync-and-config featureSet: instance-sync table: false dimensions: - key: failover.state value: oid:220.127.116.11.4.1.3318.104.22.168.3.1.0 - key: sync.state value: oid:22.214.171.124.4.1.33126.96.36.199.1.1.0 metrics: - key: com.dynatrace.extension.f5.bigip.sys.cm.state value: const:1
I suggest something like this:
- subgroup: f5-sync-and-config-dashboard featureSet: instance-sync table: false dimensions: - key: failover.state value: oid:188.8.131.52.4.1.33184.108.40.206.3.1.0 - key: sync.state value: oid:220.127.116.11.4.1.3318.104.22.168.1.1.0 metrics: - key: com.dynatrace.extension.f5.bigip.sys.cm.state value: const:1 - subgroup: f5-sync-and-config-alert featureSet: instance-sync metrics: - key: com.dynatrace.extension.f5.bigip.sys.cm.failover.state value: oid:22.214.171.124.4.1.33126.96.36.199.3.1.0 - key: com.dynatrace.extension.f5.bigip.sys.cm.sync.state value: oid:188.8.131.52.4.1.33184.108.40.206.1.1.0
I know I can create a custom extension releasing this, but I would like to remain in sync with the excellent updates to this managed extension.
Solved! Go to Solution.
This is how 'state' metrics are implemented across all 2.0 extensions; a constant value of 1 is reported and a dimension (e.g. state) is used to indicate the current active state. Even though in this example it is a 'number' representing the state it is more accurately treated as the string that it maps to (e.g. the 'average' of the state value would be meaningless along with other mathematical operations).
The current approach can be used for creating metric events for alerting through dimension filters in the metric event configuration. For example, knowing that the value is always going to be 1 with the current state as the 'sync.state' dimension if you wanted to alert when the state is anything other than 'active' you would set your threshold to be 'above 0' and use a dimension filter for 'sync.state' with operator 'does not equal' and the dimension value as '4' (active). Whenever the conditions are met (e.g. a 1 is reported with the dimension being anything other than '4') you know that the state is being reported still and is something other than 'active.'
You can also use this approach to create alerts whenever a specific state becomes active through the metric event configurations with the 'dimension filters' being the most important configuration.
I'll attach some images from another extension to illustrate this (in this example the dimension/state is reported as a string as opposed to an enum/string mapping):