---
apiVersion: v1
kind: Service
metadata:
  name: mongodb-metrics
  namespace: database
  labels:
    app.kubernetes.io/name: mongodb
spec:
  type: ClusterIP
  ports:
  - port: 9216
    targetPort: metrics
    protocol: TCP
    name: http-metrics
  selector:
    app.kubernetes.io/name: mongodb
    app.kubernetes.io/component: mongodb
