Full Changelog: https://github.com/timonwong/prometheus-webhook-dingtalk/compare/v2.0.0...v2.1.0
Published by timonwong about 3 years ago
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.
Published by timonwong almost 5 years ago
Published by timonwong almost 5 years ago
--ding.profile
, --ding.timeout
and --template.file
. #72/-/reload
(Disabled by default, can be enabled via the --web.enable-lifecycle
flag). #70/-/healthy
and /-/ready
. #71--web.ui-enabled
to --web.enable-ui
.Published by timonwong almost 5 years ago
Published by timonwong almost 5 years ago
Published by timonwong almost 5 years ago
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.
Published by timonwong almost 5 years ago
Published by timonwong almost 5 years ago
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']
Published by timonwong almost 7 years ago
Published by timonwong almost 7 years ago
Published by timonwong about 7 years ago
Published by timonwong about 7 years ago
Published by timonwong about 7 years ago
Published by timonwong about 7 years ago