Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tipalol/grafanaalerts
Web api to hook Grafana alerts and create trouble tickets from them
https://github.com/tipalol/grafanaalerts
api csharp docker dotnet grafana opentelemetry serilog
Last synced: about 1 month ago
JSON representation
Web api to hook Grafana alerts and create trouble tickets from them
- Host: GitHub
- URL: https://github.com/tipalol/grafanaalerts
- Owner: tipalol
- Created: 2021-10-11T15:41:09.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-13T09:17:30.000Z (about 3 years ago)
- Last Synced: 2024-10-15T03:07:10.275Z (3 months ago)
- Topics: api, csharp, docker, dotnet, grafana, opentelemetry, serilog
- Language: C#
- Homepage:
- Size: 5.05 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GrafanaAlerts
[![.NET](https://github.com/tipalol/GrafanaAlerts/actions/workflows/dotnet.yml/badge.svg)](https://github.com/tipalol/GrafanaAlerts/actions/workflows/dotnet.yml)
[![Docker Image CI](https://github.com/tipalol/GrafanaAlerts/actions/workflows/docker-image.yml/badge.svg)](https://github.com/tipalol/GrafanaAlerts/actions/workflows/docker-image.yml)
Web api to hook Grafana alerts and create trouble tickets from them
## Use
1. Build and run Docker image```
docker build -t aspnetapp .docker run -d -p 8080:80 --name GrafanaAlerts aspnetapp
```2. Create new WebHook notification channel in Grafana with url - "dockerContainerUrl/api/trigger"
3. What information must alert contain:
* Ticket name - from Alert name
* Ticket description - from Alert message
* Ticket role - from Alert tag "role"
* Ticket priority - from Alert tag "priority"
* Ticket ke - from Alert tag "ke"
* Ticket initiatorType - from Alert tag "initiatorType"
* Ticket initiatorRole - from Alert tag "initiatorRole"4. Settings located inside "AppData/Configs/config.json" such as: TicketSystemHost, SoapTemplateRequestsLocation and etc.
5. Every alert in this channel will trigger method TriggerAlert which does parsing, complementing and registering of new trouble ticket in the system