mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 01:30:33 +00:00
* chore: Add copyright and license headers This commit adds the Apache 2.0 license and a copyright notice to the header of all source files. This ensures that the licensing and copyright information is clearly stated within the codebase. * cargo fmt * fix * fmt * fix clippy
OpenObserve + OpenTelemetry Collector
English | 中文
This directory contains the configuration files for setting up an observability stack with OpenObserve and OpenTelemetry Collector.
Overview
This setup provides a complete observability solution for your applications:
- OpenObserve: A modern, open-source observability platform for logs, metrics, and traces.
- OpenTelemetry Collector: Collects and processes telemetry data before sending it to OpenObserve.
Setup Instructions
-
Prerequisites:
- Docker and Docker Compose installed
- Sufficient memory resources (minimum 2GB recommended)
-
Starting the Services:
cd .docker/openobserve-otel docker compose -f docker-compose.yml up -d -
Accessing the Dashboard:
- OpenObserve UI: http://localhost:5080
- Default credentials:
- Username: root@rustfs.com
- Password: rustfs123
Configuration
OpenObserve Configuration
The OpenObserve service is configured with:
- Root user credentials
- Data persistence through a volume mount
- Memory cache enabled
- Health checks
- Exposed ports:
- 5080: HTTP API and UI
- 5081: OTLP gRPC
OpenTelemetry Collector Configuration
The collector is configured to:
- Receive telemetry data via OTLP (HTTP and gRPC)
- Collect logs from files
- Process data in batches
- Export data to OpenObserve
- Manage memory usage
Integration with Your Application
To send telemetry data from your application, configure your OpenTelemetry SDK to send data to:
- OTLP gRPC:
localhost:4317 - OTLP HTTP:
localhost:4318
For example, in a Rust application using the rustfs-obs library:
export RUSTFS_OBS_ENDPOINT=http://localhost:4317
export RUSTFS_OBS_SERVICE_NAME=yourservice
export RUSTFS_OBS_SERVICE_VERSION=1.0.0
export RUSTFS_OBS_ENVIRONMENT=development