Last active
September 8, 2023 11:54
-
-
Save tiagodavi70/790c46a8506dcbaf6deb8651d81b8231 to your computer and use it in GitHub Desktop.
This file contains 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: | |
scrape_interval: 3s # Intervalo de tempo entre requisição de métricas | |
evaluation_interval: 15s # Avaliação de regras | |
external_labels: | |
monitor: 'codelab-monitor' | |
# Regras | |
rule_files: | |
# - "regras" | |
# Configuração específica das configurações | |
scrape_configs: | |
- job_name: 'prometheus' | |
# padrão de caminho para '/metrics' | |
# protocolo padrão 'http'. | |
static_configs: | |
- targets: ['host.docker.internal:9090'] # Endereço dinâmico | |
- job_name: 'docker' | |
static_configs: | |
- targets: ['host.docker.internal:9323'] # "metrics-addr" : "127.0.0.1:9323" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment