-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example prometheus configuration (#41)
Signed-off-by: Oluwole Fadeyi <[email protected]>
- Loading branch information
Showing
7 changed files
with
85 additions
and
23 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
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 |
---|---|---|
|
@@ -41,7 +41,7 @@ jobs: | |
run: git fetch --prune --unshallow | ||
|
||
- name: Install tools | ||
run: make install-tools | ||
run: make install-ci-tools | ||
|
||
- name: Install cosign | ||
uses: sigstore/[email protected] | ||
|
@@ -97,7 +97,7 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Install tools | ||
run: make install-tools | ||
run: make install-ci-tools | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
|
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 |
---|---|---|
|
@@ -13,14 +13,18 @@ export KO_DOCKER_REPO=$KO_DOCKER_REPO | |
# include files with the `// +build mock` annotation | ||
TEST_TAGS:=-tags mock -coverprofile cover.out | ||
|
||
.PHONY: build generate docs test build-all-platforms clean install-tools licenses docker-build | ||
.PHONY: build generate docs test build-all-platforms clean install-tools licenses lint | ||
|
||
install-tools: | ||
install-ci-tools: | ||
go install github.com/swaggo/swag/cmd/[email protected] | ||
go install github.com/matryer/[email protected] | ||
go install github.com/google/go-licenses@c781b427440f8ea100841eefdd308e660d26d121 | ||
go install github.com/norwoodj/helm-docs/cmd/[email protected] | ||
|
||
install-local-tools: install-ci-tools | ||
go install https://github.com/goreleaser/[email protected] | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
|
||
build: | ||
cd $(ROOT_DIR) && $(GO_BUILD) -o builds/$(BIN_NAME) . | ||
|
||
|
@@ -53,6 +57,9 @@ clean: | |
rm -rf ./builds && \ | ||
rm -rf kodata | ||
|
||
lint: | ||
golangci-lint run | ||
|
||
# generates the licenses used by the tool | ||
licenses: | ||
rm -rf kodata | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# my global config | ||
global: | ||
scrape_interval: 5s # Set the scrape interval to every 5 seconds. Default is every 1 minute. | ||
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. | ||
|
||
scrape_configs: | ||
- job_name: auth0_exporter | ||
metrics_path: /metrics | ||
static_configs: | ||
- targets: ['localhost:9301'] | ||
relabel_configs: | ||
- source_labels: [ __address__ ] | ||
target_label: __param_target | ||
- source_labels: [ __param_target ] | ||
target_label: instance | ||
- target_label: __address__ | ||
replacement: localhost:9301 |