diff --git a/nixos/modules/monitoring/server/grafana-config/services-overview.json b/nixos/modules/monitoring/server/grafana-config/payments.json similarity index 95% rename from nixos/modules/monitoring/server/grafana-config/services-overview.json rename to nixos/modules/monitoring/server/grafana-config/payments.json index 1af20e88681e1e75a8063b8f9ec62e2ff2eea8af..1e1cc514fc51e0d65c1fd29a94fad4b4a5d6a5e5 100644 --- a/nixos/modules/monitoring/server/grafana-config/services-overview.json +++ b/nixos/modules/monitoring/server/grafana-config/payments.json @@ -12,7 +12,7 @@ } ] }, - "description": "RED: Requests-Errors-Duration for our services", + "description": "PaymentServer and related metrics", "editable": true, "gnetId": null, "graphTooltip": 0, @@ -33,7 +33,10 @@ "type": "row" }, { - "aliasColors": {}, + "aliasColors": { + "Attempts": "yellow", + "Successes": "green" + }, "bars": false, "dashLength": 10, "dashes": false, @@ -78,13 +81,6 @@ "stack": false, "steppedLine": false, "targets": [ - { - "exemplar": true, - "expr": "processors_stripe_charge_successes", - "interval": "", - "legendFormat": "Successes", - "refId": "A" - }, { "exemplar": true, "expr": "processors_stripe_charge_attempts", @@ -92,13 +88,20 @@ "interval": "", "legendFormat": "Attempts", "refId": "B" + }, + { + "exemplar": true, + "expr": "processors_stripe_charge_successes", + "interval": "", + "legendFormat": "Successes", + "refId": "C" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Stripe charges", + "title": "Stripe", "tooltip": { "shared": true, "sort": 0, @@ -138,7 +141,9 @@ } }, { - "aliasColors": {}, + "aliasColors": { + "Redeemed vouchers": "yellow" + }, "bars": false, "dashLength": 10, "dashes": false, @@ -178,7 +183,18 @@ "pointradius": 2, "points": false, "renderer": "flot", - "seriesOverrides": [], + "seriesOverrides": [ + { + "$$hashKey": "object:223", + "alias": "Redeemed vouchers", + "yaxis": 1 + }, + { + "$$hashKey": "object:230", + "alias": "Issued signatures", + "yaxis": 2 + } + ], "spaceLength": 10, "stack": false, "steppedLine": false, @@ -193,6 +209,7 @@ { "exemplar": true, "expr": "redemption_voucher_redeemed", + "format": "time_series", "hide": false, "interval": "", "legendFormat": "Redeemed vouchers", @@ -221,10 +238,10 @@ { "$$hashKey": "object:285", "format": "short", - "label": null, + "label": "", "logBase": 1, "max": null, - "min": null, + "min": "0", "show": true }, { @@ -234,8 +251,8 @@ "label": "", "logBase": 1, "max": null, - "min": null, - "show": false + "min": "0", + "show": true } ], "yaxis": { @@ -254,7 +271,7 @@ }, "id": 18, "panels": [], - "title": "Payments HTTP v1/stripe/charge", + "title": "HTTP v1/stripe/charge", "type": "row" }, { @@ -464,7 +481,12 @@ } }, { - "aliasColors": {}, + "aliasColors": { + "=< 0.1s": "blue", + "=< 1s": "green", + "=< 5s": "yellow", + "> 5s": "orange" + }, "bars": false, "cacheTimeout": null, "dashLength": 10, @@ -543,7 +565,7 @@ "instant": false, "interval": "", "intervalFactor": 1, - "legendFormat": "=< 1s", + "legendFormat": "=< 5s", "refId": "B" }, { @@ -583,7 +605,7 @@ "label": null, "logBase": 1, "max": null, - "min": null, + "min": "0", "show": true }, { @@ -612,7 +634,7 @@ }, "id": 11, "panels": [], - "title": "Payments HTTP v1/redeem", + "title": "HTTP v1/redeem", "type": "row" }, { @@ -816,7 +838,12 @@ } }, { - "aliasColors": {}, + "aliasColors": { + "=< 0.1s": "blue", + "=< 1s": "green", + "=< 5s": "yellow", + "> 5s": "orange" + }, "bars": false, "cacheTimeout": null, "dashLength": 10, @@ -935,7 +962,7 @@ "label": null, "logBase": 1, "max": null, - "min": null, + "min": "0", "show": true }, { @@ -954,7 +981,7 @@ } } ], - "refresh": "", + "refresh": "5m", "schemaVersion": 27, "style": "dark", "tags": [], @@ -962,7 +989,7 @@ "list": [] }, "time": { - "from": "now-7d", + "from": "now-3h", "to": "now" }, "timepicker": { @@ -980,7 +1007,7 @@ ] }, "timezone": "", - "title": "Services overview", - "uid": "ServicesOverview", + "title": "Payments", + "uid": "Payments", "version": 1 }