Prometheus: 설치가이드

2026. 3. 22. 09:24·🖥️Monitoring/Prometheus

prometheus 설치

Prometheus wget으로 설치

wget https://github.com/prometheus/prometheus/releases/download/v2.42.0/prometheus-2.42.0.linux-amd64.tar.gz

Prometheus 압축풀기

tar -xzvf prometheus-2.42.0.linux-amd64.tar.gz

prometheus 실행

./prometheus--config.file=/파일경로/prometheus.yml

Prometheus 접속하는 법

프로메테우스 default 포트 : 9090
http://localhost:9090

접속이 된다면, 정상.

prometheus.yml 파일설정

# my global config
global:
  scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
  # scrape_timeout is set to the global default (10s).

# Alertmanager configuration
alerting:
  alertmanagers:
    - static_configs:
        - targets: ["localhost:9093"]
          # - alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files: ["alert.rules.yml"]
  # - "first_rules.yml"
  # - "second_rules.yml"
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: "node"
    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.
    static_configs:
     - targets: ["ip:9100"]
저작자표시 비영리 변경금지 (새창열림)

'🖥️Monitoring > Prometheus' 카테고리의 다른 글

Prometheus: Node Exporter 설치가이드  (0) 2026.03.22
Prometheus: Alertmanager Curl로 Silence 요청하는 법  (0) 2026.03.22
Prometheus: Blackbox Exporter 사용기  (0) 2026.03.22
Prometheus: alertmanager 오류 대처법  (0) 2026.03.22
Prometheus: Python HTTP 서버와 프로세스 체크  (0) 2026.03.22
'🖥️Monitoring/Prometheus' 카테고리의 다른 글
  • Prometheus: Node Exporter 설치가이드
  • Prometheus: Alertmanager Curl로 Silence 요청하는 법
  • Prometheus: Blackbox Exporter 사용기
  • Prometheus: alertmanager 오류 대처법
Diven
Diven
  • Diven
    Diven
    Diven
  • 전체
    오늘
    어제
    • 분류 전체보기 (110) N
      • ☁️Cloud (21) N
        • AWS (2)
        • Alibaba (14) N
        • OCI (1)
        • AWS: Certified Solution Arc.. (0)
        • AWS: Certificate Advanced N.. (2) N
      • 📊DB (13)
        • MongoDB (8)
        • MariaDB (2)
        • PostgreSQL (2)
        • MySQL (1)
      • 🧑🏽‍💻Dev:Lang (9)
        • C++ (0)
        • GO (1)
        • Python (8)
      • ⚙️DevOps (4)
        • CICD (0)
        • Jenkins (4)
      • 🐳Docker (15)
      • 🪢laC (0)
      • ⚓K8s (7)
      • 🐧Linux (25)
      • 🖥️Monitoring (10)
        • Grafana (1)
        • Prometheus (6)
        • Loki (1)
        • ELK (2)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    Python
    Cloud
    Alibaba
    NGINX
    k8s
    prometheus
    SSL
    PolarDB
    linux
    db
    alertmanager
    docker
    mongoDB
    jenkins
    알리바바 클라우드
    centOS7
    mariadb
    alb
    MySQL
    AWS
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.6
Diven
Prometheus: 설치가이드
상단으로

티스토리툴바