Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upHTTP Config custom headers OR OpsGenie heartbeat support #4314
Comments
This comment has been minimized.
This comment has been minimized.
|
You've got the wrong repository here, however we've discussed this in the past and do not plan on supporting OpsGenie heartbeats or similar as they give a false sense of security. An end-to-end test that goes from an alerting rule all the way through your paging provider to a deadmansswitch. As a mater of general maintainability, we don't support bespoke or non-standard authentication methods either. |
This comment has been minimized.
This comment has been minimized.
|
Do you mind sharing where exactly this was discussed in the past? I agree with the bespoke statement, however I think the webhook functionality should at least support custom headers as this is what webhooks are exactly for, custom bespoke integrations. |
This comment has been minimized.
This comment has been minimized.
|
I believe it was prometheus/alertmanager#444 |
This comment has been minimized.
This comment has been minimized.
|
Closing this issue here, as it's an Alertmanager issue/question and this is the Prometheus repository. |
juliusv
closed this
Jul 16, 2018
This comment has been minimized.
This comment has been minimized.
dano-o
commented
Sep 26, 2018
•
|
I know this is a closed thread but wanted to point it out regardless that it is possible to ping OpsGenie from the AlertManager without custom headers. 1.) You can simply use the apiKey in the target URL: https://api.opsgenie.com/v2/heartbeats/heartbeatname/ping?apiKey=XXXX 2.) You can use the Basic authentication method in AlertManager. OpsGenie will accept the following: Header Key: Authorization Basically, just leave the username empty, and use the apikey as the secret. Hope this helps! |
This comment has been minimized.
This comment has been minimized.
|
Thanks for this @dano-o. I can confirm your first solution worked, however when I tried the second option I could not get that working. |
This comment has been minimized.
This comment has been minimized.
dano-o
commented
Sep 27, 2018
|
@therealgambo I just tried Basic base64(:apikey) and it worked. Note, that the ":" is added by alertmanager, but honestly not sure - I'm more on the OpsGenie side of things. The api certainly accepts that header. Maybe try to decode the base64 and see, if it's the right format? |
This comment has been minimized.
This comment has been minimized.
VR6Pete
commented
Oct 8, 2018
|
Hi @dano-o - Are you setting this up as a Prometheus job in Prometheus.yml? How have you implemented this server side? |
therealgambo commentedJun 26, 2018
Proposal
Trying to send a 'DeadManSwitch' alert to OpsGenie, however they expect a different
Authorizationheader than what we can send via webhookThey expect
Authorization GenieKey <api-key>, prometheus currently sendsAuthorization Bearer <api-key>when using thebearer_tokensetting in http_configBug Report
What did you do?
Tried to configure DeadManSwitch / Heartbeat for OpsGenie using Webhooks + HTTP Config
What did you expect to see?
Webhook successs
What did you see instead? Under which circumstances?
HTTP 401 error because of headers issue as stated
Environment
Prometheus version:
2.3.1Alertmanager version:
0.15.0