Skip to content

Commit

Permalink
grafana: omit current day points on history chart
Browse files Browse the repository at this point in the history
The current day point that matters is already displayed in the "status"
chart, so it doesn't make sense to duplicate it on the "history" chart
as well. It may even be confusing.

Signed-off-by: Leonardo Graboski Veiga <[email protected]>
  • Loading branch information
leograba committed Jan 21, 2024
1 parent aae53cb commit ea4b133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TorizonOSBuildStatusGrafana/grafana-config/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
"type": "influxdb",
"uid": "influxdb_jenkins"
},
"query": "from(bucket: \"jenkinsdatabucket\")\n |> range(start: -30d)\n |> filter(fn: (r) => r[\"_measurement\"] == \"jenkinsbuild\" and r[\"_value\"] != \"\")\n |> aggregateWindow(every: 1d, fn: first)\n |> map(fn: (r) => ({_time: r._time, _field: r._field, _value: r._value}))\n",
"query": "import \"date\"\nfrom(bucket: \"jenkinsdatabucket\")\n |> range(start, stop: date.sub(from: today(), d: 5m))\n |> filter(fn: (r) => r[\"_measurement\"] == \"jenkinsbuild\" and r[\"_value\"] != \"\")\n |> aggregateWindow(every: 1d, fn: first)\n |> map(fn: (r) => ({_time: r._time, _field: r._field, _value: r._value}))\n",
"refId": "A"
}
],
Expand Down

0 comments on commit ea4b133

Please sign in to comment.