@@ -2,33 +2,33 @@ local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonn
22local var = g.dashboard.variable;
33
44{
5- datasource :
6- var.datasource.new('datasource ' , 'elasticsearch' )
5+ Datasource :
6+ var.datasource.new('Datasource ' , 'elasticsearch' )
77 + var.datasource.withRegex('/(.*netperf.*)/' )
8- + var.query.generalOptions.withLabel('datasource ' )
8+ + var.query.generalOptions.withLabel('Datasource ' )
99 + var.query.selectionOptions.withMulti(false )
1010 + var.query.withRefresh(1 )
1111 + var.query.selectionOptions.withIncludeAll(false ),
1212
1313 platform:
1414 var.query.new('platform' , '{"find": "terms", "field": "metadata.platform.keyword"}' )
15- + var.query.withDatasourceFromVariable(self .datasource )
15+ + var.query.withDatasourceFromVariable(self .Datasource )
1616 + var.query.withRefresh(2 )
1717 + var.query.selectionOptions.withMulti(true )
1818 + var.query.selectionOptions.withIncludeAll(true )
1919 + var.query.generalOptions.withLabel('Platform' ),
2020
2121 workers:
2222 var.query.new('workerNodesType' , '{"find": "terms", "field": "metadata.workerNodesType.keyword", "query": "metadata.platform.keyword: $platform"}' )
23- + var.query.withDatasourceFromVariable(self .datasource )
23+ + var.query.withDatasourceFromVariable(self .Datasource )
2424 + var.query.withRefresh(2 )
2525 + var.query.selectionOptions.withMulti(false )
2626 + var.query.selectionOptions.withIncludeAll(true )
2727 + var.query.generalOptions.withLabel('workers' ),
2828
2929 uuid:
3030 var.query.new('uuid' , '{"find": "terms", "field": "uuid.keyword", "query":"metadata.platform.keyword: $platform AND metadata.workerNodesType.keyword: $workerNodesType"}' )
31- + var.query.withDatasourceFromVariable(self .datasource )
31+ + var.query.withDatasourceFromVariable(self .Datasource )
3232 + var.query.withRefresh(2 )
3333 + var.query.selectionOptions.withMulti(true )
3434 + var.query.selectionOptions.withIncludeAll(true )
@@ -48,15 +48,15 @@ local var = g.dashboard.variable;
4848
4949 streams:
5050 var.query.new('parallelism' , '{"find": "terms", "field": "parallelism", "query":"uuid: $uuid"}' )
51- + var.query.withDatasourceFromVariable(self .datasource )
51+ + var.query.withDatasourceFromVariable(self .Datasource )
5252 + var.query.withRefresh(2 )
5353 + var.query.selectionOptions.withMulti(true )
5454 + var.query.selectionOptions.withIncludeAll(true )
5555 + var.query.generalOptions.withLabel('streams' ),
5656
5757 throughput_profile:
5858 var.query.new('throughput_profile' , '{"find": "terms", "field": "profile.keyword", "query":"uuid:$uuid"}' )
59- + var.query.withDatasourceFromVariable(self .datasource )
59+ + var.query.withDatasourceFromVariable(self .Datasource )
6060 + var.query.withRegex('.*STREAM.*' )
6161 + var.query.withRefresh(2 )
6262 + var.query.selectionOptions.withMulti(true )
@@ -65,7 +65,7 @@ local var = g.dashboard.variable;
6565
6666 latency_profile:
6767 var.query.new('latency_profile' , '{"find": "terms", "field": "profile.keyword", "query":"uuid:$uuid"}' )
68- + var.query.withDatasourceFromVariable(self .datasource )
68+ + var.query.withDatasourceFromVariable(self .Datasource )
6969 + var.query.withRegex('.*RR.*' )
7070 + var.query.withRefresh(2 )
7171 + var.query.selectionOptions.withMulti(true )
@@ -74,15 +74,15 @@ local var = g.dashboard.variable;
7474
7575 messageSize:
7676 var.query.new('messageSize' , '{"find": "terms", "field": "messageSize","query":"uuid:$uuid"}' )
77- + var.query.withDatasourceFromVariable(self .datasource )
77+ + var.query.withDatasourceFromVariable(self .Datasource )
7878 + var.query.withRefresh(2 )
7979 + var.query.selectionOptions.withMulti(true )
8080 + var.query.selectionOptions.withIncludeAll(true )
8181 + var.query.generalOptions.withLabel('messageSize' ),
8282
8383 driver:
8484 var.query.new('driver' , '{"find": "terms", "field": "driver.keyword","query":"uuid:$uuid"}' )
85- + var.query.withDatasourceFromVariable(self .datasource )
85+ + var.query.withDatasourceFromVariable(self .Datasource )
8686 + var.query.withRefresh(1 )
8787 + var.query.selectionOptions.withMulti(false )
8888 + var.query.selectionOptions.withIncludeAll(false )
0 commit comments