--- kind: ConfigMap apiVersion: v1 metadata: name: grafana-dashboard-reversewords data: reversewords-dashboard.json: |- { "annotations": { "list": [ ] }, "editable": true, "description": "Reverse Words APP Sample Dashboard with Prometheus", "gnetId": null, "graphTooltip": 0, "id": 1, "iteration": 1562932484993, "links": [], "panels": [ { "cacheTimeout": null, "datasource": "thanos-querier", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, "id": 2, "links": [], "options": { "displayMode": "gradient", "fieldOptions": { "calcs": [ "last" ], "defaults": { "max": 100, "min": 0, "title": "" }, "mappings": [ { "from": "", "id": 1, "operator": "", "text": "", "to": "", "type": 1, "value": "" } ], "override": {}, "thresholds": [ { "color": "green", "index": 0, "value": null }, { "color": "semi-dark-green", "index": 1, "value": 50 }, { "color": "dark-green", "index": 2, "value": 75 } ], "values": false }, "orientation": "horizontal" }, "targets": [ { "expr": "sum(total_reversed_words{ocp_cluster=~\"$cluster\"}) by (ocp_cluster)", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "{{ocp_cluster}}", "refId": "A" } ], "timeFrom": null, "timeShift": null, "title": "Reversed Words by Cluster", "type": "bargauge" }, { "cacheTimeout": null, "datasource": "thanos-querier", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, "id": 5, "links": [], "options": { "displayMode": "gradient", "fieldOptions": { "calcs": [ "last" ], "defaults": { "max": 100, "min": 0 }, "mappings": [], "override": {}, "thresholds": [ { "color": "green", "index": 0, "value": null }, { "color": "semi-dark-green", "index": 1, "value": 50 }, { "color": "dark-green", "index": 2, "value": 75 } ], "values": false }, "orientation": "horizontal" }, "targets": [ { "expr": "sum(endpoints_accessed{ocp_cluster=~\"$cluster\"}) by (ocp_cluster,accessed_endpoint)", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "Cluster: {{ocp_cluster}} Endpoint: {{accessed_endpoint}}", "refId": "A" } ], "timeFrom": null, "timeShift": null, "title": "Endpoints Accesed by Cluster", "type": "bargauge" }, { "cacheTimeout": null, "colorBackground": false, "colorValue": false, "colors": [ "#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a" ], "datasource": "thanos-querier", "format": "none", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, "id": 4, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "100%", "rangeMaps": [ { "from": "null", "text": "N/A", "to": "null" } ], "sparkline": { "fillColor": "rgba(31, 118, 189, 0.18)", "full": false, "lineColor": "rgb(31, 120, 193)", "show": false }, "tableColumn": "", "targets": [ { "expr": "sum(total_reversed_words)", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], "thresholds": "", "timeFrom": null, "timeShift": null, "title": "Total Reversed Words", "type": "singlestat", "valueFontSize": "200%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "current" } ], "refresh": false, "schemaVersion": 18, "style": "dark", "tags": [], "templating": { "list": [ { "allValue": null, "current": { "tags": [], "text": "west2 + east1", "value": [ "west2", "east1" ] }, "datasource": "thanos-querier", "definition": "label_values(total_reversed_words,ocp_cluster)", "hide": 0, "includeAll": false, "label": "", "multi": true, "name": "cluster", "options": [ { "selected": true, "text": "west2", "value": "west2" }, { "selected": true, "text": "east1", "value": "east1" } ], "query": "label_values(total_reversed_words,ocp_cluster)", "refresh": 0, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "browser", "title": "Reverse Words APP", "version": 10 }