-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some helpful configs for testing during development
- Loading branch information
Showing
3 changed files
with
52 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 @@ | ||
test-robust: | ||
go build -race -mod=vendor -tags netgo,builtinassets && ./promxy --log-level=debug --http.shutdown-delay=0s --config=demo_robust.conf --web.external-url=http://localhost:8082/promxy | ||
|
||
|
||
test-local: | ||
go build -race -mod=vendor -tags netgo,builtinassets && ./promxy --http.shutdown-delay=0s --config=local_test.conf --web.external-url=http://localhost:8082/promxy --log-level=debug | ||
|
||
version: | ||
go build -race -mod=vendor -tags netgo,builtinassets && ./promxy --version |
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,31 @@ | ||
## | ||
## Regular prometheus configuration | ||
## | ||
global: | ||
evaluation_interval: 60s | ||
external_labels: | ||
source: promxy | ||
|
||
## | ||
### Promxy configuration | ||
## | ||
promxy: | ||
server_groups: | ||
- static_configs: | ||
- targets: | ||
- demo.robustperception.io:9090 | ||
http_client: | ||
dial_timeout: 1s | ||
tls_config: | ||
insecure_skip_verify: true | ||
labels: | ||
replica: a | ||
- static_configs: | ||
- targets: | ||
- demo.robustperception.io:9090 | ||
http_client: | ||
dial_timeout: 1s | ||
tls_config: | ||
insecure_skip_verify: true | ||
labels: | ||
replica: b |
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,12 @@ | ||
promxy: | ||
server_groups: | ||
- static_configs: | ||
- targets: | ||
- localhost:9090 | ||
labels: | ||
dc: 1 | ||
- static_configs: | ||
- targets: | ||
- localhost:9090 | ||
labels: | ||
dc: 2 |