grafana / alloy

OpenTelemetry Collector distribution with programmable pipelines
https://grafana.com/oss/alloy
Apache License 2.0
1.39k stars 203 forks source link

[discovery.azure] Network interface does not exist for scale sets #973

Open ToonTijtgat2 opened 5 months ago

ToonTijtgat2 commented 5 months ago

What's wrong?

The discovery.azure component is not able to discover vm's from a scale set. The message is Network interface does not exist.

Steps to reproduce

Use the configuration to discover azure scale set's.

System information

Kubernetes

Software version

Grafana Alloy v1.1.0

Configuration

discovery.relabel "azurerelabel" {
        targets = discovery.azure.azure.targets
        rule {
          source_labels = ["__meta_azure_machine_name"]
          target_label = "instance"
        }
      }

      prometheus.scrape "azurescraping" {
        targets = discovery.relabel.azurerelabel.output
        forward_to = [prometheus.remote_write.prometheusmandev.receiver]
        clustering {
          enabled = true
        }
      }

Logs

ts=2024-06-03T09:06:16.124182502Z level=warn msg="Network interface does not exist" component_path=/ component_id=discovery.azure.azure name=/subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.Compute/virtualMachineScaleSets/xxxx/virtualMachines/1/networkInterfaces/xxxx err="network interface does not exist"
ToonTijtgat2 commented 5 months ago

It's probably something related to this, but I can not find the reason why the discovery of the network interface is not going as planned. https://github.com/prometheus/prometheus/blob/8a08f452b6a66698baf45f32beac2f1f54d52f20/discovery/azure/azure.go#L462C39-L462C71

github-actions[bot] commented 3 months ago

This issue has not had any activity in the past 30 days, so the needs-attention label has been added to it. If the opened issue is a bug, check to see if a newer release fixed your issue. If it is no longer relevant, please feel free to close this issue. The needs-attention label signals to maintainers that something has fallen through the cracks. No action is needed by you; your issue will be kept open and you do not have to respond to this comment. The label will be removed the next time this job runs if there is new activity. Thank you for your contributions!