azure_monitor send fails with 400 - bad request due to more than 10 dimensions in metric #7318
Labels
area/azure
Azure plugins including eventhub_consumer, azure_storage_queue, azure_monitor
bug
unexpected problem or unintended behavior
Milestone
Relevant section of values.yaml:
System info:
Telegraf 1.14
Azure AKS
Steps to reproduce:
Expected behavior:
Prometheus metrics delivered to Azure Monitor
Actual behavior:
Send fails with response
Error writing to outputs.azure_monitor: failed to write batch: [400] 400 Bad Request {"error":{"code":"BadRequest","message":"'dimValues' and 'dimNames' lengths should be lesser than 10\r\n"}}
Additional info:
The issue is here:
telegraf/plugins/outputs/azure_monitor/azure_monitor.go
Line 395 in fefd7ff
The logic above allows 11 items in the array - should be >= 10
The text was updated successfully, but these errors were encountered: