Grafana OnCall engine fork — self-hosted on-call scheduler and alert router
Find a file
Joey Orlando 63e91f896b
[RBAC] - minor UI bug fixes (#1185)
# What this PR does

- remove hardcoded references to "Admin" and "Editor". Instead, use the
`determineRequiredAuthString` and `generateMissingPermissionMessage`
methods from `utils/authorization` which conditionally show the
permission or role depending on whether RBAC is enabled or not
- fix bug on list users page that always showed "Loading...".
![Screenshot 2023-01-21 at 09 29
35](https://user-images.githubusercontent.com/9406895/213859785-e9852838-5671-4275-aaed-4df75446ab6a.png)
- only show users the user's table if they are allowed, otherwise show
them this
  - RBAC enabled
![Screenshot 2023-01-26 at 09 09
57](https://user-images.githubusercontent.com/9406895/214786723-3389ce9c-7353-4216-9176-6547f2076660.png)
  - RBAC disabled
![Screenshot 2023-01-26 at 09 05
30](https://user-images.githubusercontent.com/9406895/214786739-eb9ee108-e79c-4105-912a-8bb5bf03cb32.png)
- `Schedules Editor` role minor issue
- Viewers are not allowed to list users by default, so granting schedule
edit permission to them won’t allow them to see who rotations are
assigned to or assign a rotation to a user. To make this a more
straightforward user experience, instead of saying "No options found",
we will tell the user that they are missing a particular role/permission
to view these users:
    Before:
![Screenshot 2023-01-23 at 09 52
28](https://user-images.githubusercontent.com/9406895/213999896-d889540e-2835-4133-965a-306923a3e33b.png)
    After:
![Screenshot 2023-01-26 at 12 39
30](https://user-images.githubusercontent.com/9406895/214827179-d127002f-793e-4ab7-ad75-dfab653b7d7d.png)


## Which issue(s) this PR fixes

- closes #971 

## Checklist

- [x] Tests updated
- [ ] Documentation added (N/A)
- [x] `CHANGELOG.md` updated
2023-01-30 11:23:02 +01:00
.github Fix typo in snyk workflow file name (#1225) 2023-01-26 11:44:06 +01:00
dev fake-data generation script + fixes for django-silk and django-debug-toolbar (#1128) 2023-01-20 09:19:41 +01:00
docs Fix format issues introduced by markdown linter (#1223) 2023-01-26 13:59:48 +00:00
engine Cache render_for_web field for alertgroups list serializer (#1236) 2023-01-28 12:50:41 +08:00
examples/terraform Terraform examples 2022-08-11 14:32:39 +05:00
grafana-plugin [RBAC] - minor UI bug fixes (#1185) 2023-01-30 11:23:02 +01:00
helm lint 2023-01-12 18:37:14 +00:00
tools Fix "existing schedule will be deleted" message for PD migrator (#1076) 2023-01-04 17:36:15 +00:00
.drone.yml Add check for MANIFEST.txt after signing (#1198) 2023-01-24 07:51:37 +01:00
.gitignore enterprise dev changes + few other small changes (#802) 2022-11-09 07:21:33 +01:00
.markdownlint.json add precommit rules for markdown/json files (#915) 2022-12-01 14:26:54 +01:00
.markdownlintignore Add tracing support 2022-12-19 17:15:06 +08:00
.nvmrc One startup command to rule them all (#760) 2022-11-07 16:34:43 +01:00
.pre-commit-config.yaml Fix markdown formatting in docs (#1202) 2023-01-24 10:58:38 +01:00
CHANGELOG.md [RBAC] - minor UI bug fixes (#1185) 2023-01-30 11:23:02 +01:00
CODE_OF_CONDUCT.md add precommit rules for markdown/json files (#915) 2022-12-01 14:26:54 +01:00
docker-compose-developer.yml Move silk profiler under env variable setting (#1175) 2023-01-20 18:19:31 +08: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 add precommit rules for markdown/json files (#915) 2022-12-01 14:26:54 +01:00
LICENSE World, meet OnCall! 2022-06-03 08:09:47 -06:00
LICENSING.md add precommit rules for markdown/json files (#915) 2022-12-01 14:26:54 +01:00
MAINTAINERS.md add precommit rules for markdown/json files (#915) 2022-12-01 14:26:54 +01:00
Makefile modify push notification settings + use fcm-django library (#998) 2022-12-20 12:41:34 +01:00
README.md Revert "testing branch merge strategy" 2023-01-05 12:46:55 +01:00
screenshot.png Merge dev to main (#54) 2022-06-13 16:39:58 -06:00
SECURITY.md add precommit rules for markdown/json files (#915) 2022-12-01 14:26:54 +01:00

Grafana OnCall

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
    
  2. 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
    
  3. Launch services:

    docker-compose pull && docker-compose up -d
    
  4. 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
    
  5. 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