add regular expression support for dynatrace output counter metrics #15659
Labels
feature request
Requests for new plugin and for new features to existing plugins
help wanted
Request for community participation, code, contribution
size/s
1 day effort, great beginniner issue
Use Case
Metrics:
In Dynatrace configuration, we pass
/simple_[a-z]+_metric/
toAddCounterMetrics
Expected behavior
The expectation was a regular expression match support
Actual behavior
Instead counter names were string compared
Additional info
Code reference: dynatrace.go#L233
Proposed change:
If the passed value is a regular expression match i.e., starts and ends with a
/
a regular expression match to be performed else a literal string match to ensure the existing behavior is not affected.Looking to open a pull request for this change.
The text was updated successfully, but these errors were encountered: