fix: rename Component Latency to Pipeline Latency and improve alert messages#93
Merged
TerrifiedBug merged 1 commit intomainfrom Mar 11, 2026
Merged
Conversation
…essages Rename "Component Latency" to "Pipeline Latency" across dashboard, pipeline metrics page, and metrics chart. Fix alert messages to be human-readable: binary metrics (pipeline_crashed, node_unreachable) now show just the event and pipeline name instead of "is 1.00 (threshold: = 1)". Numeric metrics include the pipeline name as a prefix.
Contributor
Greptile SummaryThis PR makes two focused improvements: it consistently renames "Component Latency" to "Pipeline Latency" across all three dashboard views, and it overhauls
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["evaluateAlerts(nodeId, environmentId)"] --> B["Load AlertRules\n(include pipeline.name)"]
B --> C{rule.condition\nor threshold null?}
C -- yes --> D["skip (event-based rule)"]
C -- no --> E["readMetricValue()"]
E --> F{conditionMet?}
F -- no --> G["resolve open AlertEvent\nif exists"]
F -- yes --> H{durationSeconds\nelapsed?}
H -- no --> I["wait — condition not\nyet sustained"]
H -- yes --> J{existingEvent\nalready firing?}
J -- yes --> K["no-op (deduplicated)"]
J -- no --> L["buildMessage(rule, value, pipeline?.name)"]
L --> M{rule.condition\nor threshold null?}
M -- yes --> N["metricLabel: pipelineName\nor metricLabel"]
M -- no --> O{BINARY_METRICS?}
O -- yes --> P["e.g. 'Pipeline crashed: my-pipeline'"]
O -- no --> Q["e.g. 'my-pipeline — CPU usage at 87.50 (threshold: > 80)'"]
P --> R["prisma.alertEvent.create"]
Q --> R
N --> R
R --> S["results.push(event, rule)"]
Last reviewed commit: 3a61dbe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pipeline_crashed) to show the pipeline name instead of useless numeric details like "is 1.00 (threshold: = 1)"Test plan