Created
April 26, 2024 02:54
-
-
Save magicstone1412/84728734ab561aa7cc08fe3cb56bdfaa to your computer and use it in GitHub Desktop.
1st prometheus configuration file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Global | |
# # The first block, global, contains global settings for controlling the Prometheus | |
# # server’s behavior | |
global: | |
scrape_interval: 15s | |
evaluation_interval: 15s | |
# Alerting | |
# # The second block, alerting, configures Prometheus’ alerting. | |
# # Alerting is provided by a standalone tool called Alertmanager | |
alerting: | |
alertmanagers: | |
- static_configs: | |
- targets: | |
# - alertmanager:9093 | |
# Rule files | |
# # The third block, specifies a list of files that can contain recording or | |
# # alerting rules. | |
rule_files: | |
# - "first_rules.yml" | |
# - "second_rules.yml" | |
# Scrape configuration | |
# # The last block, scrape_configs, specifies all of the targets that Prometheus will | |
# # scrape | |
scrape_configs: | |
- job_name: 'prometheus' | |
static_configs: | |
- targets: ['localhost:9090'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment