Skip to content

Commit

Permalink
added other confluent cloud resources to the sample collector.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
haihongren committed Nov 20, 2023
1 parent f8503af commit 94824e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions other-examples/collector/confluentcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ To run the example: add in the key files, set the environment variables, and run
export NEW_RELIC_API_KEY=<your_api_key>
export NEW_RELIC_OTLP_ENDPOINT=https://otlp.nr-data.net
export CLUSTER_ID=<your_cluster_id>
export KSQL_CLUSTER_ID=<your_ksql_cluster_id>
export CONNECTOR_ID=<your_connector_id>
export SCHEMA_REGISTRY_ID=<your_schema_registry_id>
export CLUSTER_API_KEY=<your_cluster_api_key>
export CLUSTER_API_SECRET=<your_cluster_api_secret>
export CLUSTER_BOOTSTRAP_SERVER=<your_cluster_bootstrap_server>
Expand Down
7 changes: 7 additions & 0 deletions other-examples/collector/confluentcloud/collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ receivers:
params:
"resource.kafka.id":
- $CLUSTER_ID
"resource.ksql.id":
- $KSQL_CLUSTER_ID
"resource.connector.id"
- $CONNECTOR_ID"
"resource.schema_registry.id"
- $SCHEMA_REGISTRY_ID

exporters:
otlp:
endpoint: $NEW_RELIC_OTLP_ENDPOINT
Expand Down

0 comments on commit 94824e0

Please sign in to comment.