@@ -30,10 +30,10 @@ If you're new to Amazon CloudWatch, there are two terminologies you must be awar
30
30
31
31
Metric has two global settings that will be used across all metrics emitted:
32
32
33
- Setting | Description | Environment variable | Constructor parameter
34
- ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -------------------------------------------------
35
- ** Metric namespace** | Logical container where all metrics will be placed e.g. ` ServerlessAirline ` | ` POWERTOOLS_METRICS_NAMESPACE ` | ` namespace `
36
- ** Service** | Optionally, sets ** service** metric dimension across all metrics e.g. ` payment ` | ` POWERTOOLS_SERVICE_NAME ` | ` service `
33
+ | Setting | Description | Environment variable | Constructor parameter |
34
+ | -------------------- | ------------------------------------------------------------------------------- | ------------------------------ | --------------------- |
35
+ | ** Metric namespace** | Logical container where all metrics will be placed e.g. ` ServerlessAirline ` | ` POWERTOOLS_METRICS_NAMESPACE ` | ` namespace ` |
36
+ | ** Service** | Optionally, sets ** service** metric dimension across all metrics e.g. ` payment ` | ` POWERTOOLS_SERVICE_NAME ` | ` service ` |
37
37
38
38
???+ tip
39
39
Use your application or main service as the metric namespace to easily group all metrics.
@@ -191,7 +191,7 @@ This decorator also **validates**, **serializes**, and **flushes** all your metr
191
191
???+ tip "Tip: Metric validation"
192
192
If metrics are provided, and any of the following criteria are not met, ** ` SchemaValidationError ` ** exception will be raised:
193
193
194
- * Maximum of 9 dimensions
194
+ * Maximum of 8 user-defined dimensions
195
195
* Namespace is set, and no more than one
196
196
* Metric units must be [supported by CloudWatch](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html)
197
197
0 commit comments