I am trying to scrape VM's and VMSS's in azure using prometheus.For 
discovery I am using azure_sd_configs.Below is my configuration 

  - job_name: 'node_exporter'
    azure_sd_configs:
      - authentication_method: ManagedIdentity
        subscription_id: <subscriptionID>
        refresh_interval: 5m
        port: 9100

Do I have to mention anything ? 

I am getting below error 

level=warn ts=2020-06-30T08:13:55.895Z caller=klog.go:86 
component=k8s_client_runtime func=Warningf 
msg="/app/discovery/kubernetes/kubernetes.go:261: watch of *v1.Endpoints 
ended with: too old resource version: 1291352 (1292845)"
level=error ts=2020-06-30T08:15:28.938Z caller=refresh.go:98 
component="discovery manager scrape" discovery=azure msg="Unable to refresh 
target groups" err="could not get virtual machines: could not list virtual 
machines: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the 
Token for request to 
https://management.azure.com/subscriptions/<REMOVEDSUBSCRIPTION>/providers/Microsoft.Compute/virtualMachines?api-version=2018-10-01:
 
StatusCode=404 -- Original Error: adal: Refresh request failed. Status Code 
= '404'. Response body: getting assigned identities for pod <PROMETHEUS POD 
NAME> in CREATED state failed after 16 attempts, retry duration [5]s. 
Error: <nil>\n"


Any help ? 

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/eb6678a0-aac2-4e0f-9746-1b391185598do%40googlegroups.com.

Reply via email to