Skip to content

Commit c81ed9c

Browse files
Merge branch 'jira_disable_update_per_config' of github.com:holger-waschke/alertmanager into jira_disable_update_per_config
Signed-off-by: Holger Waschke <[email protected]>
2 parents 9da06dc + 06d6fc9 commit c81ed9c

File tree

7 files changed

+1007
-0
lines changed

7 files changed

+1007
-0
lines changed

.vscode/launch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch Package",
6+
"type": "go",
7+
"request": "launch",
8+
"mode": "auto",
9+
"program": "${fileDirname}",
10+
"args": [
11+
"--config.file=/home/holger/git/alertmanager/config.yml",
12+
"--log.level=debug"
13+
]
14+
}
15+
]
16+
}

alert.sh

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
#!/usr/bin/env bash
3+
hostname="test.mon.dvag.com"
4+
# interne URL
5+
#url="http://alertmanager-test.mon.dvag.net/api/v1/alerts"
6+
#url="http://localhost:8080/incoming"
7+
url="http://localhost:9093/api/v2/alerts"
8+
# externe URL
9+
#url="https://pushgw.dvag.com/metrics/job/pushgateway/instance/${hostname}"
10+
# Test
11+
# Auth_User='pushgw-test'
12+
# Auth_Token='xxx'
13+
generate_post_data=$(cat <<'EOF'
14+
[
15+
{
16+
"labels": {
17+
"alertname": "E2E Checkly Failed Application2",
18+
"activated": "true",
19+
"alert_scc": "true",
20+
"check_type": "multi_step",
21+
"environment": "Abnahme",
22+
"group": "DFS / KP-API / Abnahme",
23+
"jira_project": "DFSKUPO",
24+
"job": "checkly_dvag_monitoring",
25+
"leanix_app_id": "APP-00564",
26+
"muted": "false",
27+
"name": "KP / Check Product Positive Flow",
28+
"platform": "checkly",
29+
"check_id":"11400f73-715e-42ef-a1c0-1e32e37e5e75",
30+
"product": "ClientPortal",
31+
"severity": "error",
32+
"status": "failing",
33+
"test": "true"
34+
},
35+
"annotations": {
36+
"description": "This ist Yet Another Test.",
37+
"update_me": "ewrayes2",
38+
"summary": "Yet Another Test",
39+
"ncheine": "abstand",
40+
"metric_name": "fail"
41+
},
42+
"generatorURL": "https://prometheus.mon.cloud.dvag/graph?g0.expr:dvag_e2e_availability%7Binstance%3D%22dvag.produktion.uinfo.smokeTestMeineDvag.selenide%22%2Cjob%3D%22aktives-monitoring%22%7D+%3C%3D+80&g0.tab:1"
43+
}
44+
]
45+
EOF
46+
)
47+
#echo $generate_post_data
48+
49+
50+
curl -v $url --data "$generate_post_data" \
51+
-H "Content-Type: application/json"
52+
# -H "Auth-User: $Auth_User" \
53+
# -H "Auth-Token: $Auth_Token" \
54+
#--trace-ascii /dev/stdout
55+

alert2.sh

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
#!/usr/bin/env bash
3+
hostname="test.mon.dvag.com"
4+
# interne URL
5+
#url="http://alertmanager-test.mon.dvag.net/api/v1/alerts"
6+
#url="http://localhost:8080/incoming"
7+
url="http://localhost:9093/api/v2/alerts"
8+
# externe URL
9+
#url="https://pushgw.dvag.com/metrics/job/pushgateway/instance/${hostname}"
10+
# Test
11+
# Auth_User='pushgw-test'
12+
# Auth_Token='xxx'
13+
generate_post_data=$(cat <<'EOF'
14+
[
15+
{
16+
"labels": {
17+
"alertname": "E2E Checkly Failed Application2",
18+
"activated": "true",
19+
"alert_scc": "true",
20+
"check_type": "multi_step",
21+
"environment": "Abnahme",
22+
"group": "DFS / KP-API / Abnahme",
23+
"jira_project": "DFSKUPO",
24+
"job": "checkly_dvag_monitoring",
25+
"leanix_app_id": "APP-00564",
26+
"muted": "false",
27+
"name": "KP / Check Product Positive Flow",
28+
"platform": "checkly",
29+
"check_id":"11400f73-715e-42ef-a1c0-1e32e37e5e75",
30+
"product": "ClientPortal",
31+
"severity": "error",
32+
"status": "failing",
33+
"test2": "true"
34+
},
35+
"annotations": {
36+
"description": "This ist Yet Another Test.",
37+
"update_me": "ewrayes2",
38+
"summary": "Yet Another Test",
39+
"ncheine": "abstand",
40+
"metric_name": "fail"
41+
},
42+
"generatorURL": "https://prometheus.mon.cloud.dvag/graph?g0.expr:dvag_e2e_availability%7Binstance%3D%22dvag.produktion.uinfo.smokeTestMeineDvag.selenide%22%2Cjob%3D%22aktives-monitoring%22%7D+%3C%3D+80&g0.tab:1"
43+
}
44+
]
45+
EOF
46+
)
47+
#echo $generate_post_data
48+
49+
50+
curl -v $url --data "$generate_post_data" \
51+
-H "Content-Type: application/json"
52+
# -H "Auth-User: $Auth_User" \
53+
# -H "Auth-Token: $Auth_Token" \
54+
#--trace-ascii /dev/stdout
55+

cmd/alertmanager/alertmanager

36.3 MB
Binary file not shown.

cmd/alertmanager/data/nflog

Whitespace-only changes.

cmd/alertmanager/data/silences

Whitespace-only changes.

0 commit comments

Comments
 (0)