No description
Find a file
2023-08-27 16:53:19 +02:00
cache cache/redis: Rig up timeout with context 2023-07-14 15:10:40 +02:00
config config.scfg: Add instructions to obtain cert fingerprint 2023-08-25 22:46:41 +02:00
docker docker: Release 0.3.0 2023-07-19 16:38:40 +02:00
.build.yml Revert "ci: Don't fail on staticcheck" 2023-08-20 19:41:31 +02:00
.gitignore version: Use linker flag 2023-02-16 13:06:21 +01:00
config.scfg config.scfg: Add instructions to obtain cert fingerprint 2023-08-25 22:46:41 +02:00
functions.go functions: Use slices package for sorting 2023-08-11 13:50:53 +02:00
go.mod Upgrade go-utils 2023-08-13 16:06:09 +02:00
go.sum Upgrade go-utils 2023-08-13 16:06:09 +02:00
http.go Set default header for User-Agent 2023-02-20 13:27:41 +01:00
LICENSE Initial commit 2022-10-09 14:19:48 +02:00
main.go publish: Improve certificate fingerprint output 2023-08-27 16:53:19 +02:00
README.md readme: Add aur package 2023-07-20 01:59:08 +02:00
silence.go Use Logger.With to create child loggers for the handlers 2023-08-13 15:16:26 +02:00

ntfy-alertmanager

builds.sr.ht status

A bridge between ntfy and Alertmanager.

Installation

Simply use go build or the docker image with docker-compose file. ntfy-alertmanager:latest is built from the latest tagged release while ntfy-alertmanager:dev is built from the master branch. On Arch Linux you can install the aur package as well.

Configuration

You can specify the configuration file location with the --config flag. By default the configuration file will be read from /etc/ntfy-alertmanager/config. The format of this file is scfg and there is an example configuration file in this repo. Furthermore you can take a look at my deployment.

ntfy-alertmanager has support for setting ntfy priority, tags, icon, action buttons (which can be used to create an Alertmanager silence), email notifications and phone calls. Define a decreasing order of labels in the config file and map those labels to tags, priority, an icon or an email address.

  • For priority and icon the first found value will be chosen. An icon for "resolved" alerts will take precedence.
  • Tags are added together.

Alertmanager config

receivers:
    - name: "ntfy"
      webhook_configs:
          - url: "http://127.0.0.1:8080"
            http_config:
                basic_auth:
                    username: "webhookUser"
                    password: "webhookPass"

Contributing

Report bugs on the issue tracker, send patches/ask questions on the mailing list or write to me directly on matrix @xenrox:xenrox.net.