-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[[outputs.azure_monitor]] + [[inputs.rabbitmq]] = Bad Request from Azure #5063
Comments
Thanks, can you run |
I've compiled the sources, and modified azure_monitor plugin to output the entire error reponse:
I've captured the buffer sent to Azure:
I think the error is URL or VHOST. I'll test. |
The error is not related to tags URL or VHOST. In translate function (which transforms tags into dimensions):
This prevents empty dimName/dimValue on azure metric. |
Is this related? #3882 |
Based on the output from that issue it is common to have an exchange with no name, so I think we should just pass it along as an empty string if we can. |
Azure Metric doesn't support empty string as dimValue. |
Closed by #5083 |
@raphaelquati how did you manage to add an additional error message? |
I've change the code to dump the vars in functions like (
|
Relevant telegraf.conf:
System info:
Kubernetes 1.11
Telegraf version:1.8.3 (telegraf_s)
Using helm package from https://github.com/influxdata/tick-charts/tree/master/telegraf-s
Steps to reproduce:
Create a Service Principal
az ad sp create-for-rbac --name TelegrafAKS --role="Monitoring Metrics Publisher" --scopes="/subscriptions/??/resourceGroups/??"
Setup environment variables (as described at https://github.com/influxdata/telegraf/blob/master/plugins/outputs/azure_monitor/README.md) or use helm package
AZURE_CLIENT_ID
AZURE_CLIENT_SECRET
AZURE_TENANT_ID
Install helm package:
helm install --name telegraf .\telegraf-s --namespace monitor -f .\values.yaml
values.yaml:
Expected behavior:
Run fine
Actual behavior:
Error
Additional info:
If I change the input from rabbitmq to cpu, it runs fine.
Changing strings_as_dimensions from true to false: nothing happens
Logs;
The text was updated successfully, but these errors were encountered: