You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2022/08/21 14:09:16 UTC
[skywalking-showcase] branch otlp updated (fb9932a -> 7ddd35b)
This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a change to branch otlp
in repository https://gitbox.apache.org/repos/asf/skywalking-showcase.git
discard fb9932a Use OpenTelemetry native metrics exporter protocol
new 7ddd35b Use OpenTelemetry native metrics exporter protocol
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (fb9932a)
\
N -- N -- N refs/heads/otlp (7ddd35b)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
deploy/platform/docker/docker-compose.cluster.yaml | 2 +-
deploy/platform/docker/docker-compose.single-node.yaml | 2 +-
deploy/platform/kubernetes/feature-cluster/resources.yaml | 4 ++--
deploy/platform/kubernetes/feature-single-node/resources.yaml | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
[skywalking-showcase] 01/01: Use OpenTelemetry native metrics exporter protocol
Posted by ke...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch otlp
in repository https://gitbox.apache.org/repos/asf/skywalking-showcase.git
commit 7ddd35bd31a4e48b90da20a11749f7b77cfc956c
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Sun Aug 21 22:09:09 2022 +0800
Use OpenTelemetry native metrics exporter protocol
---
.github/workflows/publish-images.yaml | 1 +
deploy/platform/docker/config/mysql-otel-collector-config.yaml | 8 ++++----
deploy/platform/docker/config/otel-collector-config.yaml | 4 ++--
deploy/platform/docker/docker-compose.cluster.yaml | 3 ++-
deploy/platform/docker/docker-compose.single-node.yaml | 3 ++-
deploy/platform/kubernetes/feature-cluster/resources.yaml | 8 ++++++--
.../kubernetes/feature-istiod-monitor/open-telemetry.yaml | 4 ++--
.../kubernetes/feature-kubernetes-monitor/open-telemetry.yaml | 4 ++--
deploy/platform/kubernetes/feature-mysql/open-telemetry.yaml | 4 ++--
deploy/platform/kubernetes/feature-single-node/resources.yaml | 4 +++-
deploy/platform/kubernetes/feature-so11y/open-telemetry.yaml | 4 ++--
deploy/platform/kubernetes/feature-vm/open-telemetry.yaml | 4 ++--
12 files changed, 30 insertions(+), 21 deletions(-)
diff --git a/.github/workflows/publish-images.yaml b/.github/workflows/publish-images.yaml
index 30960a0..c8f698f 100644
--- a/.github/workflows/publish-images.yaml
+++ b/.github/workflows/publish-images.yaml
@@ -20,6 +20,7 @@ on:
push:
branches:
- main
+ - otlp
env:
HUB: ghcr.io/apache/skywalking-showcase
diff --git a/deploy/platform/docker/config/mysql-otel-collector-config.yaml b/deploy/platform/docker/config/mysql-otel-collector-config.yaml
index ce35ee3..17f0846 100644
--- a/deploy/platform/docker/config/mysql-otel-collector-config.yaml
+++ b/deploy/platform/docker/config/mysql-otel-collector-config.yaml
@@ -15,19 +15,19 @@
receivers:
prometheus:
- config:
+ config:
scrape_configs:
- job_name: 'mysql-monitoring'
scrape_interval: 10s
static_configs:
- targets: ['mysql-service:9104']
- labels:
+ labels:
host_name: showcase
processors:
batch:
exporters:
- opencensus:
+ otlp:
endpoint: oap:11800
tls:
insecure: true
@@ -39,4 +39,4 @@ service:
processors:
- batch
exporters:
- - opencensus
\ No newline at end of file
+ - otlp
diff --git a/deploy/platform/docker/config/otel-collector-config.yaml b/deploy/platform/docker/config/otel-collector-config.yaml
index bff9b32..0b44a52 100644
--- a/deploy/platform/docker/config/otel-collector-config.yaml
+++ b/deploy/platform/docker/config/otel-collector-config.yaml
@@ -27,7 +27,7 @@ processors:
batch:
exporters:
- opencensus:
+ otlp:
endpoint: "oap:11800"
insecure: true
logging:
@@ -38,4 +38,4 @@ service:
metrics:
receivers: [ prometheus ]
processors: [ batch ]
- exporters: [ opencensus,logging ]
+ exporters: [ otlp,logging ]
diff --git a/deploy/platform/docker/docker-compose.cluster.yaml b/deploy/platform/docker/docker-compose.cluster.yaml
index a15cb64..9f99126 100644
--- a/deploy/platform/docker/docker-compose.cluster.yaml
+++ b/deploy/platform/docker/docker-compose.cluster.yaml
@@ -53,7 +53,8 @@ services:
SW_CLUSTER_ZK_HOST_PORT: zookeeper:2181 # @feature: cluster; set up the cluster coordinator address
SW_HEALTH_CHECKER: default # @feature: health-check;
SW_OTEL_RECEIVER: default # @feature: vm; enable the OC receiver that receives the VM metrics
- SW_OTEL_RECEIVER_ENABLED_OC_RULES: vm,mysql # @feature: vm; enable the OC rules that analyse the VM metrics
+ SW_OTEL_RECEIVER_ENABLED_HANDLERS: otlp
+ SW_OTEL_RECEIVER_ENABLED_OTLP_RULES: vm,mysql # @feature: vm; enable the OC rules that analyse the VM metrics
SW_STORAGE: elasticsearch
SW_STORAGE_ES_CLUSTER_NODES: elasticsearch:9200
SW_TELEMETRY: prometheus # @feature: so11y; expose the metrics of self o11y through prometheus
diff --git a/deploy/platform/docker/docker-compose.single-node.yaml b/deploy/platform/docker/docker-compose.single-node.yaml
index 2089ff0..2373a16 100644
--- a/deploy/platform/docker/docker-compose.single-node.yaml
+++ b/deploy/platform/docker/docker-compose.single-node.yaml
@@ -43,7 +43,8 @@ services:
environment:
SW_HEALTH_CHECKER: default # @feature: health-check;
SW_OTEL_RECEIVER: default # @feature: vm; enable the OC receiver that receives the VM metrics
- SW_OTEL_RECEIVER_ENABLED_OC_RULES: vm,mysql # @feature: vm; enable the OC rules that analyse the VM metrics
+ SW_OTEL_RECEIVER_ENABLED_HANDLERS: otlp
+ SW_OTEL_RECEIVER_ENABLED_OTLP_RULES: vm,mysql # @feature: vm; enable the OC rules that analyse the VM metrics
SW_STORAGE: elasticsearch
SW_STORAGE_ES_CLUSTER_NODES: elasticsearch:9200
SW_TELEMETRY: prometheus # @feature: so11y; expose the metrics of self o11y through prometheus
diff --git a/deploy/platform/kubernetes/feature-cluster/resources.yaml b/deploy/platform/kubernetes/feature-cluster/resources.yaml
index 4d07499..c6ccf21 100644
--- a/deploy/platform/kubernetes/feature-cluster/resources.yaml
+++ b/deploy/platform/kubernetes/feature-cluster/resources.yaml
@@ -153,7 +153,9 @@ spec:
value: "-Dmode=init" # @feature: cluster; set the OAP mode to "init" so the job can complete
- name: SW_OTEL_RECEIVER
value: default
- - name: SW_OTEL_RECEIVER_ENABLED_OC_RULES
+ - name: SW_OTEL_RECEIVER_ENABLED_HANDLERS
+ value: otlp
+ - name: SW_OTEL_RECEIVER_ENABLED_OTLP_RULES
value: vm,oap,mysql
- name: SW_STORAGE
value: elasticsearch
@@ -231,7 +233,9 @@ spec:
value: default
- name: SW_OTEL_RECEIVER
value: default # @feature: so11y;,mysql;kubernetes-monitor enable OpenTelemetry receiver to receive OpenTelemetry metrics
- - name: SW_OTEL_RECEIVER_ENABLED_OC_RULES
+ - name: SW_OTEL_RECEIVER_ENABLED_HANDLERS
+ value: otlp
+ - name: SW_OTEL_RECEIVER_ENABLED_OTLP_RULES
# @feature: vm; enable vm rules to analyze VM metrics
# @feature: so11y; enable oap rules to analyze OAP metrics
# @feature: kubernetes-monitor; enable rules to analyze Kubernetes Cluster/Node/Service metrics
diff --git a/deploy/platform/kubernetes/feature-istiod-monitor/open-telemetry.yaml b/deploy/platform/kubernetes/feature-istiod-monitor/open-telemetry.yaml
index ac8b31d..2eff014 100644
--- a/deploy/platform/kubernetes/feature-istiod-monitor/open-telemetry.yaml
+++ b/deploy/platform/kubernetes/feature-istiod-monitor/open-telemetry.yaml
@@ -30,9 +30,9 @@ data:
pipelines:
metrics:
receivers: [ prometheus ]
- exporters: [ logging, opencensus ]
+ exporters: [ logging, otlp ]
exporters:
- opencensus:
+ otlp:
endpoint: "oap:11800"
insecure: true
logging:
diff --git a/deploy/platform/kubernetes/feature-kubernetes-monitor/open-telemetry.yaml b/deploy/platform/kubernetes/feature-kubernetes-monitor/open-telemetry.yaml
index 6ee488a..e352eb9 100644
--- a/deploy/platform/kubernetes/feature-kubernetes-monitor/open-telemetry.yaml
+++ b/deploy/platform/kubernetes/feature-kubernetes-monitor/open-telemetry.yaml
@@ -30,9 +30,9 @@ data:
pipelines:
metrics:
receivers: [ prometheus ]
- exporters: [ logging, opencensus ]
+ exporters: [ logging, otlp ]
exporters:
- opencensus:
+ otlp:
endpoint: "oap:11800"
tls:
insecure: true
diff --git a/deploy/platform/kubernetes/feature-mysql/open-telemetry.yaml b/deploy/platform/kubernetes/feature-mysql/open-telemetry.yaml
index 3e7644f..d5a643e 100644
--- a/deploy/platform/kubernetes/feature-mysql/open-telemetry.yaml
+++ b/deploy/platform/kubernetes/feature-mysql/open-telemetry.yaml
@@ -47,7 +47,7 @@ data:
processors:
batch:
exporters:
- opencensus:
+ otlp:
endpoint: oap:11800
tls:
insecure: true
@@ -61,7 +61,7 @@ data:
processors:
- batch
exporters:
- - opencensus
+ - otlp
---
apiVersion: apps/v1
diff --git a/deploy/platform/kubernetes/feature-single-node/resources.yaml b/deploy/platform/kubernetes/feature-single-node/resources.yaml
index 6244c77..5fdd5d6 100644
--- a/deploy/platform/kubernetes/feature-single-node/resources.yaml
+++ b/deploy/platform/kubernetes/feature-single-node/resources.yaml
@@ -163,7 +163,9 @@ spec:
value: default
- name: SW_OTEL_RECEIVER
value: default # @feature: so11y;mysql;vm;kubernetes-monitor enable OpenTelemetry receiver to receive OpenTelemetry metrics
- - name: SW_OTEL_RECEIVER_ENABLED_OC_RULES
+ - name: SW_OTEL_RECEIVER_ENABLED_HANDLERS
+ value: otlp
+ - name: SW_OTEL_RECEIVER_ENABLED_OTLP_RULES
# @feature: vm; enable vm rules to analyze VM metrics
# @feature: so11y; enable oap rules to analyze OAP metrics
# @feature: kubernetes-monitor; enable rules to analyze Kubernetes Cluster/Node/Service metrics
diff --git a/deploy/platform/kubernetes/feature-so11y/open-telemetry.yaml b/deploy/platform/kubernetes/feature-so11y/open-telemetry.yaml
index 3f38161..afa7832 100644
--- a/deploy/platform/kubernetes/feature-so11y/open-telemetry.yaml
+++ b/deploy/platform/kubernetes/feature-so11y/open-telemetry.yaml
@@ -48,7 +48,7 @@ data:
replacement: $$1
exporters:
- opencensus:
+ otlp:
endpoint: "oap:11800"
tls:
insecure: true
@@ -59,7 +59,7 @@ data:
pipelines:
metrics:
receivers: [ prometheus ]
- exporters: [ opencensus,logging ]
+ exporters: [ otlp,logging ]
---
apiVersion: apps/v1
diff --git a/deploy/platform/kubernetes/feature-vm/open-telemetry.yaml b/deploy/platform/kubernetes/feature-vm/open-telemetry.yaml
index 2e51653..a1996da 100644
--- a/deploy/platform/kubernetes/feature-vm/open-telemetry.yaml
+++ b/deploy/platform/kubernetes/feature-vm/open-telemetry.yaml
@@ -45,7 +45,7 @@ data:
replacement: $$1
exporters:
- opencensus:
+ otlp:
endpoint: "oap:11800"
tls:
insecure: true
@@ -56,7 +56,7 @@ data:
pipelines:
metrics:
receivers: [ prometheus ]
- exporters: [ opencensus,logging ]
+ exporters: [ otlp,logging ]
---
apiVersion: apps/v1