Skip to content

Commit

Permalink
Partially revert usage of ${env:ENV} style syntax in examples (#17546)
Browse files Browse the repository at this point in the history
Partially revert usage of  style syntax in examples
  • Loading branch information
mx-psi authored Jan 12, 2023
1 parent 8b71f1b commit 98368b6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion exporter/datadogexporter/examples/collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ exporters:
## @param endpoint - string - required
## Endpoint where to send telemetry. On gateway mode, we set it to the gateway host IP.
#
# endpoint: ${env:GATEWAY_HOST_IP}:4317
# endpoint: ${GATEWAY_HOST_IP}:4317

# The Datadog exporter is necessary for exporting telemetry signals to Datadog.
datadog:
Expand Down
4 changes: 2 additions & 2 deletions exporter/sapmexporter/examples/signalfx-collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extensions:
health_check:
http_forwarder:
egress:
endpoint: "https://api.${env:SFX_REALM}.signalfx.com"
endpoint: "https://api.${SFX_REALM}.signalfx.com"
zpages:
receivers:
sapm:
Expand Down Expand Up @@ -62,7 +62,7 @@ exporters:
access_token: "${env:SFX_TOKEN}"
# This expects SFX_REALM environment variable to contain the realm (e.g. us0).
# Alternatively, specify the relm directly in the endpoint url here.
endpoint: "https://ingest.${env:SFX_REALM}.signalfx.com/v2/trace"
endpoint: "https://ingest.${SFX_REALM}.signalfx.com/v2/trace"
# Metrics + Events
signalfx:
# See above for SFX_TOKEN and SFX_REALM.
Expand Down
4 changes: 2 additions & 2 deletions exporter/sapmexporter/examples/signalfx-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ data:
health_check:
http_forwarder:
egress:
endpoint: "https://api.${env:SFX_REALM}.signalfx.com"
endpoint: "https://api.${SFX_REALM}.signalfx.com"
zpages:
receivers:
sapm:
Expand Down Expand Up @@ -68,7 +68,7 @@ data:
# Traces
sapm:
access_token: "${env:SFX_TOKEN}"
endpoint: "https://ingest.${env:SFX_REALM}.signalfx.com/v2/trace"
endpoint: "https://ingest.${SFX_REALM}.signalfx.com/v2/trace"
# Metrics
signalfx:
access_token: "${env:SFX_TOKEN}"
Expand Down
2 changes: 1 addition & 1 deletion extension/basicauthextension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extensions:
htpasswd:
file: .htpasswd
inline: |
${env:BASIC_AUTH_USERNAME}:${env:BASIC_AUTH_PASSWORD}
${BASIC_AUTH_USERNAME}:${BASIC_AUTH_PASSWORD}
basicauth/client:
client_auth:
Expand Down
10 changes: 5 additions & 5 deletions receiver/kubeletstatsreceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ receivers:
kubeletstats:
collection_interval: 20s
auth_type: "serviceAccount"
endpoint: "https://${env:K8S_NODE_NAME}:10250"
endpoint: "https://${K8S_NODE_NAME}:10250"
insecure_skip_verify: true
exporters:
file:
Expand All @@ -95,7 +95,7 @@ receivers:
kubeletstats:
collection_interval: 20s
auth_type: "none"
endpoint: "http://${env:K8S_NODE_NAME}:10255"
endpoint: "http://${K8S_NODE_NAME}:10255"
exporters:
file:
path: "fileexporter.txt"
Expand Down Expand Up @@ -127,7 +127,7 @@ receivers:
kubeletstats:
collection_interval: 10s
auth_type: "serviceAccount"
endpoint: "${env:K8S_NODE_NAME}:10250"
endpoint: "${K8S_NODE_NAME}:10250"
insecure_skip_verify: true
extra_metadata_labels:
- container.id
Expand All @@ -146,7 +146,7 @@ receivers:
kubeletstats:
collection_interval: 10s
auth_type: "serviceAccount"
endpoint: "${env:K8S_NODE_NAME}:10250"
endpoint: "${K8S_NODE_NAME}:10250"
insecure_skip_verify: true
extra_metadata_labels:
- k8s.volume.type
Expand All @@ -170,7 +170,7 @@ receivers:
kubeletstats:
collection_interval: 10s
auth_type: "serviceAccount"
endpoint: "${env:K8S_NODE_NAME}:10250"
endpoint: "${K8S_NODE_NAME}:10250"
insecure_skip_verify: true
metric_groups:
- node
Expand Down
2 changes: 1 addition & 1 deletion receiver/prometheusreceiver/testdata/config_k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ prometheus:
selectors:
- role: pod
# only scrape data from pods running on the same node as collector
field: "spec.nodeName=${env:NODE_NAME}"
field: "spec.nodeName=${NODE_NAME}"
relabel_configs:
# scrape pods annotated with "prometheus.io/scrape: true"
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
Expand Down

0 comments on commit 98368b6

Please sign in to comment.