This message was deleted.
# general
a
This message was deleted.
b
I am working to send nginx-controller prom metrics to the current rancher-monitoring installation describe above. I've exported metrics using nginx-controller helm chart by adding:
Copy code
metrics:
    enabled: true
    port: 10254
    prometheusRule:
      additionalLabels: {}
      enabled: false
      rules: []
    service:
      annotations: {}
      externalIPs: []
      loadBalancerSourceRanges: []
      servicePort: 10254
      type: ClusterIP
      <http://prometheus.io/port|prometheus.io/port>: '10254'
      <http://prometheus.io/scrape|prometheus.io/scrape>: 'true'
    serviceMonitor:
      additionalLabels: {}
      enabled: true
      metricRelabelings: []
      namespace: ''
      namespaceSelector: {}
      relabelings: []
      scrapeInterval: 30s
      targetLabels: []
I see the metrics if i do port forward.
I would like to make
rancher-monitoring 102.0.2+up40.1.2
be able to scrap that metrics and show them on prometheus so I could show metrics on grafana
On rancher-monitoring helm app I updated the values related to additionalScraps
Copy code
additionalScrapeConfigs:
      - job_name: my-nginx-controller
        static_configs:
          - targets:
              - >-
                ingress-nginx-v1-core-my-ingress-nginx-controller-metrics.ingress-nginx-v1-core:10254
    additionalScrapeConfigsSecret:
      enabled: true
      key: additional-scrape-configs.yaml
      name: rancher-monitoring-prometheus-scrape-confg
I cant find documentation related to this.
p
You don't have to do much, installing rancher-monitoring enable and exposes all metrics by defaults; check bundled grafana and prometheus config if you wish to externalize them