Closed liptanbiswas closed 5 years ago
Context: This was introduced in #82 via @kongo2002.
Perhaps the endpoint restriction was introduced in a later version of Grafana?
@stephenyeargin Submitted a PR which iterates through all alerts of that organization and tries to pause/unpause one by one. Found this which says its a feature that Grafana admin api is not accessible using API keys, so I believe it is going to remain like that. Can you please review the PR and share your thoughts.
Fixed in v2.3.2
.
Describe the bug Command
graf pause all alerts
andgraf unpause all alerts
does not work. Bot returns a permission denied error when trying in Slack. This is because the endpointadmin/pause-all-alerts
is part of Grafana Admin API and it is clearly mentioned in Grafana documentation that The Admin HTTP API does not currently work with an API Token.To Reproduce Steps to reproduce the behavior:
myhubot graf unpause all alerts
Expected behavior It should pause all alerts in one go.
Software: