slurm_exporter_config.yaml 689 B

123456789101112131415161718192021222324252627282930
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: prometheus-slurmexporter-metrics-2
  5. namespace: default
  6. annotations:
  7. prometheus.io/scrape: 'true'
  8. labels:
  9. app: prometheus
  10. app.kubernetes.io/managed-by: Helm
  11. chart: prometheus-11.12.1
  12. component: server
  13. spec:
  14. ports:
  15. - name: metrics
  16. port: 8080
  17. protocol: TCP
  18. targetPort: 8080
  19. selector:
  20. app: prometheus
  21. component: server
  22. additionalScrapeConfigs:
  23. name: prometheus-config
  24. key: prometheus-config.yaml
  25. job_name: 'prometheus-slurm-exporter'
  26. scrape_interval: 15s
  27. static_configs:
  28. - targets:
  29. - http:"{{ inventory_hostname }}":8080/metrics
  30. serviceMonitorSelector: {}