apiVersion: v1
kind: Service
metadata:
  name: prometheus-slurmexporter-metrics-2
  namespace: default
  annotations:
      prometheus.io/scrape: 'true'
  labels:
    app: prometheus
    app.kubernetes.io/managed-by: Helm
    chart: prometheus-11.12.1
    component: server
spec:
  ports:
  - name: metrics
    port: 8080
    protocol: TCP
    targetPort: 8080
  selector:
    app: prometheus
    component: server
  additionalScrapeConfigs:
    name: prometheus-config
    key: prometheus-config.yaml
    job_name: 'prometheus-slurm-exporter'
    scrape_interval: 15s
    static_configs:
      - targets:
        - http:"{{ inventory_hostname }}":8080/metrics
  serviceMonitorSelector: {}