Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: sallyom <[email protected]>
  • Loading branch information
sallyom committed Jun 21, 2024
1 parent dc012ed commit 60f5cf4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 33 deletions.
48 changes: 23 additions & 25 deletions .github/workflows/chatbot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,31 +48,29 @@ jobs:
run: |
pip install --no-cache-dir opentelemetry-sdk opentelemetry-exporter-otlp opentelemetry-instrumentation
- name: Configure OpenTelemetry Collector
run: |
echo '
receivers:
otlp:
protocols:
grpc:
endpoint: "0.0.0.0:4317"
http:
endpoint: "0.0.0.0:4318"
exporters:
otlphttp:
endpoint: https://apps.platform-sts.pcbk.p1.openshiftapps.com
tls:
insecure: false
cert_pem: ${{ secrets.CLIENT_CERT_ROSA_OTEL }}
key_pem: ${{ secrets.CLIENT_KEY_ROSA_OTEL }}
ca_pem: ${{ secrets.SERVER_CERT_ROSA_OTEL }}
logging:
verbosity: detailed
service:
pipelines:
traces:
receivers: [otlp]
exporters: [logging,otlphttp]
- name: Configure OpenTelemetry Collector
run: |
echo '
receivers:
otlp:
protocols:
grpc:
http:
exporters:
otlphttp:
endpoint: https://otc.apps.platform-sts.pcbk.p1.openshiftapps.com
tls:
insecure: false
cert_pem: ${{ secrets.OTEL_SERVER_CERT }}
key_pem: ${{ secrets.OTEL_SERVER_KEY }}
ca_pem: ${{ secrets.OTEL_CLIENT_CA }}
debug:
verbosity: detailed
service:
pipelines:
traces:
receivers: [otlp]
exporters: [debug,otlphttp]
' > otel-collector-config.yaml
- name: Run OpenTelemetry Collector
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/test-trace-steps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,22 @@ jobs:
otlp:
protocols:
grpc:
endpoint: "0.0.0.0:4317"
http:
endpoint: "0.0.0.0:4318"
exporters:
otlphttp:
endpoint: https://apps.platform-sts.pcbk.p1.openshiftapps.com
endpoint: https://otc.apps.platform-sts.pcbk.p1.openshiftapps.com
tls:
insecure: false
cert_pem: ${{ secrets.CLIENT_CERT_ROSA_OTEL }}
key_pem: ${{ secrets.CLIENT_KEY_ROSA_OTEL }}
ca_pem: ${{ secrets.SERVER_CERT_ROSA_OTEL }}
logging:
cert_pem: ${{ secrets.OTEL_SERVER_CERT }}
key_pem: ${{ secrets.OTEL_SERVER_KEY }}
ca_pem: ${{ secrets.OTEL_CLIENT_CA }}
debug:
verbosity: detailed
service:
pipelines:
traces:
receivers: [otlp]
exporters: [logging,otlphttp]
exporters: [debug,otlphttp]
' > otel-collector-config.yaml
- name: Run OpenTelemetry Collector
Expand Down

0 comments on commit 60f5cf4

Please sign in to comment.