{"id":16761850,"url":"https://github.com/angristan/ansible-alertmanager","last_synced_at":"2026-05-21T04:07:21.190Z","repository":{"id":153244673,"uuid":"177432434","full_name":"angristan/ansible-alertmanager","owner":"angristan","description":"Ansible role for Prometheus Alertmanager","archived":false,"fork":false,"pushed_at":"2020-04-22T16:55:35.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-30T05:39:37.362Z","etag":null,"topics":["alertmanager","ansible","ansible-role","prometheus","systemd"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/angristan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-24T15:22:50.000Z","updated_at":"2024-08-06T06:03:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b106761-d3c5-406b-abbd-c716d1cd0e14","html_url":"https://github.com/angristan/ansible-alertmanager","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/angristan/ansible-alertmanager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angristan%2Fansible-alertmanager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angristan%2Fansible-alertmanager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angristan%2Fansible-alertmanager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angristan%2Fansible-alertmanager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angristan","download_url":"https://codeload.github.com/angristan/ansible-alertmanager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angristan%2Fansible-alertmanager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33288202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alertmanager","ansible","ansible-role","prometheus","systemd"],"created_at":"2024-10-13T04:43:35.627Z","updated_at":"2026-05-21T04:07:21.176Z","avatar_url":"https://github.com/angristan.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible role for Alertmanager\n\nThis role will setup [Alertmanager](https://github.com/prometheus/alertmanager) on any Linux machine using systemd.\n\n## Requirements\n\n- systemd on the target host\n- gnu-tar on Mac deployer host (`brew install gnu-tar`)\n\n## Role Variables\n\n- `alertmanager_version`: the versions that will be installed and downloaded. (`0.16.1`).\n\nThe role will download the alertmanager release on the deployer and upload the `alertmanager` and `amtool` binaries on the target host.\n\nIf the `/usr/local/bin/alertmanager` binary already exists, the role will skip the install steps. You can force them (to update, for instance), by setting `alertmanager_force_install` to true.\n\n- `alertmanager_config_dir`: the configuration directory (`/etc/alertmanager`)\n- `alertmanager_config_file`: custom alertmanager configuration template name (`alertmanager.yml.j2`)\n- `alertmanager_data_dir`: the data directory (`/var/lib/alertmanager`)\n- `alertmanager_web_listen_address`: the listening address of the web interface (`0.0.0.0:9093`)\n- `alertmanager_web_external_url` the external URL you will access the web interface with (`http://localhost:9093/`)\n\n- `alertmanager_resolve_timeout`: time after which an alert is declared resolved if it has not been updated. (`3m`)\n- `alertmanager_config_flags_extra`: extra flags passed to the alertmanager binary in the systemd unit (`{}`)\n\n- `alertmanager_smtp`: SMTP (email) configuration. See `alertmanager.yml.j2`. (`{}`)\n- `alertmanager_slack_api_url`: Slack webhook url (`\"\"`)\n- `alertmanager_pagerduty_url`: Pagerduty webhook url (`\"\"`)\n- `alertmanager_opsgenie_api_key`: Opsgenie webhook key (`\"\"`)\n- `alertmanager_opsgenie_api_url`: Opsgenie webhook url (`\"\"`)\n- `alertmanager_hipchat_api_url`: Hipchat webhook url (`\"\"`)\n- `alertmanager_hipchat_auth_token`: Hipchat authentication token (`\"\"`)\n- `alertmanager_wechat_url`: Enterprise WeChat webhook url (`\"\"`)\n- `alertmanager_wechat_secret`: Enterprise WeChat secret token (`\"\"`)\n- `alertmanager_wechat_corp_id`: Enterprise WeChat corporation id (`\"\"`)\n\n- `alertmanager_receivers`: A list of notification receivers. Configuration same as in [official docs](https://prometheus.io/docs/alerting/configuration/#%3Creceiver%3E) (`[]`)\n- `alertmanager_inhibit_rules`: List of inhibition rules. Same as in [official docs](https://prometheus.io/docs/alerting/configuration/#inhibit_rule) (`[]`)\n- `alertmanager_route`: Alert routing. More in [official docs](https://prometheus.io/docs/alerting/configuration/#%3Croute%3E) (`{}`)\n- `alertmanager_child_routes`: List of child routes (`[]`)\n\n## Example playbook\n\n```yaml\n---\n\n- hosts: myhost\n  roles: alertmanager\n  vars:\n    alertmanager_web_listen_address: '127.0.0.1:9093'\n    alertmanager_web_external_url: 'https://alertmanager.domain.tld/'\n\n    alertmanager_slack_api_url: 'https://hooks.slack.com/services/xxx/xxx/xxx'\n\n    alertmanager_receivers:\n      - name: 'company-slack'\n        slack_configs:\n          - channel: 'alerts'\n\n    alertmanager_route:\n      group_by: ['instance', 'severity']\n      group_wait: 30s\n      group_interval: 5m\n      repeat_interval: 3h\n      receiver: company-slack\n```\n\n## License\n\nMIT. See LICENSE for more details.\n\n## Credit\n\nThis role is largely inspired by [cloudalchemy/ansible-alertmanager](https://github.com/cloudalchemy/ansible-alertmanager).\n\n## Author Information\n\nSee my other Ansible roles at [angristan/ansible-roles](https://github.com/angristan/ansible-roles).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangristan%2Fansible-alertmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangristan%2Fansible-alertmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangristan%2Fansible-alertmanager/lists"}