1
我有一個網絡鉤子鬆弛,我必須配置它與觀察者。彈性文檔說這 -配置鬆弛與觀察者發現
要在Watcher中配置Slack帳戶,請在elasticsearch.yml中設置watcher.actions.slack.service屬性。您必須將網址設置爲您的傳入webhook集成URL。
但發現不能訪問yml。
例如,在本地服務器上,以下片段配置名爲notify-monitoring的帳戶並將默認發件人名稱設置爲Watcher。
watcher.actions.slack.service:
account:
monitoring:
url: https://hooks.slack.com/services/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
message_default:
from: Watcher
我該如何配置它?