Copilot commented on code in PR #211:
URL:
https://github.com/apache/skywalking-showcase/pull/211#discussion_r2467516434
##########
deploy/platform/docker/docker-compose.single-node.yaml:
##########
@@ -23,9 +23,11 @@ services:
networks: [ sw ]
expose:
- 17912
+ - 2121
ports:
- "17913:17913"
- command: standalone --observability-modes=native
+ - "2121:2121"
+ command: standalone
Review Comment:
The command was changed from 'standalone --observability-modes=native' to
'standalone', removing the observability mode configuration. This change should
be documented or explained as it affects how BanyanDB exposes metrics.
```suggestion
command: standalone --observability-modes=native
```
##########
deploy/platform/kubernetes/templates/feature-banyandb-monitor/opentelemetry-config.yaml:
##########
@@ -0,0 +1,36 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+{{- define "opentelemetry-config-banyandb-monitor" }}
+{{- if .Values.features.banyandbMonitor.enabled }}
+
+# @feature: banyandb-monitor; set OpenTelemetry config to scrape the banyandb
metrics
+- job_name: 'banyandb-monitoring'
+ metrics_path: '/metrics'
+ kubernetes_sd_configs:
+ - role: pod
+ relabel_configs:
+ - source_labels: [ __meta_kubernetes_pod_name,
__meta_kubernetes_pod_container_port_name ]
+ action: keep
+ regex: demo-banyandb-(data-(cold|hot|warm)|liaison)-[0-9]+;observebility
Review Comment:
Corrected spelling of 'observebility' to 'observability'.
```suggestion
regex:
demo-banyandb-(data-(cold|hot|warm)|liaison)-[0-9]+;observability
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]