- Docker, Docker Compose or Node v18 for host installation.
- Twilio account.
- Create
.env
file based on.env.example
. - Start a container or run as a standalone.
- Create a Contact Point in Grafana Alerting.
version: '3.5'
services:
sms:
image: ghcr.io/volkovlabs/grafana-sms-webhook:latest
container_name: sms
env_file: .env
ports:
- 8080:3000
Run the command npm install
and npm run start
to start the server.
fetch('http://localhost:3000/sendsms?number=1234567890,12223334455', {
method: 'POST',
headers: {
authorization: '[apiKey]'
},
body: JSON.stringify({
message: 'Your message'
})
}).then((response) => response.text())
.then((body) => {
console.log(body);
})
.catch((error) => {
console.error('error in execution', error);
})
LOG_LEVEL
config is set in .env
file. All possible values are described in Winston Logging Levels
We're looking forward to hearing from you. You can use different ways to get in touch with us.
- Ask a question, request a new feature, and file a bug with GitHub issues.
- Subscribe to our YouTube Channel and add a comment.
- Sponsor our open-source plugins for Grafana at GitHub Sponsor.
- Support our project by starring the repository.
Apache License Version 2.0, see LICENSE.