grafana: fix apiary dashboard panels empty on short time ranges
Some checks failed
Run nix flake check / flake-check (push) Failing after 3m54s
Some checks failed
Run nix flake check / flake-check (push) Failing after 3m54s
Set interval=60s on rate() panels to match the actual Prometheus scrape interval, so Grafana calculates $__rate_interval correctly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -151,6 +151,7 @@
|
|||||||
"type": "timeseries",
|
"type": "timeseries",
|
||||||
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 4},
|
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 4},
|
||||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||||
|
"interval": "60s",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "rate(oubliette_ssh_connections_total{job=\"apiary\"}[$__rate_interval])",
|
"expr": "rate(oubliette_ssh_connections_total{job=\"apiary\"}[$__rate_interval])",
|
||||||
@@ -183,6 +184,7 @@
|
|||||||
"type": "timeseries",
|
"type": "timeseries",
|
||||||
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 4},
|
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 4},
|
||||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||||
|
"interval": "60s",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "rate(oubliette_auth_attempts_total{job=\"apiary\"}[$__rate_interval])",
|
"expr": "rate(oubliette_auth_attempts_total{job=\"apiary\"}[$__rate_interval])",
|
||||||
@@ -215,6 +217,7 @@
|
|||||||
"type": "timeseries",
|
"type": "timeseries",
|
||||||
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 22},
|
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 22},
|
||||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||||
|
"interval": "60s",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "rate(oubliette_sessions_total{job=\"apiary\"}[$__rate_interval])",
|
"expr": "rate(oubliette_sessions_total{job=\"apiary\"}[$__rate_interval])",
|
||||||
@@ -316,6 +319,7 @@
|
|||||||
"type": "heatmap",
|
"type": "heatmap",
|
||||||
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 30},
|
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 30},
|
||||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||||
|
"interval": "60s",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "rate(oubliette_session_duration_seconds_bucket{job=\"apiary\"}[$__rate_interval])",
|
"expr": "rate(oubliette_session_duration_seconds_bucket{job=\"apiary\"}[$__rate_interval])",
|
||||||
@@ -356,6 +360,7 @@
|
|||||||
"type": "timeseries",
|
"type": "timeseries",
|
||||||
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 22},
|
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 22},
|
||||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||||
|
"interval": "60s",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "rate(oubliette_commands_executed_total{job=\"apiary\"}[$__rate_interval])",
|
"expr": "rate(oubliette_commands_executed_total{job=\"apiary\"}[$__rate_interval])",
|
||||||
|
|||||||
Reference in New Issue
Block a user