Fix dimension limit on azure_monitor output (#7336)
This commit is contained in:
parent
0858b779c6
commit
2799302142
|
@ -392,7 +392,7 @@ func translate(m telegraf.Metric, prefix string) (*azureMonitorMetric, error) {
|
||||||
var dimensionValues []string
|
var dimensionValues []string
|
||||||
for _, tag := range m.TagList() {
|
for _, tag := range m.TagList() {
|
||||||
// Azure custom metrics service supports up to 10 dimensions
|
// Azure custom metrics service supports up to 10 dimensions
|
||||||
if len(dimensionNames) > 10 {
|
if len(dimensionNames) >= 10 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue