-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opsgenie_config using api_key_file not working #3764
Comments
This looks like something is wrong with the api key and not alertmanager. Have you verified, eg in a test pod, that |
thanks for reply, - name: prometheus-deadman-switch
webhook_configs:
- url: https://api.opsgenie.com/v2/heartbeats/xxxxxx/ping
send_resolved: false
http_config:
basic_auth:
username: ':'
password_file: /vault/secrets/opsgenie_api_key |
One is an |
@zoezhangmattr any feedback? |
no, as i mentioned before, the api key is working if using k8s secret , same api key, the password is correct, it should be opsgenie api key in this case |
Hi @zoezhangmattr! Does the file exist and contain the secret at the time the Alertmanager is started? It sounds like there might be a race condition between the Alertmanager starting and vault-injector writing the file. |
What did you do?
using vault injector to inject the api key - has issue
the /vault/secrets/opsgenie_api_key , the content is the apikey
file owner is nobody, same as alertmanager user/group,. its mode is 644 or 777, tried both
same alert can be routed to slack, but cant be opsgenie
using plain text api key value - works
What did you expect to see?
thought it should work, but so far no luck, need some guidance pls
What did you see instead? Under which circumstances?
ts=2024-03-13T02:42:59.388Z caller=notify.go:848 level=warn component=dispatcher receiver=opsgenie integration=opsgenie[0] aggrGroup="{}/{severity=~"^(?:critical|error)$"}:{}" msg="Notify attempt failed, will retry later" attempts=1 err="Post "https://api.opsgenie.com/v2/alerts\": net/http: invalid header field value for "Authorization""
Environment
System information:
insert output of
uname -srm
hereAlertmanager version:
insert output of
alertmanager --version
here (repeat for each alertmanagerversion in your cluster, if relevant to the issue)
0.26.0 and 0.27.0
Prometheus version:
insert output of
prometheus --version
here (repeat for each prometheusversion in your cluster, if relevant to the issue)
2.47.0
Alertmanager configuration file:
The text was updated successfully, but these errors were encountered: