1 {{- if and .Values.pushgateway.enabled .Values.networkPolicy.enabled -}}
2 apiVersion: {{ template "prometheus.networkPolicy.apiVersion" . }}
5 name: {{ template "prometheus.pushgateway.fullname" . }}
6 {{ include "prometheus.namespace" . | indent 2 }}
8 {{- include "prometheus.pushgateway.labels" . | nindent 4 }}
12 {{- include "prometheus.pushgateway.matchLabels" . | nindent 6 }}
17 {{- include "prometheus.server.matchLabels" . | nindent 12 }}