TP-55036 | Added alert for Krakatoa workflow failures while fetching grafana images and csv file (#356)

* TP-38709 | Merging the changes to master on the logfix

* TP-55036 | Added alert for krakatoa failures if there are grafana errors or csv errors

* TP-55036 | Fixed unit tests
This commit is contained in:
Ajay Devarakonda
2024-01-23 19:02:47 +05:30
committed by GitHub
parent 45fce5521f
commit 0b9fca2b2f
8 changed files with 91 additions and 39 deletions

View File

@@ -3,10 +3,11 @@ package ingester
type MetricType string
const (
ApiMetrics MetricType = "API_METRICS"
SlackMetrics MetricType = "SLACK_METRICS"
RCAGenerationFailureMetrics MetricType = "RCA_GENERATION_FAILURE_METRICS"
ConferenceFailureMetrics MetricType = "CONFERENCE_FAILURE_METRICS"
ApiMetrics MetricType = "API_METRICS"
SlackMetrics MetricType = "SLACK_METRICS"
RCAGenerationFailureMetrics MetricType = "RCA_GENERATION_FAILURE_METRICS"
KrakatoaWorkflowFailureMetrics MetricType = "KRAKATOA_WORKFLOW_FAILURE_METRICS"
ConferenceFailureMetrics MetricType = "CONFERENCE_FAILURE_METRICS"
)
type ApiMetric struct {
@@ -32,6 +33,11 @@ type RCAGenerationFailureMetric struct {
RCAGenerationError string `json:"rca_generation_error,omitempty"`
}
type KrakatoaWorkflowFailureMetric struct {
IncidentId uint `json:"incident_id,omitempty"`
KrakatoaWorkflowError string `json:"krakatoa_workflow_error,omitempty"`
}
type ConferenceFailureMetric struct {
Event string `json:"event,omitempty"`
ConferenceError string `json:"conference_error,omitempty"`
@@ -41,5 +47,6 @@ type MetricAttributes struct {
ApiMetric
SlackMetric
RCAGenerationFailureMetric
KrakatoaWorkflowFailureMetric
ConferenceFailureMetric
}