Skip to content

Commit

Permalink
added normalization for new style grafana variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jstark1 authored and sni committed Nov 13, 2024
1 parent e212d43 commit eff821d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/_histou_graph.tt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
title = title.replace('[% escape_js(hst) %] ', '');
title = title.replace('[% escape_js(svc) %] ', '');
title = title.replace(/^check_\S+ /, '');
title = title.replace(/^\${|:\w+}/g, '');
jQuery('#histou_source_select').append('<option value="'+panel.id+'"'+((panel.id==histou_source || title == histou_source) ? ' selected' : '')+'>'+title+'<\/option>');
has_graphs++;
});
Expand Down

0 comments on commit eff821d

Please sign in to comment.