Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAzure discovery panics since #4202 #4447
Comments
This comment has been minimized.
This comment has been minimized.
|
@johscheuer Could you take a look please. Can you share the relevant bit of your config please? |
This comment has been minimized.
This comment has been minimized.
- job_name: azure
scrape_interval: 30s
scrape_timeout: 20s
metrics_path: /metrics
scheme: http
azure_sd_configs:
- port: 9100
subscription_id: XXXXXXXXXXXXXXXXXXXXXXXX
tenant_id: XXXXXXXXXXXXXXXXXXXXXXXX
client_id: XXXXXXXXXXXXXXXXXXXXXXXX
client_secret: <secret>
refresh_interval: 5m
relabel_configs:
- source_labels: [__meta_azure_machine_tag_prometheus_io_scrape]
separator: ;
regex: '[Tt]rue'
replacement: $1
action: keep
- separator: ;
regex: __meta_azure_(machine_(name|location|resource_group))
replacement: ${1}
action: labelmap |
This comment has been minimized.
This comment has been minimized.
|
I found the error, I will create a PR with the fix tomorrow (this, was introduced when we removed the pointers). Probably we should add some unit tests for the Azure discovery. |
johscheuer
referenced this issue
Aug 2, 2018
Merged
Fixes #4447, correctly parse VMs with empty tags #4450
This comment has been minimized.
This comment has been minimized.
|
I created an PR with the according fix: #4450 Sorry for introducing this bug! In my tests all VMs had tags so I didn't encounter this bug. |
brian-brazil
closed this
in
#4450
Aug 2, 2018
This comment has been minimized.
This comment has been minimized.
|
So far so good. |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
sylr commentedAug 1, 2018
I ran prometheus:master in my azure based kubernetes cluster to test #4202
Here the error I got: