Skip to content

Commit

Permalink
feat: Add default status message to the self-monitor conditions (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakesh-garimella authored Mar 18, 2024
1 parent b887d09 commit 4eb82e2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions internal/conditions/conditions.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ var MetricsMessage = map[string]string{
ReasonDaemonSetNotReady: "Metric agent DaemonSet is not ready",
ReasonDaemonSetReady: "Metric agent DaemonSet is ready",
ReasonMetricComponentsRunning: "All metric components are running",
ReasonAllDataDropped: "All metrics dropped: backend unreachable or rejecting",
ReasonSomeDataDropped: "Some metrics dropped: backend unreachable or rejecting",
ReasonBufferFillingUp: "Buffer nearing capacity: incoming metric rate exceeds export rate",
ReasonGatewayThrottling: "Metric gateway experiencing high influx: Unable to receive metrics at current rate",
ReasonFlowHealthy: "Metrics are flowing normally to backend",
}

var TracesMessage = map[string]string{
Expand All @@ -79,6 +84,11 @@ var TracesMessage = map[string]string{
ReasonTraceGatewayDeploymentNotReady: "Trace gateway Deployment is not ready",
ReasonTraceGatewayDeploymentReady: "Trace gateway Deployment is ready",
ReasonTraceComponentsRunning: "All trace components are running",
ReasonAllDataDropped: "All traces dropped: backend unreachable or rejecting",
ReasonSomeDataDropped: "Some traces dropped: backend unreachable or rejecting",
ReasonBufferFillingUp: "Buffer nearing capacity: incoming trace rate exceeds export rate",
ReasonGatewayThrottling: "Trace collector experiencing high influx: Unable to receive metrics at current rate",
ReasonFlowHealthy: "Traces are flowing normally to backend",
}

var LogsMessage = map[string]string{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func TestMetricComponentsCheck(t *testing.T) {
Type: "MetricComponentsHealthy",
Status: "False",
Reason: "GatewayThrottling",
Message: "",
Message: "Metric gateway experiencing high influx: Unable to receive metrics at current rate",
},
},
{
Expand All @@ -214,7 +214,7 @@ func TestMetricComponentsCheck(t *testing.T) {
Type: "MetricComponentsHealthy",
Status: "False",
Reason: "GatewayThrottling",
Message: "",
Message: "Metric gateway experiencing high influx: Unable to receive metrics at current rate",
},
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func TestTraceComponentsCheck(t *testing.T) {
Type: "TraceComponentsHealthy",
Status: "False",
Reason: "GatewayThrottling",
Message: "",
Message: "Trace collector experiencing high influx: Unable to receive metrics at current rate",
},
},
}
Expand Down

0 comments on commit 4eb82e2

Please sign in to comment.