diff --git a/alertmanager.yml b/alertmanager.yml index 257005f..4139e67 100644 --- a/alertmanager.yml +++ b/alertmanager.yml @@ -1,20 +1,22 @@ --- route: - receiver: main-receiver + receiver: ms.teams group_by: [job] group_wait: 30s group_interval: 1m repeat_interval: 1h routes: - - receiver: msteams + - receiver: msteams + + - receiver: telegram.bot receivers: - # - name: telegram.bot - # telegram_configs: - # - api_url: https://api.telegram.org - # bot_token: 5209410321:AAGqy6WrQZQRQ0qx0pww8K6KPqzXIeRRosA - # chat_id: 65498889 - # parse_mode: HTML + - name: telegram.bot + telegram_configs: + - api_url: https://api.telegram.org + bot_token: 5209410321:AAGqy6WrQZQRQ0qx0pww8K6KPqzXIeRRosA + chat_id: 65498889 + parse_mode: HTML - name: ms.teams webhook_configs: diff --git a/docker-compose.yml b/docker-compose.yml index 34a86c7..06c42ab 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,3 +32,10 @@ services: network_mode: host volumes: - ./alertmanager.yml:/etc/alertmanager/alertmanager.yml + + prom2teams: + image: idealista/prom2teams:2.7.0 + restart: unless-stopped + network_mode: host + environment: + PROM2TEAMS_CONNECTOR: webhookurl diff --git a/msteams-card.json b/msteams-card.json new file mode 100644 index 0000000..c5c729d --- /dev/null +++ b/msteams-card.json @@ -0,0 +1,39 @@ +{ + "@context": "https://schema.org/extensions", + "@type": "MessageCard", + "themeColor": "0072C6", + "title": "Visit the Outlook Dev Portal", + "text": "Click **Learn More** to learn more about Actionable Messages!", + "potentialAction": [ + { + "@type": "ActionCard", + "name": "Send Feedback", + "inputs": [ + { + "@type": "TextInput", + "id": "feedback", + "isMultiline": true, + "title": "Let us know what you think about Actionable Messages" + } + ], + "actions": [ + { + "@type": "HttpPOST", + "name": "Send Feedback", + "isPrimary": true, + "target": "http://..." + } + ] + }, + { + "@type": "OpenUri", + "name": "Learn More", + "targets": [ + { + "os": "default", + "uri": "https://docs.microsoft.com/outlook/actionable-messages" + } + ] + } + ] +} \ No newline at end of file