alertmanager

(★ 8,589)

Prometheus Alertmanager

File Explorer

  • .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

# Installation Guide

go
Prerequisites

Setup Steps

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

Clone the repository locally.

cd alertmanager

Navigate to the project directory.

make build

Build the source code.

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

Run Alertmanager with the specified configuration file.

Key Commands

make build

Build the Alertmanager binary.

make build BINARIES=amtool

Build only the amtool binary.

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

Install the amtool CLI tool to the latest version.

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

Run the Alertmanager container via Docker.

Make sure to verify the configuration file format and specify the correct config path when running.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

docker run

View Details ▼

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

tldr docker container run

View documentation for the original command:

🔍

git clone

View Details ▼

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

View Details ▼

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