티스토리 뷰

공부

[slack] incoming webhook

승가비 2023. 10. 5. 23:15
728x90
{
    "channel": "ABCDEBF1",
    "attachments": 
    [
        {
            "mrkdwn_in": ["text"],
            "color": "#36a64f",
            "pretext": "Optional pre-text that appears above the attachment block",
            "author_name": "author_name",
            "author_link": "http://flickr.com/bobby/",
            "author_icon": "https://placeimg.com/16/16/people",
            "title": "title",
            "title_link": "https://api.slack.com/",
            "text": "Optional `text` that appears within the attachment",
            "fields": 
            [
                {
                    "title": "A field's title",
                    "value": "This field's value",
                    "short": false
                },
                {
                    "title": "A short field's title",
                    "value": "A short field's value",
                    "short": true
                },
                {
                    "title": "A second short field's title",
                    "value": "A second short field's value",
                    "short": true
                }
            ],
            "thumb_url": "http://placekitten.com/g/200/200",
            "footer": "footer",
            "footer_icon": "https://platform.slack-edge.com/img/default_application_icon.png",
            "ts": 123456789
        }
    ]
}

https://afsdzvcx123.tistory.com/entry/Grafana-Alert-Slack-%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0

 

[Grafana] Alert Slack 연동하기

참고 https://grafana.com/docs/grafana/v9.0/alerting/notifications/ https://cleaning-toolbox.tistory.com/94 https://gurumee92.tistory.com/272 개요 그라파나에서 Alert Rule 을 생성 후, Slack 과 연동하여 알람 메시지를 Slack 으로 전

afsdzvcx123.tistory.com

https://roseline.oopy.io/4d14964c-53fc-4b65-9e53-026fc52cb9cb

 

slack incoming webhook 만들기

incoming webhook을 사용하면 슬랙 외부에서도 특정 채널에 메시지를 보낼 수 있다.

roseline.oopy.io

https://api.slack.com/reference/messaging/attachments

 

728x90
댓글