# Rancher Monitoring Integration for Portworx

**URL:** https://forums.portworx.com/t/rancher-monitoring-integration-for-portworx/823
**Category:** Portworx on other Orchestrators
**Created:** [February 27, 2021, 10:15pm UTC](https://forums.portworx.com/t/rancher-monitoring-integration-for-portworx/823 "2021-02-27T22:15:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sensre](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.portworx.com/sensre/32/299_2.png) [@sensre](https://forums.portworx.com/u/sensre)
#### Post date: [February 27, 2021, 10:15pm UTC](https://forums.portworx.com/t/rancher-monitoring-integration-for-portworx/823/1 "2021-02-27T22:15:04Z")

</div>

Rancher scheduler comes with a default Prometheus-operator to monitor the rancher clusters. You can also extend the same to monitor the portworx by just creating a service monitor object under the cattle-prometheus namespace for portworx. below example spec yaml

```auto
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  namespace: cattle-prometheus
  name: portworx-prometheus-sm
  labels:
    name: portworx-prometheus-sm
    k8s-app: prometheus-operator
spec:
  selector:
    matchLabels:
      name: portworx
  namespaceSelector:
    matchNames:
    - kube-system
  endpoints:
  - port: px-api
    targetPort: 9001

```

and to display this rancher Prometheus portworx stats into the grafana, You can reuse the custom portworx dashboards by updating the data source as `RANCHER_MONITORING` in the json dashboard spec files. available in the docs page [Prometheus and Grafana](https://docs.portworx.com/portworx-install-with-kubernetes/operate-and-maintain-on-kubernetes/monitoring/monitoring-px-prometheusandgrafana.1/)

For more details, Let me know. thanks
