Skip to content

Commit

Permalink
Add a statement for MAL practice. (#11985)
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-sheng authored Mar 5, 2024
1 parent 5fe4f49 commit e92c348
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit e92c348

Please sign in to comment.