Proof of concept for federation via console templates.

This exposes samples via the console templates in the
text exposition format, which the parser will fall back to.

This is not a proper federation solution, but should tide us
over for now. Extenions could include passing in a query or queries in
the url parameters.
pull/542/head
Brian Brazil 10 years ago
parent c069c0dafa
commit 5adcec3018

@ -0,0 +1,3 @@
{{/* Adjust the query below to select the samples to expose. */}}
{{ range query "{__name__=~'^job:.*'}" }}
{{ .Labels.__name__ }}{{ "{" }}{{ range $k, $v := .Labels }}{{ if ne "__name__" $k }}{{ $k }}="{{ $v | reReplaceAll "([\\\\\"])" "\\$1" | reReplaceAll "\n" "\\n"| safeHtml }}",{{ end }}{{ end }}{{ "}" }} {{ print .Value | safeHtml }}{{ end }}
Loading…
Cancel
Save