[Feature][Plugin] Add Grafana IRM Integration
- Vorherrschende Sprache
- Go
- Sterne
- 3.1k
- Forks
- 808
- Ø Merge
- 1 T. 18 Std.
- Gemergte PRs (30 T.)
- 50
Beschreibung
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar feature requirement.
### Use case
Teams using Grafana Cloud IRM should be able to ingest its data into Apache DevLake and analyze it alongside data from other DevOps tools.
For example, incidents managed in Grafana IRM could be correlated with deployment data and used to calculate DORA metrics such as:
- Change Failure Rate
- Failed Deployment Recovery Time / MTTR
### Description
I propose adding a `grafana_irm` data source plugin to support Grafana Cloud IRM.
Grafana IRM provides multiple capabilities, including Incident and OnCall, with APIs for programmatic access:
- [Grafana IRM Incident API](https://grafana.com/docs/grafana-cloud/alerting-and-irm/irm/reference/incident-api/)
- [Grafana IRM OnCall API](https://grafana.com/docs/grafana-cloud/alerting-and-irm/irm/reference/oncall-api/)
For example, Grafana IRM Incident data could be mapped to DevLake's domain models as follows:
- Grafana IRM Incident → DevLake Issue (`type = INCIDENT`)
- Incident status → Issue status / original status
- Incident severity → Issue severity / priority
- Incident declared time → Issue created date
- Incident resolved time → Issue resolution date
- Incident roles/members → Issue assignees, where applicable
This could allow Grafana IRM incidents to be correlated with deployment data through DevLake's existing DORA incident-to-deployment correlation.
Before proceeding with the implementation, I would like to confirm whether this overall direction is appropriate, particularly regarding:
- which Grafana IRM APIs and entities should be supported
- the scope of data to be collected
- the synchronization strategy
### Related issues
No related issue found.
### Are you willing to submit a PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginnen Sie mit der verknüpften Dokumentation zur Grafana IRM Incident API und OnCall API und vergleichen Sie anschließend deren verfügbare Entitäten mit den bestehenden Mustern für Datenquellen-Plugins in DevLake. Der Issue kann weiterverfolgt werden, sobald die Maintainer sich auf die unterstützten APIs und Entitäten, den erfassten Umfang und die Synchronisierungsstrategie geeinigt haben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go, grafana
- Bereich
- backend-api-design, data-engineering
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Aktiv
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100