Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a statement for MAL practice. #11985

Merged
merged 2 commits into from
Mar 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/en/concepts-and-designs/mal.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,14 @@ instance_trace_count{az="az-1"} 133 // 100 + 33
instance_trace_count{az="az-3"} 20
```

___
**Note, aggregation operations affect the samples from one bulk only. If the metrics are reported parallel from multiple instances/nodes
through different SampleFamily, this aggregation would NOT work.**

In the best practice for this scenario, build the metric with labels that represent each instance/node. Then use the
[AggregateLabels Operation in MQE](../api/metrics-query-expression.md#aggregatelabels-operation) to aggregate the metrics.
___

### Function

`Duration` is a textual representation of a time range. The formats accepted are based on the ISO-8601 duration format {@code PnDTnHnMn.nS}
Expand Down
Loading