BREAKING CHANGE
Legacy command line flags, --ding.profile
, --ding.timeout
and --template.file
are removed
and no longer can be used. Please use config file instead before upgrading.
- [CHANGE] BREAKING CHANGE Remove legacy command line flags. #157
- [BUILD] Add arm builds for windows and macOS.
- [MISC] Update react & go dependencies.
- [FEATURE/ENHANCEMENT] Allow override global default message template in config file. #76
- [CHANGE] UI: Use CommonMark instead of GFM.
- [ENHANCEMENT] Filter hidden flags in flags UI. #73
- [ENHANCEMENT] Add goroutine info in runtime UI. #74
- [FEATURE/ENHANCEMENT] Improved compatibility: Now the following v0.3.0 command line flags are supported as well:
--ding.profile
,--ding.timeout
and--template.file
. #72 - [FEATURE/ENHANCEMENT] Add support to reload through API
/-/reload
(Disabled by default, can be enabled via the--web.enable-lifecycle
flag). #70 - [FEATURE/ENHANCEMENT] Add ready and health check API endpoint:
/-/healthy
and/-/ready
. #71 - [CHANGE] (Backward compatible) Rename
--web.ui-enabled
to--web.enable-ui
.
- [FIX] Fix excessive rendering requests while in web UI preview. #65
- [FIX] Fix default template (which misleads users).
NOTE For security reason, the Web UI is disabled by default. In order to enable it, pass the --web.ui-enabled
flag
when program starts.
- [FEATURE] Add web UI for playground (preview & validate your templates, etc). #62, #63
- [ENHANCEMENT] Add support to configuration reload through SIGHUP signal. #60
- [ENHANCEMENT] Validate target incoming webhook url in case of typos. #61
- [FEATURE] Allow template customization for target individually. #58
- [ENHANCEMENT] Change default template.
BREAKING CHANGES
Now instead of configuration via command line arguments, the YAML configuration file is used for better flexibility.
The example configuration file looks like:
## Request timeout
# timeout: 5s
## Customizable template file path
## In docker, by default the current working directory is set to /prometheus-webhook-dingtalk
## However it's recommended to use absolute path whenever possible
# template: template/default.tmpl
## Targets, previously was known as "profiles"
targets:
webhook1:
url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx
# secret for signature
secret: SEC000000000000000000000
webhook2:
url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx
webhook_mention_all:
url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx
mention:
all: true
webhook_mention_users:
mention:
mobiles: ['156xxxx8827', '189xxxx8325']
- [ENHANCEMENT] Add various template functions from sprig #47
- [ENHANCEMENT] Add signature support due to the new security enforcement requirement of dingtalk #49
- [FEATURE] Add user mention support (all or specific mobiles) to dingtalk notification #54