-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e: Generate prometheus.yaml on setup (#954) (#957)
* Generate prometheus yaml on setup * change file extension * move template to file * add templates dir (cherry picked from commit 3701c9f3c1a12a0ce35cef98788bdebb382bd74e) Co-authored-by: Hernán Vanzetto <[email protected]>
- Loading branch information
1 parent
587522f
commit 9cbdef8
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
global: | ||
scrape_interval: 1s | ||
|
||
scrape_configs: | ||
{{- range .Nodes }} | ||
- job_name: '{{ .Name }}' | ||
static_configs: | ||
- targets: ['localhost:{{ .PrometheusProxyPort }}'] | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters