hi all, I didn't see any question related to it an...
# support
a
hi all, I didn't see any question related to it and maybe someone else is facing the same issue, I'm using the Azure Prometheus Managed instance and I'm trying to scrape the metrics from there, I have the config below in the signoz-otel-collector-metrics configmap.
Copy code
prometheus:    
    config:
      scrape_configs:
      - job_name: "prometheus-xxx"
        scrape_interval: 90s
        oauth2:
          client_id: 'xxxx'
          client_secret: 'xxxx'
          token_url: '<https://login.microsoftonline.com/xxxxx/oauth2/token>'
        static_configs:
          - targets: ["<http://xxxxx-xxx4.westeurope.prometheus.monitor.azure.com:443|xxxxx-xxx4.westeurope.prometheus.monitor.azure.com:443>"]
in the pod log i can see the error below:
Copy code
message 2023-11-06T17:59:34.651Z  warn  internal/transaction.go:114 Failed to scrape Prometheus endpoint  {"kind": "receiver", "name": "prometheus", "data_type": "metrics", "scrape_timestamp": 1699293574641, "target_labels": "{__name__=\"up\", instance=\"<http://xxxx-xxx4.westeurope.prometheus.monitor.azure.com:443\|xxxx-xxx4.westeurope.prometheus.monitor.azure.com:443\>", job=\"prometheus-xxx\"}"}
any tip here?
s
This error means that signoz-otel-collector is not able to access the configured target. Is this target accessible from the signoz instance?
a
yes, it's accessible but Azure dont have the /metrics endpoint i asked them if we can have a query with the /metrics and then i try to do it
https://prometheus.io/docs/prometheus/latest/querying/api/#otlp-receiver seems the azure cannot support the otlp receiver, no idea how can i scrap the metrics, if someone knows, please let me know