Add old config format cause the otlp OC handler only supports OAP server 9.2.0 (#9562)

This commit is contained in:
John Duncan 2022-09-05 15:18:45 +08:00 committed by GitHub
parent 5ad3782231
commit 4adf8b1933
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 1 deletions

View File

@ -27,6 +27,14 @@ processors:
batch:
exporters:
####################################################################################
# If you want to use otlp exporter please ensure that your OAP version is >= 9.2.0 #
# or you can use oc exporter, The config format should be: #
# opencensus: #
# endpoint: "oap:11800" #
# tls: #
# insecure: true #
####################################################################################
otlp:
endpoint: oap:11800
tls:
@ -39,4 +47,8 @@ service:
processors:
- batch
exporters:
#########################################
# oc exporter config format: #
# - opencensus #
#########################################
- otlp

View File

@ -25,6 +25,14 @@ processors:
batch:
exporters:
####################################################################################
# If you want to use otlp exporter please ensure that your OAP version is >= 9.2.0 #
# or you can use oc exporter, The config format should be: #
# opencensus: #
# endpoint: "oap:11800" #
# tls: #
# insecure: true #
####################################################################################
otlp:
endpoint: oap:11800
tls:
@ -39,5 +47,9 @@ service:
processors:
- batch
exporters:
#########################################
# oc exporter config format: #
# - opencensus #
#########################################
- logging
- otlp
- otlp

View File

@ -26,6 +26,14 @@ processors:
batch:
exporters:
####################################################################################
# If you want to use otlp exporter please ensure that your OAP version is >= 9.2.0 #
# or you can use oc exporter, The config format should be: #
# opencensus: #
# endpoint: "oap:11800" #
# tls: #
# insecure: true #
####################################################################################
otlp:
endpoint: "oap:11800" # The OAP Server address
###############################################################################
@ -47,4 +55,8 @@ service:
metrics:
receivers: [prometheus]
processors: [batch]
#########################################
# oc exporter config format: #
# exporters: [opencensus,logging] #
#########################################
exporters: [otlp, logging]