-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #873 from emmartins/WFLY-18942
[WFLY-17678] [WFLY-18942] Micrometer QS on OpenShift
- Loading branch information
Showing
7 changed files
with
53 additions
and
36 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Quickstarts that should not be tested on OpenShift. | ||
# One per line with no trailing spaces, and make sure to have a newline at the end | ||
# microprofile-reactive-messaging-kafka | ||
micrometer | ||
|
34 changes: 6 additions & 28 deletions
34
.ci/openshift-ci/build-root/scripts/qs-overrides/micrometer/overridable-functions.sh
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,31 +1,9 @@ | ||
function runPostHelmInstallCommands() { | ||
oc apply -f charts/opentelemetry-collector.yaml | ||
echo "Applying all OpenTelemetry Collector resources" | ||
oc apply -f charts/opentelemetry-collector.yaml | ||
} | ||
|
||
|
||
function getMvnVerifyExtraArguments() | ||
{ | ||
mgmtHostRoute=$(oc get route otelcol-grpc --template='{{ .spec.host }}') | ||
echo "-Dopentelemetry.collector.host=https://opentelemetry" | ||
} | ||
|
||
|
||
function cleanPrerequisites() | ||
{ | ||
echo "Removing all opentelemetry-tracing resources" | ||
oc delete route otelcol-grpc | ||
oc delete route otelcol-prometheus | ||
oc delete service opentelemetrycollector | ||
oc delete deployment opentelemetrycollector | ||
oc delete configmap collector-config | ||
} | ||
|
||
|
||
function testsFailed() { | ||
echo "----> Getting status of all pods" | ||
oc get pods | ||
echo "----> Checking logs for postgres pod" | ||
echo oc logs todo-backend-postgresql-0 | ||
echo "----> Checking events" | ||
oc get events | ||
} | ||
function cleanPrerequisites() { | ||
echo "Deleting all OpenTelemetry Collector resources" | ||
oc delete -f charts/opentelemetry-collector.yaml | ||
} |
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,22 @@ | ||
=== Install OpenTelemetry Collector on OpenShift | ||
|
||
The functionality of this quickstart depends on a running instance of the https://opentelemetry.io/docs/collector/[OpenTelemetry Collector]. | ||
|
||
To deploy and configure the OpenTelemetry Collector, you will need to apply a set of configurations to your OpenShift cluster: | ||
|
||
[source,options="nowrap",subs="+attributes"] | ||
---- | ||
include::charts/opentelemetry-collector.yaml[] | ||
---- | ||
|
||
To make things simpler, you can find these commands in `charts/opentelemetry-collector.yaml`, and to apply them run the following command in your terminal: | ||
|
||
[source] | ||
---- | ||
$ oc apply -f charts/opentelemetry-collector.yaml | ||
---- | ||
|
||
[NOTE] | ||
==== | ||
When done with the quickstart, the `oc delete -f charts/opentelemetry-collector.yaml` command may be used to revert the applied 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