-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit enables the pulpcore API metrics collection. closes #1006 Co-authored-by: André "decko" de Brito <[email protected]>
- Loading branch information
1 parent
d21b05d
commit d69e413
Showing
21 changed files
with
587 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
DEPLOYMENT_NAME="example-pulp-api" | ||
|
||
|
||
echo "Validating otel-collector-config file ..." | ||
kubectl exec -c otel-collector-sidecar deployment/$DEPLOYMENT_NAME -- /otelcol validate --config=/etc/otelcol-contrib/otel-collector-config.yaml | ||
|
||
echo "Verifying if metrics service is available ..." | ||
HTTP_STATUS=$(kubectl exec deployment/$DEPLOYMENT_NAME -- curl -sw "%{http_code}" -o /dev/null localhost:8889/metrics) | ||
if [[ "$HTTP_STATUS" != 200 ]]; then | ||
echo "error: ${HTTP_STATUS}" | ||
exit 1 | ||
fi | ||
|
||
echo "Verifying if \"http_server\" string is found in metrics endpoint ..." | ||
kubectl exec deployment/$DEPLOYMENT_NAME -- curl -s localhost:8889/metrics | grep http_server &>/dev/null | ||
|
||
echo "Telemetry ok" |
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 @@ | ||
Added the OpenTelemetry support as sidecar container for pulp-api pods. |
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
16 changes: 16 additions & 0 deletions
16
apis/repo-manager.pulpproject.org/v1beta2/zz_generated.deepcopy.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,30 @@ | ||
apiVersion: repo-manager.pulpproject.org/v1beta2 | ||
kind: Pulp | ||
metadata: | ||
name: example-pulp | ||
spec: | ||
telemetry: | ||
enabled: true | ||
image_version: stable | ||
image_web_version: stable | ||
api: | ||
replicas: 1 | ||
content: | ||
replicas: 1 | ||
worker: | ||
replicas: 1 | ||
web: | ||
replicas: 1 | ||
database: | ||
postgres_storage_class: standard | ||
file_storage_access_mode: "ReadWriteOnce" | ||
file_storage_size: "2Gi" | ||
file_storage_storage_class: standard | ||
ingress_type: nodeport | ||
pulp_settings: | ||
api_root: "/pulp/" | ||
allowed_export_paths: | ||
- /tmp | ||
allowed_import_paths: | ||
- /tmp | ||
analytics: false |
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
Oops, something went wrong.