Skip to main content

All Questions

2 votes
0 answers
86 views

Doc for setting up Prometheus Alertmanager in Go App?

Functionality broken and client signatures are vastly different while upgrading Alertmanager from 0.21.0 to 0.24.0. There seems no good documentation for setting it up with v0.24.0 too. Is there a doc ...
Sanjay Nag's user avatar
3 votes
1 answer
1k views

Go Template if condition

how can i combine and and eq/ne functions together? I wrote this snippet {{ define "opsgenie.default.tmpl" }} <font size="+0"><b>{{.CommonLabels.alertname }}</b>...
olti's user avatar
  • 121
1 vote
0 answers
83 views

Go Language Prometheus Alert message in Grafana

i write expression which send me alert in Telegram. now I want to parse it with prometheus alert manager This is my code {{ define "test" }} {{ range .Alerts }} test_1 : {{ .Annotations....
russiaisoccupant's user avatar
1 vote
0 answers
621 views

Create a button in AlertManager plugin for Mattermost

I am using alertmanager plugin to send aletrs from prometheus. I need to add a button in this file https://github.com/cpanato/mattermost-plugin-alertmanager/blob/main/server/webhook.go, which will be ...
rootin's user avatar
  • 11
1 vote
1 answer
504 views

prometheus can not send firing alert to alertmanager

I use prometheus as a event monitor, which means when something happens in my system, for example: the system upgrade successfully or some error happens. The system has 2 different events, one is ...
user7056048's user avatar
2 votes
1 answer
310 views

Dynamically process template map values

I have annotations object like this: Annotations: map[string]string{ "common": "Some GPM consistency checkers have failed.", "t_0": "Title1", ...
user122222's user avatar
  • 2,339
0 votes
1 answer
595 views

Go prometheus client gets different latency with Python prometheus client

I am reading latency measurement codes, because I found the measured latency is higher than the end to end latency measured by python codes. Are the following InstrumentRoundTripperDuration usage ...
BAE's user avatar
  • 8,824