Skip to content

Commit

Permalink
[Tanzu Tile] Add host.name resource attribute (#5810)
Browse files Browse the repository at this point in the history
  • Loading branch information
crobert-1 authored Jan 21, 2025
1 parent 4558006 commit 7daef52
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions deployments/cloudfoundry/bosh/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ If no configuration file is provided, a template file will be populated using th

Required Properties:

- `cloudfoundry.deployment.hostname`
- `cloudfoundry.rlp_gateway.endpoint`
- `cloudfoundry.uaa.endpoint`
- `cloudfoundry.uaa.password`
Expand Down
3 changes: 3 additions & 0 deletions deployments/cloudfoundry/bosh/jobs/splunk-otel-collector/spec
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ properties:
description: "The Splunk realm in which your organization resides -- used to derive splunk.ingest_url and splunk.api_url if those are not provided"
required: false

cloudfoundry.director.hostname:
description: "The hostname of the Cloud Foundry BOSH director"

cloudfoundry.rlp_gateway.endpoint:
description: "The URL of the RLP Gateway that acts as a proxy for the firehose"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ receivers:
<% end %>

processors:
resourcedetection:
detectors: [system]
resource:
attributes:
- key: host.name
value: <%= p('cloudfoundry.director.hostname') %>
action: upsert

exporters:
signalfx:
Expand All @@ -43,6 +46,6 @@ service:
pipelines:
metrics:
receivers: [cloudfoundry]
processors: [resourcedetection]
processors: [resource]
exporters: [signalfx]
<% end %>
2 changes: 2 additions & 0 deletions deployments/cloudfoundry/tile/tile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ packages:
release: splunk-otel-collector
properties:
cloudfoundry:
director:
hostname: (( $director.hostname ))
rlp_gateway:
endpoint: https://log-stream.(( ..cf.cloud_controller.system_domain.value ))
shard_id: (( .properties.cloudfoundry_rlp_gateway_shard_id.value ))
Expand Down

0 comments on commit 7daef52

Please sign in to comment.