Grafana OnCall engine fork — self-hosted on-call scheduler and alert router
Find a file
Michael Derynck 3582f9b08f
Improve Jinja Template feedback and error handling (#884)
* Improve feedback so template errors are given to user

* Add security error logging

* Add limits for templates, payloads, results

* Show popup error notification for webhook errors and template errors that don't have a result

* Update tests

* Split exceptions into warnings/errors to give more control when previewing, rendering, saving templates

* Limit title lengths

* Make TypeError a warning

* Adjust title length limit

* Remove length limiting on urlize since it is being done on template render

* Fix tests

* Add KeyError and ValueError to warnings

* No longer enforcing json result when saving webhook in case it is dependent on payload

* Add tests for expected exceptions coming from apply_jinja_template

* Update changelog

* Send raw post if template result is not JSON
2022-11-28 09:46:51 -07:00
.github Add new ci pipeline: helm chart end to end testing (#855) 2022-11-21 16:10:25 +01:00
dev Create generic Make command to run Django manage.py (#886) 2022-11-22 22:15:22 +01:00
docs One startup command to rule them all (#760) 2022-11-07 16:34:43 +01:00
engine Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
examples/terraform Terraform examples 2022-08-11 14:32:39 +05:00
grafana-plugin Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
helm Merge pull request #883 from grafana/dev 2022-11-22 18:36:17 +00:00
tools PD migrator: add support for email notifications (#839) 2022-11-11 13:40:43 +00:00
.drone.yml Update .drone.yml signature 2022-11-09 14:53:35 -03:00
.gitignore enterprise dev changes + few other small changes (#802) 2022-11-09 07:21:33 +01:00
.nvmrc One startup command to rule them all (#760) 2022-11-07 16:34:43 +01:00
.pre-commit-config.yaml [UI] fix eslint/prettier warnings (#678) 2022-10-24 20:27:03 +08:00
CHANGELOG.md Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
CODE_OF_CONDUCT.md Updated GOVERNANCE, added Code Of Conduct 2022-06-06 21:54:15 +03:00
docker-compose-developer.yml remove hostess tool + add extra_hosts entry to oncall backend containers 2022-11-23 19:31:26 +01:00
docker-compose-mysql-rabbitmq.yml Get rid of installation token + add a bunch of tests (#624) 2022-11-21 16:26:00 +01:00
docker-compose.yml Get rid of installation token + add a bunch of tests (#624) 2022-11-21 16:26:00 +01:00
GOVERNANCE.md Minor README and GOVERNANCE updates 2022-06-13 17:31:32 -03:00
LICENSE World, meet OnCall! 2022-06-03 08:09:47 -06:00
LICENSING.md Making LICENSING.md more explicit 2022-06-03 16:21:26 +02:00
MAINTAINERS.md Update maintainers.md 2022-06-22 15:04:21 -07:00
Makefile remove hostess tool + add extra_hosts entry to oncall backend containers 2022-11-23 19:31:26 +01:00
README.md Get rid of installation token + add a bunch of tests (#624) 2022-11-21 16:26:00 +01:00
screenshot.png Merge dev to main (#54) 2022-06-13 16:39:58 -06:00
SECURITY.md World, meet OnCall! 2022-06-03 08:09:47 -06:00

Latest Release License Docker Pulls Slack Discussion Build Status

Developer-friendly incident response with brilliant Slack integration.

  • Collect and analyze alerts from multiple monitoring systems
  • On-call rotations based on schedules
  • Automatic escalations
  • Phone calls, SMS, Slack, Telegram notifications

Getting Started

We prepared multiple environments:

  1. Download docker-compose.yml:
curl -fsSL https://raw.githubusercontent.com/grafana/oncall/dev/docker-compose.yml -o docker-compose.yml
  1. Set variables:
echo "DOMAIN=http://localhost:8080
COMPOSE_PROFILES=with_grafana  # Remove this line if you want to use existing grafana
SECRET_KEY=my_random_secret_must_be_more_than_32_characters_long" > .env
  1. Launch services:
docker-compose up -d
  1. Go to OnCall Plugin Configuration, using log in credentials as defined above: admin/admin (or find OnCall plugin in configuration->plugins) and connect OnCall plugin with OnCall backend:
OnCall backend URL: http://engine:8080
  1. Enjoy! Check our OSS docs if you want to set up Slack, Telegram, Twilio or SMS/calls through Grafana Cloud.

Update version

To update your Grafana OnCall hobby environment:

# Update Docker image
docker-compose pull engine

# Re-deploy
docker-compose up -d

After updating the engine, you'll also need to click the "Update" button on the plugin version page. See Grafana docs for more info on updating Grafana plugins.

Join community

Stargazers over time

Stargazers over time

Further Reading