A service to receive requests from Grafana Oncall and proxying them to SMSEagle.
call:
access-token:
url:
sms:
access-token:
url:
debug: true
port: 8095//default
SP_CALL_ACCESS_TOKEN=
SP_CALL_URL=
SP_SMS_ACCESS_TOKEN=
SP_SMS_URL=
SP_PORT=
DEBUG=TRUE
- Create
config.yaml
in root directory of the project go run .
- Create
.env.smseagle-proxy
in thelocal_testing
directory - Run
docker compose up --build
- this will start Grafana with OnCall - Setup Grafana OnCall:
curl -X POST 'http://admin:admin@localhost:3000/api/plugins/grafana-oncall-app/settings' -H "Content-Type: application/json" -d '{"enabled":true, "jsonData":{"stackId":5, "orgId":100, "onCallApiUrl":"http://engine:8080/", "grafanaUrl":"http://localhost:3000/"}}'
curl -X POST 'http://admin:admin@localhost:3000/api/plugins/grafana-oncall-app/resources/plugin/install'
- Go to Grafana at http://localhost:3000, user:pass
admin:admin
- Add
smseagle-proxy
as an outgoing webhook
- To rebuild
smseagle-proxy
and get logs rundocker compose up --build smseagle_proxy
Other than an OnCall json we need also a header with the phonenumber
key.