blob: 158fce14262ec2315fe1796a7f4f55fdeaa8aea8 [file] [log] [blame]
---
# Copyright 2018-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{{- if .Values.prometheus.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-config
data:
prometheus.yml: |
global:
scrape_interval: {{ .Values.prometheus.interval }} # By default, scrape targets every 15 seconds.
evaluation_interval: {{ .Values.prometheus.interval }} # By default, scrape targets every 15 seconds.
# scrape_timeout is set to the global default (10s).
external_labels:
monitor: 'monitoring'
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['{{ .Values.prometheus_host }}:{{ .Values.prometheus.nodePort }}']
- job_name: 'kube-metrics'
static_configs:
- targets: ['{{ .Values.cdn_remote_host }}:{{ .Values.cadvisor.nodePort }}', '{{ .Values.cdn_local_host }}:{{ .Values.cadvisor.nodePort }}']
{{- end }}