kind: Service
apiVersion: v1

metadata:
  name: manila-api
  labels:
    system: openstack
    type: api
    component: manila
  annotations:
    prometheus.io/scrape: "true"
    prometheus.io/targets: {{ required ".Values.alerts.prometheus" .Values.alerts.prometheus |  quote }}
spec:
  selector:
    name: manila-api
  ports:
    - name: manila-api
      port: {{.Values.api_port_internal}}
    - name: metrics
      port: {{ .Values.global.metrics_port }}

kind: Service
apiVersion: v1

metadata:
  name: manila-api
  labels:
    system: openstack
    type: api
    component: manila
  annotations:
    prometheus.io/scrape: "true"
    prometheus.io/port: {{ .Values.global.metrics_port | quote }}
    prometheus.io/targets: {{ required ".Values.alerts.prometheus" .Values.alerts.prometheus |  quote }}
spec:
  selector:
    name: manila-api
  ports:
    - name: manila-api
      port: {{.Values.api_port_internal}}
    - name: metrics
      port: {{ .Values.global.metrics_port }}

Revert "[manila] remove obsolete prom annotation"
Revert "[manila] remove obsolete prom annotation"

This reverts commit 1634bf15a7631929dd87c18000979b697392707b.
