1 {{- if .Values.prometheus.enabled -}}
2 #######################################################################################
3 # Copyright ETSI Contributors and Others.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #######################################################################################
21 name: {{ include "osm.fullname" . }}-prometheus-prom-configmap
23 {{- include "osm.labels" . | nindent 4 }}
26 # Copyright 2018 The Prometheus Authors
27 # Copyright 2018 Whitestack
28 # Copyright 2018 Telefonica Investigacion y Desarrollo, S.A.U.
30 # Licensed under the Apache License, Version 2.0 (the "License");
31 # you may not use this file except in compliance with the License.
32 # You may obtain a copy of the License at
34 # http://www.apache.org/licenses/LICENSE-2.0
36 # Unless required by applicable law or agreed to in writing, software
37 # distributed under the License is distributed on an "AS IS" BASIS,
38 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39 # See the License for the specific language governing permissions and
40 # limitations under the License.
44 scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
45 evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
46 # scrape_timeout is set to the global default (10s).
48 # Alertmanager configuration
53 {{- if .Values.global.oldServiceAssurance }}
58 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
59 {{- if .Values.global.oldServiceAssurance }}
62 # - "second_rules.yml"
65 - "osm_metric_rules.yml"
66 - "osm_alert_rules.yml"
68 # A scrape configuration containing exactly one endpoint to scrape:
69 # Here it's Prometheus itself.
71 - job_name: 'mon_exporter'
73 - targets: ['mon:8000']
74 {{- if .Values.global.oldServiceAssurance }}
75 # Add here other external targets, e.g. a pushgateway
76 # - job_name: 'pushgateway'
78 # - targets: ['prometheus-pushgateway:9091']
80 - job_name: pushgateway
85 - pushgateway-prometheus-pushgateway:9091