Grafana Agent only scraping one replica in kubernetes

73 views Asked by At

I have a go gRPC Service running with middleware that counts handled requests. As I am developing I only have one replica of the service up, but tried scaling it.

At that point I noticed grafana would not scrape the metrics endpoint from multiple replicas. Is there anything I am missing? My scrape config is pretty simple:

        - job_name: my-service
          honor_labels: true
          metrics_path: /metrics
          scheme: http
          static_configs:
            - targets: ['my-service.default.svc.cluster.local:8080']
0

There are 0 answers