RobustPerception / azure_metrics_exporter

Azure metrics exporter for Prometheus
Apache License 2.0
133 stars 69 forks source link

Did not get status code 200 #104

Open anoop2503 opened 3 years ago

anoop2503 commented 3 years ago

Hi,

I am trying to set up the exporter as a kubernetes application and using configmap for creating configuration file. However, when I am deploying the application I am getting an following error.

Failed to get token: Did not get status code 200, got: 404 with body:

Here is the configmap I created for the configuration.

apiVersion: v1
data:
  azure.yml: |
    active_directory_authority_url: "https://login.microsoftonline.com/"
    resource_manager_url: "https://management.azure.com/"
    credentials:
      client_id: "4xxxxxxx-4xxx-4xxx-8xxx-2xxxxxxxxxxx"
    resource_groups:
      - resource_group: "my_resource_group_name"
        resource_types:
          - "Microsoft.Compute/virtualMachines"
        metrics:
          - name: "Disk Read Bytes"
          - name: "Disk Write Bytes"
kind: ConfigMap
metadata:
  name: azure-exporter

Any suggestions? Do we have any sample configuration for k8s?

anoop2503 commented 3 years ago

Anyone has any idea about this issue?