Dashboard Data Types
[1] advancedTable
Runs a List of Prometheus metric, where each metric represents a Table column values
Using “customKey
”, allows you to control the values names of the “NAME” column
Example
- name: Kafka pods details (advancedTable example) enable: true box: left_c type: advancedTable advancedTableColumns: - memory usage: metric: | sort_desc(sum(container_memory_usage_bytes{namespace=~"$namespace", pod=~"$pod"}) by (pod, topology_ebs_csi_aws_com_zone)) metricUnit: byte autoConvertValue: true - memory usage %: metric: | sort_desc( ( sum(container_memory_usage_bytes{namespace=~"$namespace", pod=~"$pod"}) by (pod, topology_ebs_csi_aws_com_zone) / sum(container_spec_memory_limit_bytes{namespace=~"$namespace", pod=~"$pod"}) by (pod, topology_ebs_csi_aws_com_zone) ) * 100 ) metricUnit: percentage autoConvertValue: true - memory limit: metric: | sort_desc(sum(container_spec_memory_limit_bytes{namespace=~"$namespace", pod=~"$pod"}) by (pod, topology_ebs_csi_aws_com_zone)) metricUnit: byte autoConvertValue: true - memory cache: metric: | sort_desc(sum(container_memory_cache{namespace=~"$namespace", pod=~"$pod"}) by (pod, topology_ebs_csi_aws_com_zone)) metricUnit: byte autoConvertValue: true - memory swap: metric: | sum(container_memory_swap{namespace=~"$namespace", pod=~"$pod"}) by (pod, topology_ebs_csi_aws_com_zone) metricUnit: byte autoConvertValue: true - file descriptors: metric: | sort_desc(sum(container_file_descriptors{namespace=~"$namespace", pod=~"$pod"}) by (pod, topology_ebs_csi_aws_com_zone)) metricUnit: None - up time: metric: | sum(time() - kube_pod_start_time{namespace=~"$namespace", pod=~"$pod"}) by (pod) metricUnit: seconds autoConvertValue: true - AWS AZ: metric: | sort_desc(sum(container_memory_usage_bytes{namespace=~"$namespace", pod=~"$pod"}) by (pod, topology_ebs_csi_aws_com_zone)) metricUnit: byte valueFromLabel: topology_ebs_csi_aws_com_zone customKey: "" advancedTableOptions: tableType: grid headersUppercase: true showTableIndex: true updateIntervalSeconds: 3
Note
The advancedTableColumns columns order define the Table columns order