docs: update otel docs

* cross-link related doc chapters and guides about otel
* mention different URL format for cluster version of VM

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
hagen1778 2024-11-25 13:10:14 +01:00
parent ec81deb7e8
commit 530b731101
No known key found for this signature in database
GPG Key ID: E92986095E0DD614
2 changed files with 6 additions and 2 deletions

View File

@ -1577,6 +1577,9 @@ exporters:
encoding: proto encoding: proto
endpoint: http://<collector/vmagent>.<namespace>.svc.cluster.local:<port>/opentelemetry endpoint: http://<collector/vmagent>.<namespace>.svc.cluster.local:<port>/opentelemetry
``` ```
> Note, [cluster version of VM](https://docs.victoriametrics.com/cluster-victoriametrics/#url-format) expects specifying tenant ID, i.e. `http://<vminsert>:<port>/insert/<accountID>/opentelemetry`.
> See more about [multitenancy](https://docs.victoriametrics.com/cluster-victoriametrics/#multitenancy).
Remember to add the exporter to the desired service pipeline in order to activate the exporter. Remember to add the exporter to the desired service pipeline in order to activate the exporter.
```yaml ```yaml
service: service:

View File

@ -1,4 +1,4 @@
VictoriaMetrics supports metrics ingestion with [OpenTelemetry metrics format](https://opentelemetry.io/docs/specs/otel/metrics/). VictoriaMetrics supports metrics ingestion with [OpenTelemetry metrics format](https://docs.victoriametrics.com/single-server-victoriametrics/#sending-data-via-opentelemetry).
This guide covers data ingestion via [opentelemetry-collector](https://opentelemetry.io/docs/collector/) and direct metrics push from application. This guide covers data ingestion via [opentelemetry-collector](https://opentelemetry.io/docs/collector/) and direct metrics push from application.
## Pre-Requirements ## Pre-Requirements
@ -64,6 +64,8 @@ config:
otlphttp/victoriametrics: otlphttp/victoriametrics:
compression: gzip compression: gzip
encoding: proto encoding: proto
# Setting below will work for sending data to VictoriaMetrics single-node version.
# Cluster version of VictoriaMetrics will require a different URL - https://docs.victoriametrics.com/cluster-victoriametrics/#url-format
endpoint: http://victoria-metrics-victoria-metrics-single-server.default.svc.cluster.local:8428/opentelemetry endpoint: http://victoria-metrics-victoria-metrics-single-server.default.svc.cluster.local:8428/opentelemetry
tls: tls:
insecure: true insecure: true
@ -90,7 +92,6 @@ kubectl port-forward service/victoria-metrics-victoria-metrics-single-server 842
# forward port to local machine to setup opentelemetry-collector locally # forward port to local machine to setup opentelemetry-collector locally
kubectl port-forward otl-collector-opentelemetry-collector 4318 kubectl port-forward otl-collector-opentelemetry-collector 4318
``` ```
The full version of possible configuration options could be found in [OpenTelemetry docs](https://opentelemetry.io/docs/collector/configuration/). The full version of possible configuration options could be found in [OpenTelemetry docs](https://opentelemetry.io/docs/collector/configuration/).