-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: optimize metrics creation and add documentation (#66)
Co-authored-by: dmicheneau <[email protected]>
- Loading branch information
1 parent
0df440a
commit d55cd0f
Showing
29 changed files
with
859 additions
and
431 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Terraform Provider testing workflow. | ||
name: go-generate | ||
|
||
# This GitHub action runs your tests for each pull request and push. | ||
# Optionally, you can turn it on using a schedule for regular testing. | ||
on: | ||
pull_request: | ||
paths: | ||
- 'docs/**' | ||
- 'tools/**' | ||
|
||
jobs: | ||
generate: | ||
name: Generate | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 # v3.5.0 | ||
- uses: actions/setup-go@v5 # v4.0.0 | ||
with: | ||
go-version-file: 'go.mod' | ||
- run: go generate ./... | ||
- name: git diff | ||
run: | | ||
git diff --compact-summary --exit-code || \ | ||
(echo; echo "Unexpected difference in directories after code generation. Run 'go generate ./...' command and commit."; exit 1) |
File renamed without changes.
6 changes: 2 additions & 4 deletions
6
.github/workflows/goproxy.yml → .github/workflows/go-proxy.yml
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ jobs: | |
runs-on: | ||
group: Default | ||
steps: | ||
- uses: creekorful/[email protected] | ||
- uses: creekorful/[email protected] |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Unit tests | ||
|
||
on: | ||
pull_request_target: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
|
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
File renamed without changes.
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
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,49 @@ | ||
--- | ||
hide: | ||
- toc | ||
--- | ||
|
||
# Metrics | ||
|
||
kimup exposes metrics to monitor the performance. The metrics are exposed in the Prometheus format and can be scraped by Prometheus or any other monitoring tool that can scrape Prometheus. | ||
|
||
## Settings | ||
|
||
The following arguments can be used to configure the metrics *(Available in kimup-operator, kimup-controller and kimup-admission-controller)*: | ||
|
||
| Flag | Default | Description | | ||
| -------------- | -------- | ------------------------- | | ||
| --metrics | false | Enable metrics collection | | ||
| --metrics-port | :9080 | Port to expose metrics on | | ||
| --metrics-path | /metrics | Path to expose metrics on | | ||
|
||
|
||
## Metrics | ||
|
||
The following metrics are exposed: | ||
|
||
| Metrics | Description | | ||
| ---------------------------------------------- | ----------------------------------------------------------- | | ||
| kimup_actions_executed_duration | The duration in seconds of action performed. | | ||
| kimup_actions_executed_error_total | The total number of action performed with error. | | ||
| kimup_actions_executed_total | The total number of action performed. | | ||
| kimup_admission_controller_patch_duration | The duration in seconds of patch in admission controller. | | ||
| kimup_admission_controller_patch_error_total | The total number of patch action performed with error. | | ||
| kimup_admission_controller_patch_total | The total number of patch action performed. | | ||
| kimup_admission_controller_request_duration | The duration in seconds of request in admission controller. | | ||
| kimup_admission_controller_request_error_total | The total number of request received with error. | | ||
| kimup_admission_controller_request_total | The total number of request received. | | ||
| kimup_events_triggerd_error_total | The total number of events triggered with error. | | ||
| kimup_events_triggered_duration | The duration in seconds of events triggered. | | ||
| kimup_events_triggered_total | The total number of events triggered. | | ||
| kimup_registry_request_duration | The duration in seconds of registry evaluated. | | ||
| kimup_registry_request_error_total | The total number of registry evaluated with error. | | ||
| kimup_registry_request_total | The total number of registry evaluated. | | ||
| kimup_rules_evaluated_duration | The duration in seconds of rules evaluated. | | ||
| kimup_rules_evaluated_error_total | The total number of rules evaluated with error. | | ||
| kimup_rules_evaluated_total | The total number of rules evaluated. | | ||
| kimup_tags_available_sum | The total number of tags available for an image. | | ||
| kimup_tags_request_duration | The duration in seconds of the request to list tags. | | ||
| kimup_tags_request_error_total | The total number returned an error when calling list tags. | | ||
| kimup_tags_request_total | The total number of requests to list tags. | | ||
|
Oops, something went wrong.