You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Prometheus Configuration

  • command-line flags

    • immutable system parameters settings
    • ex)
      • storage locations
      • amount of data to keep on disk and in memory, ...
  • configuration file

    • "–config.file={PATH}"
    • global

      • scrape_interval:
      • scrape_timeout:
      • evaluation_interval:
      • external_labels:
        • monitor: "{set label}"
      • query_log_file: /etc/prometheus/query.log
    • rule_files

      • rule
        • rule_files:
          • - /etc/prometheus/rules/*.yaml
          • prometheus_engine_query:speed
            • (rules_files로 설정한 Rule로 조회한 결과)
      • alert
        • "alerts:process_cpu_seconds_totla:1"로 설정
    • scrape_configs

      • Fixed Service discover
        • service discover대상은 "localhost:9090" 
      • json파일로 service discover
        • dj_custom.json
      • http 요청으로 Service discover
    • alerting

    • remote_write

    • remote_read

    • storage

  • No labels