Skip to content

Web api to hook Grafana alerts and create trouble tickets from them

Notifications You must be signed in to change notification settings

tipalol/GrafanaAlerts

Repository files navigation

GrafanaAlerts

.NET

Docker Image CI

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
  1. Create new WebHook notification channel in Grafana with url - "dockerContainerUrl/api/trigger"

  2. 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"
  1. Settings located inside "AppData/Configs/config.json" such as: TicketSystemHost, SoapTemplateRequestsLocation and etc.

  2. Every alert in this channel will trigger method TriggerAlert which does parsing, complementing and registering of new trouble ticket in the system

About

Web api to hook Grafana alerts and create trouble tickets from them

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published