{"id":13427767,"url":"https://github.com/timonwong/prometheus-webhook-dingtalk","last_synced_at":"2025-05-15T17:04:24.891Z","repository":{"id":40690891,"uuid":"107095747","full_name":"timonwong/prometheus-webhook-dingtalk","owner":"timonwong","description":"DingTalk integration for Prometheus Alertmanager","archived":false,"fork":false,"pushed_at":"2023-12-04T02:52:13.000Z","size":19211,"stargazers_count":924,"open_issues_count":41,"forks_count":313,"subscribers_count":23,"default_branch":"main","last_synced_at":"2025-04-07T22:07:41.782Z","etag":null,"topics":["alertmanager","dingding","dingtalk","prometheus"],"latest_commit_sha":null,"homepage":"http://theo.im/blog/2017/10/16/release-prometheus-alertmanager-webhook-for-dingtalk/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timonwong.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2017-10-16T07:54:19.000Z","updated_at":"2025-04-07T07:35:03.000Z","dependencies_parsed_at":"2024-01-23T18:11:06.021Z","dependency_job_id":"da5e1773-0874-4db7-ae6b-51efda9c86ec","html_url":"https://github.com/timonwong/prometheus-webhook-dingtalk","commit_stats":{"total_commits":165,"total_committers":6,"mean_commits":27.5,"dds":"0.18181818181818177","last_synced_commit":"589d858c1f7c9409a67146d8c14e28a208bf34e7"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonwong%2Fprometheus-webhook-dingtalk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonwong%2Fprometheus-webhook-dingtalk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonwong%2Fprometheus-webhook-dingtalk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonwong%2Fprometheus-webhook-dingtalk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timonwong","download_url":"https://codeload.github.com/timonwong/prometheus-webhook-dingtalk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254384987,"owners_count":22062422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","dingding","dingtalk","prometheus"],"created_at":"2024-07-31T01:00:40.106Z","updated_at":"2025-05-15T17:04:24.839Z","avatar_url":"https://github.com/timonwong.png","language":"Go","funding_links":[],"categories":["开发库和SDK","Go"],"sub_categories":["Golang"],"readme":"# prometheus-webhook-dingtalk\n\n[![Build Status](https://img.shields.io/circleci/build/github/timonwong/prometheus-webhook-dingtalk)](https://circleci.com/gh/timonwong/prometheus-webhook-dingtalk)\n[![Go Report Card](https://goreportcard.com/badge/github.com/timonwong/prometheus-webhook-dingtalk)](https://goreportcard.com/report/github.com/timonwong/prometheus-webhook-dingtalk)\n[![Docker Pulls](https://img.shields.io/docker/pulls/timonwong/prometheus-webhook-dingtalk)](https://hub.docker.com/r/timonwong/prometheus-webhook-dingtalk)\n\nGenerating [DingTalk] notification from [Prometheus] [AlertManager] WebHooks.\n\n## Install\n\n### Precompiled binaries\n\nPrecompiled binaries for released versions are available in [release page](https://github.com/timonwong/prometheus-webhook-dingtalk/releases):\nIt's always recommended to use latest stable version available.\n\n### Docker\n\nYou can deploy this tool using the Docker image from following registry:\n\n* DockerHub: [timonwong/prometheus-webhook-dingtalk](https://hub.docker.com/r/timonwong/prometheus-webhook-dingtalk)\n\n### Building from Source\n\n#### Prerequisites\n\n1. [Go](https://golang.org/doc/install) (1.17 or greater is required)\n2. [Nodejs](https://nodejs.org/)\n\n#### Build\n\nClone the repository and build manually:\n\n```bash\nmake build\n```\n\n### Building the Docker Image\n\nIn order to build the docker image locally (linux/amd64), you can use the following commands:\n\n```bash\nmake promu\npromu crossbuild -p linux/amd64   #  Or $(go env GOPATH)/bin/promu crossbuild -p linux/amd64\nmake common-docker-amd64\n```\n\n## Usage\n\n```\nusage: prometheus-webhook-dingtalk [\u003cflags\u003e]\n\nFlags:\n  -h, --help                    Show context-sensitive help (also try --help-long and --help-man).\n      --web.listen-address=:8060\n                                The address to listen on for web interface.\n      --web.enable-ui           Enable Web UI mounted on /ui path\n      --web.enable-lifecycle    Enable reload via HTTP request.\n      --config.file=config.yml  Path to the configuration file.\n      --log.level=info          Only log messages with the given severity or above. One of: [debug, info, warn, error]\n      --log.format=logfmt       Output format of log messages. One of: [logfmt, json]\n      --version                 Show application version.\n```\n\nFor Kubernetes users, check out [./contrib/k8s](./contrib/k8s).\n\n## Configuration\n\n常见问题可以看看 [FAQ](./docs/FAQ_zh.md)\n\n```yaml\n## Request timeout\n# timeout: 5s\n\n## Customizable templates path\n# templates:\n#   - contrib/templates/legacy/template.tmpl\n\n## You can also override default template using `default_message`\n## The following example to use the 'legacy' template from v0.3.0\n# default_message:\n#   title: '{{ template \"legacy.title\" . }}'\n#   text: '{{ template \"legacy.content\" . }}'\n\n## Targets, previously was known as \"profiles\"\ntargets:\n  webhook1:\n    url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx\n    # secret for signature\n    secret: SEC000000000000000000000\n  webhook2:\n    url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx\n  webhook_legacy:\n    url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx\n    # Customize template content\n    message:\n      # Use legacy template\n      title: '{{ template \"legacy.title\" . }}'\n      text: '{{ template \"legacy.content\" . }}'\n  webhook_mention_all:\n    url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx\n    mention:\n      all: true\n  webhook_mention_users:\n    url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx\n    mention:\n      mobiles: ['156xxxx8827', '189xxxx8325']\n```\n\n[Prometheus]: https://prometheus.io\n[AlertManager]: https://github.com/prometheus/alertmanager\n[DingTalk]: https://www.dingtalk.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonwong%2Fprometheus-webhook-dingtalk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimonwong%2Fprometheus-webhook-dingtalk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonwong%2Fprometheus-webhook-dingtalk/lists"}