# Expose metrics with prometheus

**URL:** <https://forums.percona.com/t/expose-metrics-with-prometheus/15788>\
**Category:** Percona Operator for MySQL\
**Created:** [May 23, 2022, 3:23pm UTC](https://forums.percona.com/t/expose-metrics-with-prometheus/15788 "2022-05-23T15:23:12Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![no\_way](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@no\_way](https://forums.percona.com/u/no_way)\
**Post date:** [May 24, 2022, 10:46am UTC](https://forums.percona.com/t/expose-metrics-with-prometheus/15788/6 "2022-05-24T10:46:47Z")

</div>

it’s ok with this config :

```auto
...
  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"

```

---

_[View the full topic](https://forums.percona.com/t/expose-metrics-with-prometheus/15788)._
