Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
iconfalse

Table of Contents

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