Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce OpenTelemetry Integration chart #258

Merged
merged 14 commits into from
Jul 27, 2023
23 changes: 23 additions & 0 deletions .github/workflows/otel-integration-helm-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Otel Integration Helm Install Test

on:
pull_request:
paths:
- 'otel-integration/k8s-helm/**'

jobs:
collector-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup
uses: ./.github/actions/setup
with:
create-kind-cluster: "true"
- name: Setup Secret
run: kubectl create secret generic coralogix-keys --from-literal=PRIVATE_KEY=123
- name: Run chart-testing (install)
run: ct install --namespace default --charts otel-integration/k8s-helm
41 changes: 41 additions & 0 deletions .github/workflows/otel-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

name: OpenTelemetry-Integration-Chart

on:
push:
branches: master
paths:
- 'otel-integration/k8s-helm/**'

env:
CHART_VERSION: $(yq eval '.version' otel-integration/k8s-helm/Chart.yaml)
CHART_NAME: otel-integration
ARTIFACTORY_URL: https://cgx.jfrog.io/artifactory/
ARTIFACTORY_USERNAME: integrations-actions

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2.4.0
-
name: Setup Helm Repo
run: |
helm repo add coralogix-charts-virtual ${{ env.ARTIFACTORY_URL }}coralogix-charts-virtual --username ${{ env.ARTIFACTORY_USERNAME }} --password ${{ secrets.ARTIFACTORY_NONUSER_ACCESS_TOKEN }}
helm repo add opentelemetry https://open-telemetry.github.io/opentelemetry-helm-charts
helm repo update
helm dependency build ./otel-integration/k8s-helm/
cd otel-integration/k8s-helm
helm package .
-
name: Setup JFrog CLI
uses: jfrog/setup-jfrog-cli@v2.1.0
with:
version: 2.12.1
-
name: use-jfrog-cli
run: |
cd otel-integration/k8s-helm
jfrog rt upload --access-token ${{ secrets.ARTIFACTORY_NONUSER_ACCESS_TOKEN }} "${{ env.CHART_NAME }}-*.tgz" coralogix-charts --url ${{ env.ARTIFACTORY_URL }}
7 changes: 7 additions & 0 deletions otel-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

## OpenTelemtry-Integration

### v0.0.1 / 2023-07-21

* [FEATURE] Add new chart
3 changes: 3 additions & 0 deletions otel-integration/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# OpenTelemetry Integration

The OpenTelemetry integration projects offers a full-fledged integration to collect and export telemetry signals from your infrastructure and applications. Currently this integration is available for Kubernetes on Linux platforms, please see the [`k8s-helm`](./k8s-helm) subdirectory for installation instructions.
23 changes: 23 additions & 0 deletions otel-integration/dashboard/k8s/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Installation

* Copy the [otel-agent-dashboard.json](./assets/otel-agent-dashboard.json) file content
* Go to your hosted grafana
* Press the `Create` tab
* Press the `Import` tab
* Paste the copied content

### Host Metrics

![Alt text](./assets/host-metrics.png)

### Span Metrics

![Alt text](./assets/spanmetrics.png)

### Kubernetes Pod

![Alt text](./assets/kubernetes-pod.png)

### Otel Agent

![Alt text](./assets/dashboard-screenshot.jpg)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading