You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/metrics.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,9 @@ These metrics can be visualized through [Amazon CloudWatch Console](https://aws.
19
19
20
20
If you're new to Amazon CloudWatch, there are some terminologies you must be aware of before using this utility:
21
21
22
-
-**Namespace**. It's the highest level container that will group multiple metrics from multiple services for a given application, for example `e-commerce-app`.
22
+
-**Namespace**. It's the highest level container that will group multiple metrics from multiple services for a given application, for example `ServerlessAirline`.
23
23
-**Dimensions**. Metrics metadata in key-value format. They help you slice and dice metrics visualization, for example `ColdStart` metric by `service`.
24
-
-**Metric**. It's the name of the metric, for example: `CartUpdated` or `ProductAdded`.
24
+
-**Metric**. It's the name of the metric, for example: `SuccessfulBooking` or `UpdatedBooking`.
25
25
-**Unit**. It's a value representing the unit of measure for the corresponding metric, for example: `Count` or `Seconds`.
26
26
-**Resolution**. It's a value representing the storage resolution for the corresponding metric. Metrics can be either `Standard` or `High` resolution. Read more about CloudWatch Periods [here](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Resolution_definition).
27
27
@@ -155,7 +155,7 @@ Metrics has two global settings that will be used across all metrics emitted. Us
155
155
private static final MetricsLogger metricsLogger = MetricsLoggerFactory.getMetricsLogger();
156
156
157
157
@Override
158
-
@Metrics(namespace = "e-commerce-app", service = "product-service")
158
+
@Metrics(namespace = "ServerlessAirline", service = "payment")
159
159
public Object handleRequest(Object input, Context context) {
160
160
// ...
161
161
}
@@ -183,7 +183,7 @@ You can create metrics using `addMetric`, and manually create dimensions for all
183
183
private static final MetricsLogger metricsLogger = MetricsLoggerFactory.getMetricsLogger();
184
184
185
185
@Override
186
-
@Metrics(namespace = "e-commerce-app", service = "product-service")
186
+
@Metrics(namespace = "ServerlessAirline", service = "payment")
187
187
public Object handleRequest(Object input, Context context) {
0 commit comments