Skip to content

Commit

Permalink
Fix streaks graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Newton committed Mar 28, 2024
1 parent 80f509f commit 043c755
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions deployment/stats/prometheus/flytepropeller-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
"instant": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "other_total",
"legendFormat": "total_streaks",
"metric": "",
"query": "sum(rate(flyte:propeller:all:round:round_time_unlabeled_ms_count[5m]))",
"refId": "D",
Expand Down Expand Up @@ -694,15 +694,15 @@
"targets": [
{
"datasource": null,
"expr": "avg(flyte:propeller:all:round:streak_length_unlabeled)",
"expr": "sum(rate(flyte:propeller:all:round:streak_length_unlabeled[5m]))",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "",
"metric": "",
"query": "avg(flyte:propeller:all:round:streak_length_unlabeled)",
"query": "sum(rate(flyte:propeller:all:round:streak_length_unlabeled[5m]))",
"refId": "A",
"step": 10,
"target": ""
Expand All @@ -711,7 +711,7 @@
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "Avg streak length",
"title": "Streak rate",
"tooltip": {
"msResolution": true,
"shared": true,
Expand Down Expand Up @@ -1298,7 +1298,7 @@
"yaxes": [
{
"decimals": null,
"format": "ops",
"format": "none",
"label": null,
"logBase": 1,
"max": null,
Expand Down Expand Up @@ -1406,7 +1406,7 @@
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "Enqueued Workflows",
"title": "Workflow enqueue rate",
"tooltip": {
"msResolution": true,
"shared": true,
Expand Down
8 changes: 4 additions & 4 deletions stats/flytepropeller.dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ def error_breakdown() -> Graph:
)

@staticmethod
def streak_length() -> Graph:
def streak_rate() -> Graph:
return Graph(
title="Avg streak length",
title="Streak rate",
dataSource=DATASOURCE,
targets=[
Target(
expr="avg(flyte:propeller:all:round:streak_length_unlabeled)",
expr="sum(rate(flyte:propeller:all:round:streak_length_unlabeled[5m]))",
refId="A",
),
],
Expand Down Expand Up @@ -824,7 +824,7 @@ def core_metrics(interval: int, collapse: bool) -> Row:
FlytePropeller.round_rates(),
FlytePropeller.error_breakdown(),
FlytePropeller.skipped_rounds(),
FlytePropeller.streak_length(),
FlytePropeller.streak_rate(),
FlytePropeller.plugin_success_vs_failures(),
FlytePropeller.round_latency(),
FlytePropeller.round_latency_per_wf(),
Expand Down

0 comments on commit 043c755

Please sign in to comment.