mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-26 13:11:11 -08:00
Merge pull request #542 from prometheus/I-cant-believe-its-not-federation
Proof of concept for federation via console templates.
This commit is contained in:
commit
2dd70b8c13
3
consoles/federation_template_example.txt
Normal file
3
consoles/federation_template_example.txt
Normal file
|
@ -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…
Reference in a new issue