blob: 8d37837977094eb9e8015df4045be786d7963d28 [file] [log] [blame]
garciadeblasde6dd2c2023-06-01 18:30:24 +02001# Copyright 2018 The Prometheus Authors
2# Copyright 2018 Whitestack
3# Copyright 2018 Telefonica Investigacion y Desarrollo, S.A.U.
4#
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
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
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 implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17# my global config
18global:
19 scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
20 evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
21 # scrape_timeout is set to the global default (10s).
22
23# Alertmanager configuration
24alerting:
25 alertmanagers:
26 - static_configs:
27 - targets:
28 # - alertmanager:9093
29
30# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
31rule_files:
32 # - "first_rules.yml"
33 # - "second_rules.yml"
34
35# A scrape configuration containing exactly one endpoint to scrape:
36# Here it's Prometheus itself.
37scrape_configs:
38 # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
39 - job_name: 'mon_exporter'
40 static_configs:
41 - targets: ['mon:8000']
42 - job_name: 'node_exporter'
43 static_configs:
44 - targets: ['172.18.0.1:9100']
45 - job_name: 'cadvisor'
46 static_configs:
47 - targets: ['prometheus-cadvisor:8080']