alertmanager

(★ 8,589)

Prometheus Alertmanager

파일 탐색기

  • .coderabbit.yaml
  • .dockerignore
  • .gitignore
  • .golangci.yml
  • .nvmrc
  • .promu.yml
  • .yamllint
  • AGENTS.md
  • buf.gen.yaml
  • buf.yaml
  • CHANGELOG.md
  • CODE_OF_CONDUCT.md
  • CODEOWNERS
  • COPYRIGHT.txt
  • Dockerfile
  • Dockerfile.distroless
  • go.mod
  • go.sum
  • LICENSE
  • MAINTAINERS.md
  • Makefile
  • Makefile.common
  • NOTICE
  • Procfile
  • README.md
  • RELEASE.md
  • SECURITY.md
  • VERSION

# 설치 가이드

go
사전 준비물

설치 및 실행 절차

git clone https://github.com/prometheus/alertmanager.git

저장소를 로컬에 복제합니다.

cd alertmanager

프로젝트 디렉토리로 이동합니다.

make build

소스 코드를 빌드합니다.

./alertmanager --config.file=<your_file>

설정 파일을 지정하여 Alertmanager를 실행합니다.

핵심 명령어

make build

Alertmanager 바이너리를 빌드합니다.

make build BINARIES=amtool

amtool 바이너리만 선택적으로 빌드합니다.

go install github.com/prometheus/alertmanager/cmd/amtool@latest

amtool CLI 도구를 최신 버전으로 설치합니다.

docker run --name alertmanager -d -p 127.0.0.1:9093:9093 quay.io/prometheus/alertmanager

Docker를 통해 Alertmanager 컨테이너를 실행합니다.

설정 파일 형식을 확인하고 적절한 설정 경로를 지정하여 실행해야 합니다.

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

docker run

설명 보기 ▼

This command is an alias of `docker container run`.

tldr docker container run

View documentation for the original command:

🔍

git clone

설명 보기 ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

go install

설명 보기 ▼

Compile and install packages named by the import paths.

go install

Compile and install the current package:

go install {{path/to/package}}

Compile and install a specific local package:

go install {{golang.org/x/tools/gopls}}@{{latest}}

Install the latest version of a program, ignoring `go.mod` in the current directory:

// repository documentation