Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 99d607f

Browse files
committed
Added tenant ID field to the table
Signed-off-by: Marco Pracucci <[email protected]>
1 parent 903f1b5 commit 99d607f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cortex-mixin/dashboards/slow-queries.libsonnet

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ local utils = import 'mixin-utils/utils.libsonnet';
5151
id: 'organize',
5252
options: {
5353
// Hide fields we don't care.
54-
local hiddenFields = ['caller', 'cluster', 'container', 'host', 'id', 'job', 'level', 'line', 'method', 'msg', 'name', 'namespace', 'org_id', 'param_end', 'param_start', 'param_time', 'path', 'pod', 'pod_template_hash', 'query_wall_time_seconds', 'stream', 'traceID', 'tsNs'],
54+
local hiddenFields = ['caller', 'cluster', 'container', 'host', 'id', 'job', 'level', 'line', 'method', 'msg', 'name', 'namespace', 'param_end', 'param_start', 'param_time', 'path', 'pod', 'pod_template_hash', 'query_wall_time_seconds', 'stream', 'traceID', 'tsNs'],
5555

5656
excludeByName: {
5757
[field]: true
5858
for field in hiddenFields
5959
},
6060

6161
// Order fields.
62-
local orderedFields = ['ts', 'param_query', 'Time range', 'param_step', 'response_time'],
62+
local orderedFields = ['ts', 'org_id', 'param_query', 'Time range', 'param_step', 'response_time'],
6363

6464
indexByName: {
6565
[orderedFields[i]]: i
@@ -68,6 +68,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
6868

6969
// Rename fields.
7070
renameByName: {
71+
org_id: 'Tenant ID',
7172
param_query: 'Query',
7273
param_step: 'Step',
7374
response_time: 'Duration',

0 commit comments

Comments
 (0)