apiVersion: v1
kind: Service
metadata:
  annotations:
    prometheus.io/port: "9187"
    prometheus.io/scrape: "true"
  labels:
    app: postgresql
    chart: postgresql-8.9.4
    heritage: Helm
    release: RELEASE-NAME
  name: RELEASE-NAME-postgresql-metrics
spec:
  ports:
  - name: http-metrics
    port: 9187
    targetPort: http-metrics
  selector:
    app: postgresql
    release: RELEASE-NAME
    role: master
  type: ClusterIP
