Expose metrics with prometheus

it’s ok with this config :

...
  pxc:
    annotations:
      prometheus.io/port: "9104"
      prometheus.io/scrape: "true"
...
    sidecars:
    - name: mysqld-exporter
      image: prom/mysqld-exporter
      imagePullPolicy: IfNotPresent
      env:
...
        - name: DATA_SOURCE_NAME
          value: "exporter:pass@(127.0.0.1:3306)/"
      args:
        - "--web.listen-address=0.0.0.0:9104"
1 Like