File tree Expand file tree Collapse file tree 4 files changed +49
-8
lines changed Expand file tree Collapse file tree 4 files changed +49
-8
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ cortex-mixin.zip
2
2
cortex-mixin /out
3
3
cortex-mixin /vendor
4
4
/test-readme /
5
+ .vscode
Original file line number Diff line number Diff line change 3
3
## master / unreleased
4
4
* [ CHANGE] Enable shuffle sharding in compactors
5
5
* [ ENHANCEMENT] Configure ` -ingester.client.grpc-compression ` to be ` snappy-block `
6
+ * [ ENHANCEMENT] Support Grafana 11 in Cortex Service Scaling Dashboard
6
7
7
8
## 1.16.1
8
9
* [ CHANGE] Upgrade memcached to 1.6.23-alpine and memcached-exporter to v0.14.2
Original file line number Diff line number Diff line change @@ -503,4 +503,42 @@ local utils = import 'mixin-utils/utils.libsonnet';
503
503
%s
504
504
||| % [title, description],
505
505
},
506
+
507
+ overrideHidden(name)::
508
+ {
509
+ matcher: {
510
+ id: 'byName' ,
511
+ options: name,
512
+ },
513
+ properties: [
514
+ {
515
+ id: 'custom.hidden' ,
516
+ value: true ,
517
+ },
518
+ ],
519
+ },
520
+
521
+ overrideDisplayName(name, displayName)::
522
+ {
523
+ matcher: {
524
+ id: 'byName' ,
525
+ options: name,
526
+ },
527
+ properties: [
528
+ {
529
+ id: 'displayName' ,
530
+ value: displayName,
531
+ },
532
+ ],
533
+ },
534
+
535
+
536
+ tablePanel(queries, overrides)::
537
+ super .tablePanel(queries, {}) + {
538
+ fieldConfig+: {
539
+ overrides+: overrides,
540
+ },
541
+ styles:: null ,
542
+ },
543
+
506
544
}
Original file line number Diff line number Diff line change @@ -47,14 +47,15 @@ local utils = import 'mixin-utils/utils.libsonnet';
47
47
cluster_namespace_deployment:actual_replicas:count{cluster=~"$cluster", namespace=~"$namespace"}
48
48
)
49
49
||| ,
50
- ], {
51
- __name__: { alias: 'Cluster' , type: 'hidden' },
52
- cluster: { alias: 'Cluster' },
53
- namespace: { alias: 'Namespace' },
54
- deployment: { alias: 'Service' },
55
- reason: { alias: 'Reason' },
56
- Value: { alias: 'Required Replicas' , decimals: 0 },
57
- })
50
+ ], [
51
+ $.overrideHidden('__name__' ),
52
+ $.overrideHidden('Time' ),
53
+ $.overrideDisplayName('cluster' , 'Cluster' ),
54
+ $.overrideDisplayName('namespace' , 'Namespace' ),
55
+ $.overrideDisplayName('deployment' , 'Service' ),
56
+ $.overrideDisplayName('reason' , 'Reason' ),
57
+ $.overrideDisplayName('Value' , 'Required Replicas' ),
58
+ ])
58
59
)
59
60
),
60
61
}
You can’t perform that action at this time.
0 commit comments