Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions e2e-tests/tests/monitoring-pmm3/08-check-mountpoint-expose.yaml
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
Comment on lines +1 to +20
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor Author

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?

Copy link
Copy Markdown
Contributor

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.

20 changes: 20 additions & 0 deletions e2e-tests/tests/monitoring/08-check-mountpoint-expose.yaml
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
Loading
Loading