-
Notifications
You must be signed in to change notification settings - Fork 0
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
COSI-46 expose metrics service in kubernetes and E2E test #72
base: feature/COSI-19-add-s3-and-iam-metrics
Are you sure you want to change the base?
COSI-46 expose metrics service in kubernetes and E2E test #72
Conversation
Issue: COSI-46
Issue: COSI-46
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
@@ Coverage Diff @@
## feature/COSI-19-add-s3-and-iam-metrics #72 +/- ##
=======================================================================
Coverage 94.62% 94.62%
=======================================================================
Files 10 10
Lines 782 782
=======================================================================
Hits 740 740
Misses 36 36
Partials 6 6 |
Issue: COSI-46
1e81b7e
to
e477885
Compare
b1e6d12
to
7e74398
Compare
|
||
log_and_run curl -f http://localhost:$LOCAL_PORT/metrics > metrics_output.txt | ||
|
||
if [ $? -eq 0 ]; then |
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.
I think you might lose the curl return code with the pipe | tee
https://unix.stackexchange.com/a/14276
# Log command execution to the log file for debugging | ||
log_and_run() { | ||
"$@" 2>&1 | tee -a "$LOG_FILE" | ||
} |
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.
Could this be replaced with the set -x
option on bash
ports: | ||
- protocol: TCP | ||
port: {{ .Values.metrics.port }} | ||
targetPort: {{ .Values.metrics.port }} |
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.
missing newline at end of some files
E2E tests are facing some issues, which I am debugging. But still reviewable.
This pull request introduces several changes to enable and configure metrics collection for the Scality COSI driver. The main changes include adding a new metrics service, updating deployment configurations to expose metrics, and modifying CI workflows to include metrics testing. This includes E2E tests
Metrics Collection Enablement:
New Metrics Service:
Service
definition for the metrics endpoint inhelm/scality-cosi-driver/templates/service.yaml
.Deployment Configuration:
helm/scality-cosi-driver/templates/deployment.yaml
to include Prometheus annotations and set the metrics address. [1] [2]kustomize/base/deployment.yaml
to include Prometheus annotations and set the metrics address. [1] [2]CI Workflow Updates:
.github/scripts/e2e_tests_metrics_service.sh
to test metrics collection during CI runs..github/workflows/ci-e2e-tests.yml
to include the new metrics testing script in the E2E tests.RBAC Adjustments:
kustomize/base/rbac.yaml
to include permissions for services and endpoints to support metrics collection.These changes collectively enable the Scality COSI driver to expose metrics that can be scraped by Prometheus, ensuring better observability and monitoring.