generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Version
v8.3.6
Steps and/or minimal code example to reproduce
- Emit metrics on a custom namespace (e.g.
my_custom_namespace
). - Create a
CustomMetricSearch
, using as namespace the custom namespace along with a dimension. For example
const myCustomMetricSearch: CustomMetricSearch = {
namespace: "my_custom_namespace,reason"
searchQuery: "MY.CUSTOM.METRIC",
dimensionsMap: {},
statistic: MetricStatistic.SUM,
label: "${PROP('Dim.reason')} (sum: ${SUM})"
}
Expected behavior
When this gets deployed to CloudWatch, what I see is the following:
...
"metrics": [
[ { "label": "${PROP('Dim.reason')} (sum: ${SUM})", "expression": "SEARCH('{\"my_custom_namespace,reason\"} MY.CUSTOM.METRIC', 'Sum', 60)", "period": 60 } ]
],
Actual behavior
When this gets deployed to CloudWatch, what I should see is the following:
...
"metrics": [
[ { "label": "${PROP('Dim.reason')} (sum: ${SUM})", "expression": "SEARCH('{\"my_custom_namespace\",\"reason\"} MY.CUSTOM.METRIC', 'Sum', 60)", "period": 60 } ]
],
or
...
"metrics": [
[ { "label": "${PROP('Dim.reason')} (sum: ${SUM})", "expression": "SEARCH('{my_custom_namespace,reason} MY.CUSTOM.METRIC', 'Sum', 60)", "period": 60 } ]
],
Other details
This was caused by #591. I've downgraded to the previous version and it works as expected with it.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working