diff --git a/docs/guides/monitoring.md b/docs/guides/monitoring.md index b8bc2558..bc78b72c 100644 --- a/docs/guides/monitoring.md +++ b/docs/guides/monitoring.md @@ -74,9 +74,9 @@ gotk_reconcile_condition{kind, name, namespace, type="Ready", status="Deleted"} Time spent reconciling: ``` -gotk_reconcile_duration_bucket{kind, name, namespace, le} -gotk_reconcile_duration_sum{kind, name, namespace} -gotk_reconcile_duration_count{kind, name, namespace} +gotk_reconcile_duration_seconds_bucket{kind, name, namespace, le} +gotk_reconcile_duration_seconds_sum{kind, name, namespace} +gotk_reconcile_duration_seconds_count{kind, name, namespace} ``` Alert manager example: diff --git a/manifests/monitoring/grafana/dashboards/cluster.json b/manifests/monitoring/grafana/dashboards/cluster.json index fea9d9ee..4fbc7974 100644 --- a/manifests/monitoring/grafana/dashboards/cluster.json +++ b/manifests/monitoring/grafana/dashboards/cluster.json @@ -300,7 +300,7 @@ "pluginVersion": "7.2.1", "targets": [ { - "expr": " sum(rate(gotk_reconcile_duration_sum{namespace=~\"$namespace\",kind=~\"Kustomization|HelmRelease\"}[5m])) by (kind)\n/\n sum(rate(gotk_reconcile_duration_count{namespace=~\"$namespace\",kind=~\"Kustomization|HelmRelease\"}[5m])) by (kind)", + "expr": " sum(rate(gotk_reconcile_duration_seconds_sum{namespace=~\"$namespace\",kind=~\"Kustomization|HelmRelease\"}[5m])) by (kind)\n/\n sum(rate(gotk_reconcile_duration_seconds_count{namespace=~\"$namespace\",kind=~\"Kustomization|HelmRelease\"}[5m])) by (kind)", "interval": "", "legendFormat": "{{kind}}", "refId": "A" @@ -361,7 +361,7 @@ "pluginVersion": "7.2.1", "targets": [ { - "expr": " sum(rate(gotk_reconcile_duration_sum{namespace=~\"$namespace\",kind=~\"GitRepository|HelmRepository|Bucket\"}[5m])) by (kind)\n/\n sum(rate(gotk_reconcile_duration_count{namespace=~\"$namespace\",kind=~\"GitRepository|HelmRepository|Bucket\"}[5m])) by (kind)", + "expr": " sum(rate(gotk_reconcile_duration_seconds_sum{namespace=~\"$namespace\",kind=~\"GitRepository|HelmRepository|Bucket\"}[5m])) by (kind)\n/\n sum(rate(gotk_reconcile_duration_seconds_count{namespace=~\"$namespace\",kind=~\"GitRepository|HelmRepository|Bucket\"}[5m])) by (kind)", "interval": "", "legendFormat": "{{kind}}", "refId": "A" @@ -677,7 +677,7 @@ "steppedLine": false, "targets": [ { - "expr": " sum(rate(gotk_reconcile_duration_sum{namespace=~\"$namespace\",kind=~\"Kustomization|HelmRelease\"}[5m])) by (kind, name)\n/\n sum(rate(gotk_reconcile_duration_count{namespace=~\"$namespace\",kind=~\"Kustomization|HelmRelease\"}[5m])) by (kind, name)", + "expr": " sum(rate(gotk_reconcile_duration_seconds_sum{namespace=~\"$namespace\",kind=~\"Kustomization|HelmRelease\"}[5m])) by (kind, name)\n/\n sum(rate(gotk_reconcile_duration_seconds_count{namespace=~\"$namespace\",kind=~\"Kustomization|HelmRelease\"}[5m])) by (kind, name)", "hide": false, "interval": "", "legendFormat": "{{kind}}/{{name}}", @@ -778,7 +778,7 @@ "steppedLine": false, "targets": [ { - "expr": " sum(rate(gotk_reconcile_duration_sum{namespace=~\"$namespace\",kind=~\"GitRepository|HelmRepository|Bucket\"}[5m])) by (kind, name)\n/\n sum(rate(gotk_reconcile_duration_count{namespace=~\"$namespace\",kind=~\"GitRepository|HelmRepository|Bucket\"}[5m])) by (kind, name)", + "expr": " sum(rate(gotk_reconcile_duration_seconds_sum{namespace=~\"$namespace\",kind=~\"GitRepository|HelmRepository|Bucket\"}[5m])) by (kind, name)\n/\n sum(rate(gotk_reconcile_duration_seconds_count{namespace=~\"$namespace\",kind=~\"GitRepository|HelmRepository|Bucket\"}[5m])) by (kind, name)", "hide": false, "interval": "", "legendFormat": "{{kind}}/{{name}}", @@ -899,7 +899,7 @@ ] }, "timezone": "", - "title": "GitOps Toolkit Cluster Stats", - "uid": "gitops-toolkit-cluster", + "title": "Flux Cluster Stats", + "uid": "flux-cluster", "version": 1 }