The correction is integrated into the TP (See the green boxes)
What you will learn in this TP
- Start the Bindplane server
- Connect a BDOT collector
- Use the CLI
All steps and instructions are shown. Recommended for this lab: guided
Introduction #
Context. Your team wants to evaluate Bindplane before using it to manage its OpenTelemetry collectors. You build a complete test environment.
Prerequisites: Docker Compose, a free Bindplane account and its license key · Estimated time: 40 min
A Bindplane server and a connected collector.Hands-on #
Guided steps, with their solution.
1. Prepare the secrets
Why? Secrets must never be hard-coded in the Compose file.
Create abindplane-labfolder and a.envfile with the license, admin password, session secret and PostgreSQL password.See the correction
cat > .env <<EOF BINDPLANE_LICENSE=<clé de licence> BINDPLANE_PASSWORD=$(openssl rand -hex 12) BINDPLANE_SESSION_SECRET=$(uuidgen) POSTGRES_PASSWORD=$(openssl rand -hex 12) EOF docker compose up -d docker compose logs -f bindplane # attendre que le serveur écoute sur 30012. Start the server
Why? The server needs PostgreSQL (storage), Prometheus (measurements) and the transform agent (processor previews).
Write thedocker-compose.ymland start the stack. Log in athttp://localhost:3001.See the correction
services: bindplane: image: ghcr.io/observiq/bindplane-ee:1.89.5 ports: ["3001:3001"] environment: BINDPLANE_LICENSE: ${BINDPLANE_LICENSE} BINDPLANE_USERNAME: admin BINDPLANE_PASSWORD: ${BINDPLANE_PASSWORD} BINDPLANE_REMOTE_URL: http://localhost:3001 BINDPLANE_SESSION_SECRET: ${BINDPLANE_SESSION_SECRET} BINDPLANE_LOG_OUTPUT: stdout BINDPLANE_ACCEPT_EULA: "true" BINDPLANE_PROMETHEUS_ENABLE: "true" BINDPLANE_PROMETHEUS_ENABLE_REMOTE: "true" BINDPLANE_PROMETHEUS_HOST: prometheus BINDPLANE_PROMETHEUS_PORT: "9090" BINDPLANE_TRANSFORM_AGENT_ENABLE_REMOTE: "true" BINDPLANE_TRANSFORM_AGENT_REMOTE_AGENTS: transform:4568 BINDPLANE_STORE_TYPE: postgres BINDPLANE_POSTGRES_HOST: postgres BINDPLANE_POSTGRES_PORT: "5432" BINDPLANE_POSTGRES_DATABASE: bindplane BINDPLANE_POSTGRES_USERNAME: bindplane BINDPLANE_POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} depends_on: [postgres, prometheus, transform] postgres: image: postgres:16 environment: { POSTGRES_DB: bindplane, POSTGRES_USER: bindplane, POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}" } volumes: ["pg:/var/lib/postgresql/data"] prometheus: image: ghcr.io/observiq/bindplane-prometheus:1.89.5 transform: image: ghcr.io/observiq/bindplane-transform-agent:1.89.5-bindplane volumes: { pg: {}, bdot-web: {} }3. Add a test backend
Why? An OpenTelemetry collector with the debug exporter acts as the destination: you see everything that arrives.
Add asinkservice and itssink.yamlfile.See the correction
sink: image: otel/opentelemetry-collector-contrib:0.165.0 command: ["--config=/etc/sink.yaml"] volumes: ["./sink.yaml:/etc/sink.yaml"]# sink.yaml : un backend de test qui affiche tout ce qu'il reçoit receivers: otlp: protocols: { grpc: { endpoint: 0.0.0.0:4317 }, http: { endpoint: 0.0.0.0:4318 } } exporters: debug: { verbosity: detailed } service: pipelines: logs: { receivers: [otlp], exporters: [debug] } metrics: { receivers: [otlp], exporters: [debug] } traces: { receivers: [otlp], exporters: [debug] }4. Connect a collector
Why? The collector opens the OpAMP connection itself: no inbound port is needed.
In Collectors > Install Collectors, choose Docker and copy the secret key; add it to.env(OPAMP_SECRET_KEY), then thebdot-webservice and the log generator.See the correction
bdot-web: image: ghcr.io/observiq/bindplane-agent:1.84.0 hostname: bdot-web environment: OPAMP_ENDPOINT: ws://bindplane:3001/v1/opamp OPAMP_SECRET_KEY: ${OPAMP_SECRET_KEY} OPAMP_LABELS: env=lab,team=web MANAGER_YAML_PATH: /etc/otel/storage/manager.yaml volumes: ["bdot-web:/etc/otel/storage", "./logs:/var/log/app:ro"] loggen: image: busybox command: ["sh", "-c", "i=0; while true; do i=$$((i+1)); for l in DEBUG INFO INFO WARN ERROR; do echo \"{\\\"level\\\":\\\"$$l\\\",\\\"msg\\\":\\\"commande $$i\\\",\\\"user\\\":\\\"client$$i@example.com\\\"}\" >> /logs/app.log; done; sleep 1; done"] volumes: ["./logs:/logs"]mkdir -p logs && docker compose up -d bdot-web loggen sink5. Check with the CLI
Why? Everything the UI shows is available from the command line.
Install thebindplaneCLI, create a profile and list the collectors. Which labels do you see?See the correction
bindplane profile set lab --remote-url http://localhost:3001 --username admin --password "$BINDPLANE_PASSWORD" bindplane profile use lab bindplane get agentsThe
bdot-webcollector appears Connected with theenv=labandteam=weblabels.
Validate your work
Check that each goal above is reached and that you get the result described in the introduction.
Difficulty level : ●●○○○ (2/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
Installing Bindplane: server, BDOT Collector and OpAMP connection
Install the Bindplane server (Docker Compose, Linux, Kubernetes), connect BDOT collectors via OpA...
OpenTelemetry Collector, Grafana Alloy and Bindplane: comparing three approaches to telemetry pipelines
Detailed comparison of three ways to manage telemetry pipelines: the OpenTelemetry Collector in Y...
Bindplane: managing your OpenTelemetry telemetry pipelines
Understand Bindplane: a control plane for OpenTelemetry collectors via OpAMP, BDOT Collector, con...
Bindplane at scale: fleets, gateways and rollouts
Manage hundreds of collectors with Bindplane: edge fleets, gateways, labels, standard and progres...
Bindplane in production: high availability, security, Kubernetes and configuration as code
Operate Bindplane in production: active-active servers, PostgreSQL and event bus, TLS for OpAMP, ...
Bindplane best practices
Checklist for operating Bindplane: organizing by labels and fleets, measured reduction, masking a...
Installing Phoenix and tracing your first LLM application
Install Arize Phoenix (pip, Docker), send your first OpenInference traces from an OpenAI applicat...
Reducing, masking and routing telemetry with Bindplane
Reduce ingestion costs with Bindplane: severity filters, deduplication, sampling, field removal, ...
Bindplane configurations: sources, processors, destinations and versions
Build Bindplane configurations: sources, processors and destinations, the pipeline editor, snapsh...