nexus-public icon indicating copy to clipboard operation
nexus-public copied to clipboard

Unable to scrape metrics using Victoriametrics VMServiceScrape

Open jahnavisana2812 opened this issue 10 months ago • 1 comments

Hello,

Our Grafana setup utilizes VictoriaMetrics, a Prometheus-compatible system. I'm currently attempting to scrape the metrics exposed on /service/metrics/prometheus, but encountering login issues resulting in a 500 error. Below, you'll find the configuration for the vmservicescrape component I'm using, along with the documentation I've referenced. Your prompt assistance would be greatly appreciated. Thank you. https://help.sonatype.com/en/support-features.html

apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
  name: nexus-metrics
  namespace: nexus
spec:
  endpoints:
    - interval: 5s
      basicAuth:
        password:
          key: *******
        username:
          key: developer
      vm_scrape_params:
        proxy_client_config:
          basic_auth:
            password:
              key: ******
            username:
              key: developer
      path: /service/metrics/prometheus
      port: nexus
      scheme: http
  jobLabel: nxrm
  namespaceSelector:
    matchNames:
      - nexus
  selector: 
    matchLabels:
      app: nexus

jahnavisana2812 avatar Apr 01 '24 06:04 jahnavisana2812