sonatype / nexus-public

Sonatype Nexus Repository Open-source codebase mirror
https://www.sonatype.com/products/repository-oss-download
Eclipse Public License 1.0
1.83k stars 557 forks source link

Unable to scrape metrics using Victoriametrics VMServiceScrape #371

Open jahnavisana2812 opened 3 months ago

jahnavisana2812 commented 3 months ago

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
github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 60 days with no activity.