Skip to content

Commit 208386a

Browse files
authored
Change Grafana URL to automatically pull up the search page (and show dashboard folders) (#303)
* Grafana link will land on search page instead of main page. * tweaking substitution to handle missing params
1 parent 361bd66 commit 208386a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

prometheus-ksonnet/lib/config.libsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
{
1212
title: 'Grafana',
1313
path: 'grafana',
14+
params: '/?search=open',
1415
url: 'http://grafana.%(namespace)s.svc.%(cluster_dns_suffix)s/' % $._config,
1516
allowWebsockets: true,
1617
},

prometheus-ksonnet/lib/nginx.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
locations: std.join('\n', self.location_stanzas),
4949
link_stanzas: [
5050
|||
51-
<li><a href="/%(path)s">%(title)s</a></li>
52-
||| % service
51+
<li><a href="/%(path)s%(params)s">%(title)s</a></li>
52+
||| % ({ params: '' } + service)
5353
for service in $._config.admin_services
5454
],
5555
links: std.join('\n', self.link_stanzas),

0 commit comments

Comments
 (0)