diff --git a/resources/grafana/generated/dashboards/rhacs-cluster-overview.yaml b/resources/grafana/generated/dashboards/rhacs-cluster-overview.yaml index f260378..a2fc2c9 100644 --- a/resources/grafana/generated/dashboards/rhacs-cluster-overview.yaml +++ b/resources/grafana/generated/dashboards/rhacs-cluster-overview.yaml @@ -68,185 +68,6 @@ spec: "x": 0, "y": 0 }, - "id": 149, - "panels": [], - "title": "Certificates Expiry", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Monitoring, tracking and managing of digital certificates expiration dates, by extracting timestamps from certificates and exposing metrics to Prometheus.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" - }, - "filterable": true, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 1 - }, - "id": 148, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "Expiration" - } - ] - }, - "pluginVersion": "11.1.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "disableTextWrap": false, - "editorMode": "builder", - "exemplar": true, - "expr": "acs_fleetshard_certificate_expiration_timestamp", - "format": "table", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "interval": "", - "legendFormat": "__auto", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Certificates Expiry", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Value": false, - "__name__": true, - "container": true, - "instance": true, - "job": true, - "namespace": true, - "pod": true, - "rhacs_cluster_name": true, - "rhacs_environment": true - }, - "includeByName": {}, - "indexByName": { - "Time": 4, - "Value": 12, - "__name__": 5, - "container": 6, - "data_key": 3, - "exported_namespace": 0, - "instance": 7, - "job": 8, - "namespace": 1, - "pod": 9, - "rhacs_cluster_name": 10, - "rhacs_environment": 11, - "secret": 2 - }, - "renameByName": { - "Time": "Expiration", - "Value": "", - "container": "", - "data_key": "Key", - "exported_namespace": "Namespace", - "secret": "Secret" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Expiration", - "binary": { - "left": "Value", - "operator": "*", - "right": "1000" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "time", - "targetField": "Expiration" - } - ], - "fields": {} - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Value": true - }, - "includeByName": {}, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "table" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 9 - }, "id": 14, "panels": [], "title": "Instances", @@ -317,7 +138,7 @@ spec: "h": 8, "w": 12, "x": 0, - "y": 10 + "y": 1 }, "id": 9, "options": { @@ -415,7 +236,7 @@ spec: "h": 8, "w": 12, "x": 12, - "y": 10 + "y": 1 }, "id": 17, "options": { @@ -513,7 +334,7 @@ spec: "h": 8, "w": 12, "x": 0, - "y": 18 + "y": 9 }, "id": 11, "options": { @@ -623,7 +444,7 @@ spec: "h": 8, "w": 12, "x": 12, - "y": 18 + "y": 9 }, "id": 10, "options": { @@ -720,7 +541,7 @@ spec: "h": 8, "w": 12, "x": 0, - "y": 26 + "y": 17 }, "id": 24, "options": { @@ -817,7 +638,7 @@ spec: "h": 8, "w": 12, "x": 12, - "y": 26 + "y": 17 }, "id": 25, "options": { @@ -850,19 +671,6 @@ spec: "title": "Secured Clusters", "type": "timeseries" }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 34 - }, - "id": 16, - "panels": [], - "title": "Resources", - "type": "row" - }, { "datasource": { "type": "prometheus", @@ -926,7 +734,7 @@ spec: "h": 8, "w": 12, "x": 0, - "y": 35 + "y": 25 }, "id": 4, "options": { @@ -959,6 +767,19 @@ spec: "title": "Network Received", "type": "timeseries" }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 33 + }, + "id": 16, + "panels": [], + "title": "Resources", + "type": "row" + }, { "datasource": { "type": "prometheus", @@ -1014,17 +835,17 @@ spec: } ] }, - "unit": "Bps" + "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, - "x": 12, - "y": 35 + "x": 0, + "y": 34 }, - "id": 5, + "id": 6, "options": { "legend": { "calcs": [], @@ -1034,7 +855,7 @@ spec: }, "tooltip": { "mode": "single", - "sort": "none" + "sort": "desc" } }, "pluginVersion": "9.1.0", @@ -1045,14 +866,15 @@ spec: "uid": "PBFA97CFB590B2093" }, "editorMode": "code", - "expr": "sum(rate(container_network_transmit_bytes_total{namespace=~\"rhacs-$instance_id\", job=~\"kubelet\"}[5m])) by (namespace)", + "expr": "sum(container_memory_working_set_bytes{namespace=~\"rhacs-$instance_id\", container=\"central\", job=~\"kubelet\"}) by (namespace) / sum(container_spec_memory_limit_bytes{namespace=~\"rhacs-$instance_id\", container=\"central\", job=~\"kubelet\"}) by (namespace)", + "format": "time_series", "interval": "", "legendFormat": "{{namespace}}", "range": true, "refId": "A" } ], - "title": "Network Transmitted", + "title": "Central Memory Usage", "type": "timeseries" }, { @@ -1110,17 +932,17 @@ spec: } ] }, - "unit": "percentunit" + "unit": "Bps" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, - "x": 0, - "y": 43 + "x": 12, + "y": 34 }, - "id": 6, + "id": 5, "options": { "legend": { "calcs": [], @@ -1130,7 +952,7 @@ spec: }, "tooltip": { "mode": "single", - "sort": "desc" + "sort": "none" } }, "pluginVersion": "9.1.0", @@ -1141,15 +963,14 @@ spec: "uid": "PBFA97CFB590B2093" }, "editorMode": "code", - "expr": "sum(container_memory_working_set_bytes{namespace=~\"rhacs-$instance_id\", container=\"central\", job=~\"kubelet\"}) by (namespace) / sum(container_spec_memory_limit_bytes{namespace=~\"rhacs-$instance_id\", container=\"central\", job=~\"kubelet\"}) by (namespace)", - "format": "time_series", + "expr": "sum(rate(container_network_transmit_bytes_total{namespace=~\"rhacs-$instance_id\", job=~\"kubelet\"}[5m])) by (namespace)", "interval": "", "legendFormat": "{{namespace}}", "range": true, "refId": "A" } ], - "title": "Central Memory Usage", + "title": "Network Transmitted", "type": "timeseries" }, { @@ -1158,7 +979,7 @@ spec: "h": 1, "w": 24, "x": 0, - "y": 51 + "y": 42 }, "id": 140, "panels": [], @@ -1229,7 +1050,7 @@ spec: "h": 8, "w": 17, "x": 0, - "y": 52 + "y": 43 }, "id": 141, "interval": "60s", @@ -1279,7 +1100,7 @@ spec: "h": 8, "w": 7, "x": 17, - "y": 52 + "y": 43 }, "id": 145, "options": { @@ -1358,7 +1179,7 @@ spec: "h": 8, "w": 17, "x": 0, - "y": 60 + "y": 51 }, "id": 144, "interval": "60s", @@ -1408,7 +1229,7 @@ spec: "h": 8, "w": 7, "x": 17, - "y": 60 + "y": 51 }, "id": 146, "options": { @@ -1429,7 +1250,7 @@ spec: "h": 1, "w": 24, "x": 0, - "y": 68 + "y": 59 }, "id": 23, "panels": [], @@ -1631,7 +1452,7 @@ spec: "h": 12, "w": 24, "x": 0, - "y": 69 + "y": 60 }, "id": 19, "options": { @@ -2098,7 +1919,7 @@ spec: "h": 13, "w": 24, "x": 0, - "y": 81 + "y": 72 }, "id": 21, "options": { @@ -2296,6 +2117,226 @@ spec: } ], "type": "table" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 85 + }, + "id": 149, + "panels": [], + "title": "Certificate Expiry", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "Expiration dates for central and scanner TLS certificates.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "filterable": true, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 13, + "w": 24, + "x": 0, + "y": 86 + }, + "id": 148, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "disableTextWrap": false, + "editorMode": "code", + "exemplar": true, + "expr": "acs_fleetshard_certificate_expiration_timestamp{exported_namespace=~\"rhacs-$instance_id\"}", + "format": "table", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Certificates Expiry", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value": false, + "__name__": true, + "container": true, + "instance": true, + "job": true, + "namespace": true, + "pod": true, + "rhacs_cluster_name": true, + "rhacs_environment": true + }, + "includeByName": {}, + "indexByName": { + "Time": 4, + "Value": 12, + "__name__": 5, + "container": 6, + "data_key": 3, + "exported_namespace": 0, + "instance": 7, + "job": 8, + "namespace": 1, + "pod": 9, + "rhacs_cluster_name": 10, + "rhacs_environment": 11, + "secret": 2 + }, + "renameByName": { + "Time": "Expiration", + "Value": "", + "container": "", + "data_key": "Key", + "exported_namespace": "Namespace", + "secret": "Secret" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Expiration", + "binary": { + "left": "Value", + "operator": "*", + "right": "1000" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "time", + "targetField": "Expiration" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Value": true + }, + "includeByName": {}, + "indexByName": {}, + "renameByName": {} + } + }, + { + "id": "groupBy", + "options": { + "fields": { + "Expiration": { + "aggregations": [ + "last" + ], + "operation": "aggregate" + }, + "Key": { + "aggregations": [], + "operation": "groupby" + }, + "Namespace": { + "aggregations": [ + "last" + ], + "operation": "groupby" + }, + "Secret": { + "aggregations": [], + "operation": "groupby" + } + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": { + "Expiration (last)": 3, + "Key": 2, + "Namespace": 0, + "Secret": 1 + }, + "renameByName": { + "Expiration (last)": "Expiration", + "Namespace (last)": "Namespace" + } + } + } + ], + "type": "table" } ], "revision": 1, diff --git a/resources/grafana/sources/rhacs-cluster-overview.json b/resources/grafana/sources/rhacs-cluster-overview.json index 622b374..bd9bea4 100644 --- a/resources/grafana/sources/rhacs-cluster-overview.json +++ b/resources/grafana/sources/rhacs-cluster-overview.json @@ -58,185 +58,6 @@ "x": 0, "y": 0 }, - "id": 149, - "panels": [], - "title": "Certificates Expiry", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Monitoring, tracking and managing of digital certificates expiration dates, by extracting timestamps from certificates and exposing metrics to Prometheus.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" - }, - "filterable": true, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 1 - }, - "id": 148, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "Expiration" - } - ] - }, - "pluginVersion": "11.1.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "disableTextWrap": false, - "editorMode": "builder", - "exemplar": true, - "expr": "acs_fleetshard_certificate_expiration_timestamp", - "format": "table", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "interval": "", - "legendFormat": "__auto", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Certificates Expiry", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Value": false, - "__name__": true, - "container": true, - "instance": true, - "job": true, - "namespace": true, - "pod": true, - "rhacs_cluster_name": true, - "rhacs_environment": true - }, - "includeByName": {}, - "indexByName": { - "Time": 4, - "Value": 12, - "__name__": 5, - "container": 6, - "data_key": 3, - "exported_namespace": 0, - "instance": 7, - "job": 8, - "namespace": 1, - "pod": 9, - "rhacs_cluster_name": 10, - "rhacs_environment": 11, - "secret": 2 - }, - "renameByName": { - "Time": "Expiration", - "Value": "", - "container": "", - "data_key": "Key", - "exported_namespace": "Namespace", - "secret": "Secret" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Expiration", - "binary": { - "left": "Value", - "operator": "*", - "right": "1000" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "time", - "targetField": "Expiration" - } - ], - "fields": {} - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Value": true - }, - "includeByName": {}, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "table" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 9 - }, "id": 14, "panels": [], "title": "Instances", @@ -307,7 +128,7 @@ "h": 8, "w": 12, "x": 0, - "y": 10 + "y": 1 }, "id": 9, "options": { @@ -405,7 +226,7 @@ "h": 8, "w": 12, "x": 12, - "y": 10 + "y": 1 }, "id": 17, "options": { @@ -503,7 +324,7 @@ "h": 8, "w": 12, "x": 0, - "y": 18 + "y": 9 }, "id": 11, "options": { @@ -613,7 +434,7 @@ "h": 8, "w": 12, "x": 12, - "y": 18 + "y": 9 }, "id": 10, "options": { @@ -710,7 +531,7 @@ "h": 8, "w": 12, "x": 0, - "y": 26 + "y": 17 }, "id": 24, "options": { @@ -807,7 +628,7 @@ "h": 8, "w": 12, "x": 12, - "y": 26 + "y": 17 }, "id": 25, "options": { @@ -840,19 +661,6 @@ "title": "Secured Clusters", "type": "timeseries" }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 34 - }, - "id": 16, - "panels": [], - "title": "Resources", - "type": "row" - }, { "datasource": { "type": "prometheus", @@ -916,7 +724,7 @@ "h": 8, "w": 12, "x": 0, - "y": 35 + "y": 25 }, "id": 4, "options": { @@ -949,6 +757,19 @@ "title": "Network Received", "type": "timeseries" }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 33 + }, + "id": 16, + "panels": [], + "title": "Resources", + "type": "row" + }, { "datasource": { "type": "prometheus", @@ -1004,17 +825,17 @@ } ] }, - "unit": "Bps" + "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, - "x": 12, - "y": 35 + "x": 0, + "y": 34 }, - "id": 5, + "id": 6, "options": { "legend": { "calcs": [], @@ -1024,7 +845,7 @@ }, "tooltip": { "mode": "single", - "sort": "none" + "sort": "desc" } }, "pluginVersion": "9.1.0", @@ -1035,14 +856,15 @@ "uid": "PBFA97CFB590B2093" }, "editorMode": "code", - "expr": "sum(rate(container_network_transmit_bytes_total{namespace=~\"rhacs-$instance_id\", job=~\"kubelet\"}[5m])) by (namespace)", + "expr": "sum(container_memory_working_set_bytes{namespace=~\"rhacs-$instance_id\", container=\"central\", job=~\"kubelet\"}) by (namespace) / sum(container_spec_memory_limit_bytes{namespace=~\"rhacs-$instance_id\", container=\"central\", job=~\"kubelet\"}) by (namespace)", + "format": "time_series", "interval": "", "legendFormat": "{{namespace}}", "range": true, "refId": "A" } ], - "title": "Network Transmitted", + "title": "Central Memory Usage", "type": "timeseries" }, { @@ -1100,17 +922,17 @@ } ] }, - "unit": "percentunit" + "unit": "Bps" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, - "x": 0, - "y": 43 + "x": 12, + "y": 34 }, - "id": 6, + "id": 5, "options": { "legend": { "calcs": [], @@ -1120,7 +942,7 @@ }, "tooltip": { "mode": "single", - "sort": "desc" + "sort": "none" } }, "pluginVersion": "9.1.0", @@ -1131,15 +953,14 @@ "uid": "PBFA97CFB590B2093" }, "editorMode": "code", - "expr": "sum(container_memory_working_set_bytes{namespace=~\"rhacs-$instance_id\", container=\"central\", job=~\"kubelet\"}) by (namespace) / sum(container_spec_memory_limit_bytes{namespace=~\"rhacs-$instance_id\", container=\"central\", job=~\"kubelet\"}) by (namespace)", - "format": "time_series", + "expr": "sum(rate(container_network_transmit_bytes_total{namespace=~\"rhacs-$instance_id\", job=~\"kubelet\"}[5m])) by (namespace)", "interval": "", "legendFormat": "{{namespace}}", "range": true, "refId": "A" } ], - "title": "Central Memory Usage", + "title": "Network Transmitted", "type": "timeseries" }, { @@ -1148,7 +969,7 @@ "h": 1, "w": 24, "x": 0, - "y": 51 + "y": 42 }, "id": 140, "panels": [], @@ -1219,7 +1040,7 @@ "h": 8, "w": 17, "x": 0, - "y": 52 + "y": 43 }, "id": 141, "interval": "60s", @@ -1269,7 +1090,7 @@ "h": 8, "w": 7, "x": 17, - "y": 52 + "y": 43 }, "id": 145, "options": { @@ -1348,7 +1169,7 @@ "h": 8, "w": 17, "x": 0, - "y": 60 + "y": 51 }, "id": 144, "interval": "60s", @@ -1398,7 +1219,7 @@ "h": 8, "w": 7, "x": 17, - "y": 60 + "y": 51 }, "id": 146, "options": { @@ -1419,7 +1240,7 @@ "h": 1, "w": 24, "x": 0, - "y": 68 + "y": 59 }, "id": 23, "panels": [], @@ -1621,7 +1442,7 @@ "h": 12, "w": 24, "x": 0, - "y": 69 + "y": 60 }, "id": 19, "options": { @@ -2088,7 +1909,7 @@ "h": 13, "w": 24, "x": 0, - "y": 81 + "y": 72 }, "id": 21, "options": { @@ -2286,6 +2107,220 @@ } ], "type": "table" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 85 + }, + "id": 149, + "panels": [], + "title": "Certificate Expiry", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "Expiration dates for central and scanner TLS certificates.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "filterable": true, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 13, + "w": 24, + "x": 0, + "y": 86 + }, + "id": 148, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": ["sum"], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "disableTextWrap": false, + "editorMode": "code", + "exemplar": true, + "expr": "acs_fleetshard_certificate_expiration_timestamp{exported_namespace=~\"rhacs-$instance_id\"}", + "format": "table", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Certificates Expiry", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value": false, + "__name__": true, + "container": true, + "instance": true, + "job": true, + "namespace": true, + "pod": true, + "rhacs_cluster_name": true, + "rhacs_environment": true + }, + "includeByName": {}, + "indexByName": { + "Time": 4, + "Value": 12, + "__name__": 5, + "container": 6, + "data_key": 3, + "exported_namespace": 0, + "instance": 7, + "job": 8, + "namespace": 1, + "pod": 9, + "rhacs_cluster_name": 10, + "rhacs_environment": 11, + "secret": 2 + }, + "renameByName": { + "Time": "Expiration", + "Value": "", + "container": "", + "data_key": "Key", + "exported_namespace": "Namespace", + "secret": "Secret" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Expiration", + "binary": { + "left": "Value", + "operator": "*", + "right": "1000" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "time", + "targetField": "Expiration" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Value": true + }, + "includeByName": {}, + "indexByName": {}, + "renameByName": {} + } + }, + { + "id": "groupBy", + "options": { + "fields": { + "Expiration": { + "aggregations": ["last"], + "operation": "aggregate" + }, + "Key": { + "aggregations": [], + "operation": "groupby" + }, + "Namespace": { + "aggregations": ["last"], + "operation": "groupby" + }, + "Secret": { + "aggregations": [], + "operation": "groupby" + } + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": { + "Expiration (last)": 3, + "Key": 2, + "Namespace": 0, + "Secret": 1 + }, + "renameByName": { + "Expiration (last)": "Expiration", + "Namespace (last)": "Namespace" + } + } + } + ], + "type": "table" } ], "revision": 1,