-
Notifications
You must be signed in to change notification settings - Fork 73
K8SPG-737 Make mountPoint configurable in node_exporter #1461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
nmarukovich
wants to merge
10
commits into
main
Choose a base branch
from
K8SPG-737
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
433465e
K8SPG-737 add path
nmarukovich 169031a
turn off test step
nmarukovich fd9fad7
Merge branch 'main' into K8SPG-737
nmarukovich 0f9d77d
Merge branch 'main' into K8SPG-737
hors 58f48b9
Merge branch 'main' into K8SPG-737
nmarukovich 6491c02
Merge branch 'main' into K8SPG-737
nmarukovich d9dd4a2
merge main
nmarukovich b9e4561
rename var
nmarukovich 0eda4e4
Merge branch 'K8SPG-737' of github.com:percona/percona-postgresql-ope…
nmarukovich 62f022a
uncomment test case
nmarukovich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
e2e-tests/tests/monitoring-pmm3/08-check-mountpoint-expose.yaml
This file contains hidden or 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,20 @@ | ||
| apiVersion: kuttl.dev/v1beta1 | ||
| kind: TestStep | ||
| commands: | ||
| - script: |- | ||
| set -o errexit | ||
| set -o xtrace | ||
|
|
||
| source ../../functions | ||
|
|
||
| series_fetched=$(curl --insecure -G "https://admin:admin@$(get_service_ip monitoring-service)/prometheus/api/v1/query_range" \ | ||
| --data-urlencode "query=node_filesystem_free_bytes{mountpoint=\"/pgdata\"}" \ | ||
| --data-urlencode "start=$(($(date +%s) - 300))" \ | ||
| --data-urlencode "end=$(date +%s)" \ | ||
| --data-urlencode "step=5s" | jq -r '.stats.seriesFetched') | ||
|
|
||
| if [[ $series_fetched == 0 ]]; then | ||
| echo "seriesFetched is 0" | ||
| exit 1 | ||
| fi | ||
| timeout: 360 | ||
File renamed without changes.
20 changes: 20 additions & 0 deletions
20
e2e-tests/tests/monitoring/08-check-mountpoint-expose.yaml
This file contains hidden or 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,20 @@ | ||
| apiVersion: kuttl.dev/v1beta1 | ||
| kind: TestStep | ||
| commands: | ||
| - script: |- | ||
| set -o errexit | ||
| set -o xtrace | ||
|
|
||
| source ../../functions | ||
| # TODO: turn on after changes in PMM: PMM-14832 | ||
| # series_fetched=$(curl --insecure -G "https://admin:admin@$(get_service_ip monitoring-service)/prometheus/api/v1/query_range" \ | ||
| # --data-urlencode "query=node_filesystem_free_bytes{mountpoint=\"/pgdata\"}" \ | ||
| # --data-urlencode "start=$(($(date +%s) - 300))" \ | ||
| # --data-urlencode "end=$(date +%s)" \ | ||
| # --data-urlencode "step=5s" | jq -r '.stats.seriesFetched') | ||
| # | ||
| # if [[ $series_fetched == 0 ]]; then | ||
| # echo "seriesFetched is 0" | ||
| # exit 1 | ||
| # fi | ||
| timeout: 360 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When is this node_exporter task is going to be merged? Asking because maybe it is best to remove these todos and the commenting and merge this PR only when the respective node_exporter PR is merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean we should remove only this part, i.e. the tests, or hold off on the whole PR?
I would prefer not to delay the entire PR, because that could leave us waiting quite a while for both the PMM release and our own release.
If we merge it now, we will be able to use it as soon as PMM is released.
Can you explain a bit more why you think the whole PR should wait?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so are we going to be merge it with these tests commented out? I dont fully understand whats the plan.