#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you 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.
#

# my global config
global:
  scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
  # scrape_timeout is set to the global default (10s).

# Alertmanager configuration
alerting:
  alertmanagers:
    - static_configs:
        - targets:
          # - alertmanager:9093

# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
  # - "first_rules.yml"
  # - "second_rules.yml"

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: "prometheus"
    static_configs:
      - targets: ["localhost:9090"]
  - job_name: "node_exporter1"
    static_configs:
      - targets: ["localhost:9100"]
  - job_name: "node_exporter2"
    static_configs:
      - targets: ["localhost:9100"]
  - job_name: "node_exporter3"
    static_configs:
      - targets: ["localhost:9100"]
  - job_name: "node_exporter4"
    static_configs:
      - targets: ["localhost:9100"]
  - job_name: "node_exporter5"
    static_configs:
      - targets: ["localhost:9100"]
  - job_name: "cpp_client1"
    static_configs:
      - targets: ["172.31.52.247:8090"]
  - job_name: "cpp_client2"
    static_configs:
      - targets: ["172.31.54.193:8090"]
  - job_name: "cpp_client3"
    static_configs:
      - targets: ["172.31.55.48:8090"]
  - job_name: "cpp_client4"
    static_configs:
      - targets: ["172.31.53.140:8090"]
  - job_name: "cpp_client5"
    static_configs:
      - targets: ["172.31.57.186:8090"]
