Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/volkovlabs/grafana-sms-webhook
Twilio SMS Webhook for @grafana
https://github.com/volkovlabs/grafana-sms-webhook
alerting grafana twilio twilio-sms-api webhook
Last synced: about 1 month ago
JSON representation
Twilio SMS Webhook for @grafana
- Host: GitHub
- URL: https://github.com/volkovlabs/grafana-sms-webhook
- Owner: VolkovLabs
- License: apache-2.0
- Created: 2024-01-15T04:39:27.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-20T14:55:11.000Z (8 months ago)
- Last Synced: 2024-05-21T12:51:24.554Z (8 months ago)
- Topics: alerting, grafana, twilio, twilio-sms-api, webhook
- Language: TypeScript
- Homepage: https://volkovlabs.io
- Size: 122 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# SMS Alert Channel Notifications for Grafana
## Requirements
- Docker, Docker Compose or Node v18 for host installation.
- Twilio account.## Getting Started
1. Create `.env` file based on `.env.example`.
2. Start a container or run as a standalone.
3. Create a Contact Point in Grafana Alerting.![Contact Point](https://github.com/VolkovLabs/grafana-sms-webhook/raw/main/img/contact.png)
## Docker Compose
```
version: '3.5'services:
sms:
image: ghcr.io/volkovlabs/grafana-sms-webhook:latest
container_name: sms
env_file: .env
ports:
- 8080:3000
```## Run as standalone
Run the command `npm install` and `npm run start` to start the server.
## REST API
```
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);
})
```## Logging
`LOG_LEVEL` config is set in `.env` file. All possible values are described in [Winston Logging Levels](https://github.com/winstonjs/winston?tab=readme-ov-file#logging-levels)## Feedback
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](https://github.com/volkovlabs/grafana-sms-webhook/issues/new/choose).
- Subscribe to our [YouTube Channel](https://www.youtube.com/@volkovlabs) and add a comment.
- Sponsor our open-source plugins for Grafana at [GitHub Sponsor](https://github.com/sponsors/VolkovLabs).
- Support our project by starring the repository.## License
Apache License Version 2.0, see [LICENSE](https://github.com/volkovlabs/grafana-sms-webhook/blob/main/LICENSE).