-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from lightstep/LS-61382
chore: Update all references to 0.103.0 and 0.24.0
- Loading branch information
Showing
9 changed files
with
106 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,16 +15,16 @@ jobs: | |
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.10.0 | ||
|
||
- name: Add Helm Repos | ||
run: | | ||
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts | ||
helm repo add jetstack https://charts.jetstack.io | ||
helm repo add prometheus https://prometheus-community.github.io/helm-charts | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
python-version: "3.9" | ||
check-latest: true | ||
|
||
- name: Set up chart-testing | ||
|
@@ -45,19 +45,19 @@ jobs: | |
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
if: steps.list-changed.outputs.changed == 'true' | ||
- name: Secret setup | ||
|
||
- name: Secret setup | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
kubectl create namespace opentelemetry | ||
kubectl create secret generic otel-collector-secret -n opentelemetry --from-literal=LS_TOKEN=TEST_TOKEN | ||
- name: Dependencies | ||
- name: Dependencies | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version v1.8.0 --set installCRDs=true --wait | ||
helm install opentelemetry-operator open-telemetry/opentelemetry-operator -n opentelemetry-operator --create-namespace --wait | ||
helm install opentelemetry-operator open-telemetry/opentelemetry-operator -n opentelemetry-operator --create-namespace --set manager.collectorImage.repository="otel/opentelemetry-collector-contrib" --wait | ||
- name: Run chart-testing collector-k8s (install) | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct install --config ct.yaml --charts ./charts/collector-k8s --namespace opentelemetry --debug | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,54 @@ | ||
## recommended-collector-config | ||
|
||
**Recommended** chart for sending Prometheus metrics without Kubernetes to ServiceNow Cloud Observability using OpenTelemetry-native metric collection and the OpenTelemetry Operator. | ||
|
||
# Locally Testing OpenTelemetry Collector Builder | ||
|
||
This program generates a custom OpenTelemetry Collector binary based on the example configuration. | ||
|
||
## Requirements | ||
|
||
- **Go Binaries** allows developers to install Go programs from the command-line, without requiring Go to be installed on your machine. | ||
|
||
## Installation | ||
|
||
To install the OpenTelemetry Collector builder, run: | ||
|
||
```bash | ||
cd ~/otel-collector-charts/arrow | ||
GO111MODULE=on go install go.opentelemetry.io/collector/cmd/builder@latest | ||
``` | ||
|
||
### Updating to latest version | ||
|
||
1. Open the otelcolarrow-build.yaml file and update any references to your desired version. | ||
|
||
2. Uncomment lines in example/config.yaml that refer to required components, such as: | ||
|
||
```yaml | ||
# - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor v0.103.0 | ||
# - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver v0.103.0 | ||
# - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver v0.103.0 | ||
# - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver v0.103.0 | ||
# - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver v0.103.0 | ||
``` | ||
|
||
### Usage | ||
|
||
- Generate the custom collector binary: | ||
|
||
```bash | ||
builder --config ./otelcolarrow-build.yaml | ||
``` | ||
|
||
- Run the custom collector: | ||
|
||
```bash | ||
./dist/otelarrowcol --config ../example/vm/config.yaml | ||
``` | ||
|
||
#### Troubleshooting | ||
|
||
- Note this example config does not use the concurrent batch processor. Uncomment this line instead: | ||
|
||
` - gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.103.0` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters