Browse Source

updates

master^2
F2256342 Daniel de Oliveira Carvalho 4 years ago
parent
commit
d07e4ba202
  1. 18
      alertmanager.yml
  2. 7
      docker-compose.yml
  3. 39
      msteams-card.json

18
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:

7
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

39
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"
}
]
}
]
}
Loading…
Cancel
Save