Skip to content

Instantly share code, notes, and snippets.

@magicstone1412
Created April 26, 2024 02:54
Show Gist options
  • Save magicstone1412/84728734ab561aa7cc08fe3cb56bdfaa to your computer and use it in GitHub Desktop.
Save magicstone1412/84728734ab561aa7cc08fe3cb56bdfaa to your computer and use it in GitHub Desktop.
1st prometheus configuration file
# 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