• Home
  • About
    • Background
    • LinkedIn
    • Presenting Activities
    • Internet Profile
    • About
    • www.cloud-native.info
    • AI Disclosure
  • Observability, Fluent(d) Bit & OpAMP
    • OpAMP Product
    • OpAMP Overview
    • Log Generator
    • Fluent Bit Classic to YAML Format configurations
  • My Books
    • Logs and Telemetry using Fluent Bit
      • Fluent Bit book
      • Book Resources in GitHub
    • Logging in Action with Fluentd, Kubernetes and More
      • Logging in Action with Fluentd – Book
      • Fluentd Book Resources
      • Fluentd & Fluent Bit Additional stuff
    • API & API Platform
      • API Useful Resources
    • Oracle Integration
      • Book Website
      • Useful Reading Sources
    • Publication Contributions
  • Resources
    • GitHub
    • Oracle Integration Site
    • Oracle Resources
    • Mindmaps Index
    • Useful Tech Resources
      • Fluentd & Fluent Bit Additional stuff
      • Recommended Tech Podcasts
      • Official Sources for Product Logos
      • Java and Graal Useful Links
      • DevTips
  • Music
    • Monster On Music
    • Music Listening
    • Music Reading

Phil (aka MP3Monster)'s Blog

~ from Technology to Music

Phil (aka MP3Monster)'s Blog

Tag Archives: OTLP

Fluent Bit 5.2 announced – what’s new and how it can help

18 Wednesday Nov 2026

Posted by mp3monster in Fluent Observability, Fluentbit, General, Technology

≈ Leave a comment

Tags

benchmarks, Elasticsearch, Fluent Bit, HTTP, Journald, Lua, OpenSearch, OpenTelemetry, OTel, OTLP, performance, release, WebAssembly

When we looked at Fluent Bit 5.1, the configuration extensions were particularly interesting from a management perspective. With 5.2, there is more to explore around how we process telemetry and how the pipeline behaves when the destination struggles to keep up.

For me, the value is in the operational questions these changes help address. Can we make data useful before paying to store it? Can we apply processing without damaging the information we need for investigation? And can our collectors give an overloaded backend a chance to recover?

Lua processing across logs, metrics and traces

The headline addition is Fluent Typed Scripting (FTS), a native processor that uses Lua to express policies across all three telemetry signals. It provides typed access to values and OpenTelemetry context, including resources, scopes and attributes.

The “typed” part allows us to ensure data values such as identifiers represented as large integers need to survive a transformation unchanged. Rounding or truncation while modifying a field is likely to break the correlation of data values. FTS ensures that exact integers, nulls and binary values aren’t accidentally disrupted.

Strong typing also offers security benefits, as it can make it harder to induce memory overruns or underwrites.

We have previously touched upon the power of Lua in the Fluent Bit pipeline with use cases such as:

  • Redact named sensitive fields before forwarding telemetry.
  • Bring inconsistent attributes into a common form.
  • Reduce unnecessary events and metric dimensions. Reducing payload size can improve performance and lower storage costs.

FTS still uses Lua, so it doesn’t require learning a statically typed language. Existing Lua filters remain supported, although moving them to FTS requires adapting their API. This gives us a reason to evaluate FTS for new requirements without rewriting every working filter.

Reducing metric dimensions needs care.

A useful example in the FTS reference is deliberate metric aggregation. Removing a label can make previously distinct series identical. FTS provides an aggregation helper for combining compatible series, rather than assuming that deleting an attribute is sufficient.

Consider request counts broken down by individual customer identifiers. If our operational dashboard only needs route and response status, retaining customer-level detail may create a great deal of storage and query work without helping that dashboard.

The opportunity is to decide which detail serves an operational purpose before forwarding it. We still need to preserve the distinctions required for investigation and avoid combining measurements with incompatible meaning.

There is a similar decision around processing failures. By default, a failed FTS policy rolls back its changes and drops the affected item. The alternative keep mode forwards the original. For redaction, that could mean forwarding the very information we intended to remove. Error handling therefore belongs in the policy design and its tests.

Making system logs easier to use with OpenTelemetry

The new journald_otel processor maps journal records into OpenTelemetry logs, including severity, host and process information.

This addresses a familiar integration problem. Collecting a message is only part of making it useful; its fields also need to mean something to the tools querying it. Native mapping can reduce the custom transformations needed to bring Linux system logs alongside application telemetry.

We saw in the Moving Open Source Observability backend closer to turn-key solutions the value of normalising attribute names in telemetry.

Giving a busy destination time to recover

Fluent Bit 5.2 adds destination-aware output throttling for HTTP, OpenTelemetry, Elasticsearch and OpenSearch. Supported responses and retry hints can trigger a cooldown for that destination, and waiting through the cooldown does not consume retry attempts.

For Elasticsearch and OpenSearch bulk delivery, retries also retain unresolved records without replaying items already acknowledged as successful.

If a backend is overloaded, repeatedly sending it more work can prolong the problem. Responding to its request to slow down makes recovery more cooperative and avoids unnecessary traffic.

We still need sufficient buffering for the interruption. A cooldown changes delivery behaviour; it does not create unlimited capacity to absorb incoming data.

Performance that could translate into useful headroom

The published 5.2 benchmarks show substantial gains in particular workloads. In the memory-buffered OTLP/HTTP JSON test that adds one log attribute, throughput reaches 1.50 million records per second, around 7.2 times the 5.1 result when using native content_modifier processing.

The separate FTS log-policy performance reports 18–45% less CPU than equivalent Lua policies on 5.1.0. Given the additional overhead, this is an impressive performance boost.

The experimental browser SDK is another interesting direction: it runs Fluent Bit through WebAssembly. It deserves exploration, with its separate build requirements and experimental status in mind.

The buffering results are interesting as well. One sparse-stream test reports a 92.2% reduction in allocated disk space. An estate with many quiet streams may benefit differently from one dominated by a few busy streams.

We do have to treat these performance figures with care – simply assuming we see an existing deployment become seven times faster is foolhardy, as the figures are context-specific. But it is reasonable to assume that the new features will not adversely impact performance.

Smaller changes that help day-to-day operation

The release notes also describe YAML generation from command-line options and configuration-relative path handling for supported assets.

Plugins and Processor

As with all releases, there are a number of plugin upgrades and additions for the core, such as the output throttling mentioned, but we also have a new processor: journald_otel. The processor makes it quick and easy to map journald records directly to the OpenTelemetry structures (the alternative is a more complex mapping exercise).

Resources

  • Fluent Bit 5.2 release notes
  • Fluent Typed Scripting overview.
  • FTS examples and API reference
  • Fluent Bit 5.2 benchmark methodology and results

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

Application Observability: The Database Angle

13 Friday Nov 2026

Posted by mp3monster in development, Fluent Observability, General, Technology

≈ 1 Comment

Tags

database, DB, MariaDB, MySQL, Open Telemetry, OpenTelemetry, Oracle, OTel, OTLP, OTTL, Postgres, queries, sql

When it comes to application observability, it is easy to lose sight of the challenges of tracking how our data flows in and out of the database. Considerations include query performance as the database sees it, when SQL gets held up or fails because of database locks, and database calls that get rejected for various reasons such as privileges (particularly when joining data sets). How impactful these things can be is dependent upon how the application is built, and where the weight of data manipulation resides. For example, a multi-tiered application that uses object-relational mapping frameworks such as Hibernate (Java), Gorm (Go), SQLAlchemy (Python), or tracing methods (even if you don’t instrument the libraries) lets you infer and extrapolate database performance details. However, retrieving the explicit information is always better. But for other solutions, such as ERPs like E-Business Suite and parts of General Dynamics where the business logic is within the database as stored procedures, the ability to extract more detail from the database is going to be needed.

This means our observability agent needs to formulate, execute, and transform the results of SQL queries. This leads us to:

  • Ideally, plugins that understand how to access the relevant database data and retrieve it in a consumable manner will make the process easier. In other words, having pre-canned logic or configuration that understands how to retrieve core metrics like slow queries is desirable.
  • Having the ability to run SQL is also freeing, as it allows for application-specific queries to also be incorporated and retrieve metrics and details from where stored procedures have recorded logs. For example, one of Oracle’s IdM products records its logs in a table (see here).

If we can query the database, caching or pooling connections is highly beneficial, since establishing a connection is costly and we don’t want to incur that cost every time we need to execute the queries. We also don’t want to leak connections or rely on the database’s connection manager to decide that connections have been inactive and to reclaim them.

This leads us to ideally having three capabilities:

  1. Pre-canned queries for mainstream database technologies
  2. Ability to add custom queries
  3. Ability to pool connections

Capability matrix

The following shows which observability tools can work with which databases, the nature of the query capabilities and the ability to cache. For full transparency, I am not an expert in every one of these products, so I used AI to help with the analysis. That said, I have checked what the AI has pointed to.

The language used is explicitly defined below the table if you need to confirm it. The one variation is Fluent Bit, which doesn’t provide an out-of-the-box query-related plugin, but we can use Lua for a script that can work with any database.

Database/ Observability agentOpenTelemetry CollectorTelegrafLogstashMetricbeatGrafana AlloyVectorFluentdFluent
Bit
OracleConfig
Pool ✓
Config
Pool ✓
Config Pool ✓Config
Pool?
Both
Pool ✓
——via Lua
Pool ✓
PostgreSQLBoth
Pool ✓
Both
Pool ✓
Config Pool ✓Both
Pool?
Both
Pool?
Predefined Pool?Limited
Pool?
via Lua
Pool ✓
MySQLBoth
Pool ✓
Both
Pool ✓
Config Pool ✓Both
Pool?
Predefined Pool?—Limited
Pool?
via Lua
Pool ✓
MariaDBConfig
Pool ✓
Both
Pool ✓
Config Pool ✓MySQL-compatible Pool?MySQL-compatible Pool?—Limited
Pool?
via Lua
Pool ✓
SQL ServerBoth
Pool ✓
Both
Pool ✓
Config Pool ✓Both
Pool?
Both
Pool?
——via Lua
Pool ✓
ClickHouseConfig
Pool ✓
Config
Pool ✓
Config, JDBC driver
Pool ✓
————via Lua
Pool ✓
SAP HANAConfig
Pool ✓
Config
Pool ✓
Config, JDBC driver
Pool ✓
————via Lua ODBC
Pool ✓
MongoDBPredefined
Pool?
Predefined Pool?Limited, JDBC adapter Pool ✓*Predefined Pool?Predefined Pool?Predefined Pool?—via Lua
Pool ✓
OtherSnowflake, SAP ASE Config, Pool ✓SQLite, CockroachDB, TiDB, Vertica, Netezza, FlightSQL Config,
Pool ✓
Other JDBC databases Config, Pool ✓CockroachDB
Config,
Pool?
Redis, Snowflake Predefined, Pool?Other specialised sources Pool?Other ActiveRecord adapters: Limited
Pool?
External commands Pool: n/a

Legend

  • Both — predefined monitoring queries and configurable SQL queries are available, potentially through separate plugins.
  • Config — supports user-defined SQL queries.
  • Predefined — built-in database metrics or fixed queries, without needing general-purpose SQL configuration.
  • Limited — partial functionality, such as incremental table polling.
  • — — no native database-querying capability established.
  • Pool ✓ — connection reuse/pooling is explicitly documented.
  • Pool? — connection reuse is not sufficiently established by documentation.
  • Pool n/a — no native database query connection.

Important qualifications

  • OpenTelemetry: A Both designation can represent the combination of the generic sqlquery receiver and a separate database-specific receiver. Connection pooling is documented, but controls differ between receivers. The generic SQL receiver exposes max_open_conn; certain specialized receivers offer more extensive pooling controls.
  • Telegraf: Its generic SQL input supports configurable pooling using maximum open and idle connections, maximum idle time and connection lifetime. Its database-specific plugins provide additional predefined monitoring capabilities.
  • Grafana Alloy: Oracle is a particularly strong option because its exporter explicitly documents max_idle_conns, max_open_conns, predefined metrics and custom metric definitions. Equivalent pooling guarantees have not been established for all other embedded exporters.
  • Logstash: JDBC connection pooling is supported, but you generally need to install the database-specific JDBC driver separately. Its SQL input produces events rather than directly modelling each result as an OpenTelemetry metric.
  • Metricbeat: Both means its database-specific metric sets can be combined with its generic SQL module. This does not mean that the generic SQL module itself provides predefined slow-query statements.
  • Vector, Fluentd and Fluent Bit: Their narrower entries are significant. Vector has native database-specific metrics inputs, Fluentd’s SQL plugin focuses on incremental record ingestion, and Fluent Bit requires database connectivity through a Lua script.

Additional resources

What is clear is that the number of observability agents that provide built-in understanding of databases is limited, and that you need to provide configuration for the queries – which is understandable; if you’re able to at least enable user-defined queries, the user can research how to retrieve data like slow queries. To that end, we’ve started compiling some documents that identify queries that will help for that database. You can find the documentation for the tooling we’re putting together to simplify creating an end-to-end pipeline in GitHub (https://github.com/opamp-observe/config-generator/tree/main/docs/db-query-analysis).

Alternate Strategies

Obviously, we’ve taken an observability agent lead approach, as this means that the data is immediately being routed onwards to where it needs to be. But this polling, while some metrics need to be counts per interval, not all data needs to be that way, and as any integration person will tell you, being event-driven or pushing (as long as we’re not creating unnecessary additional latency in a process) is desirable. This points to: do the databases have built-in push mechanisms?

Built-in in OLTP emitters

In a perfect world, databases would make all their information available through OTLP, including allowing applications to provide additional metadata for application-level logs, metrics and traces. Today, there is varying support for built-in OTLP payload emission, as the following table shows:

DatabaseWhat can be sent to an OTLP endpoint? What can be tailored?
OracleOracle AI Database 26ai can export database observability logs associated with traces. For metrics, Oracle’s separate Oracle AI Database Metrics Exporter publishes metrics over OTLP/gRPC. It can also export the alert log as JSON for a log aggregator. docs.oracle.comThe exporter lets you define custom metrics in YAML or TOML and set collection intervals and query timeouts. Native observability has configurable endpoints and service options. oracle.github.io
PostgreSQLPostgreSQL has no built-in OTLP metrics exporter in the sources reviewed. The open-source pg_otel module can send server log messages to an OTLP endpoint. For metrics, the OpenTelemetry Collector can query PostgreSQL’s statistics. github.compg_otel lets you set the endpoint and resource attributes. The Collector receiver lets you select metrics; its SQL Query Receiver can turn custom query results into metrics or logs. github.com
MySQLMySQL’s telemetry component supports OTLP metrics export. Its supplied log exporter sends OTLP logs, but requires MySQL Enterprise Edition or HeatWave; the logging interface alone does not provide an exporter. dev.mysql.com
Other vendor-supported variants of MySQL also support OTLP, such as Percona Server for MySQL 9.7
Configure the signal endpoints and protocols, then enable or disable meters and loggers. Logging support depends on edition. dev.mysql.com
MariaDBNo built-in server OTLP exporter was identified. The OpenTelemetry Collector’s MySQL receiver can collect metrics from MySQL and MariaDB servers. You can collect them separately or map query results to log records. github.comThe Collector can select metrics or use custom SQL queries and map their results to metrics or logs. github.com
SQL ServerNo built-in server OTLP exporter was identified. The OpenTelemetry Collector’s SQL Server receiver connects to the database to collect metrics; log files or selected query results can be collected separately. github.comConfigure which receiver metrics are emitted, or use custom SQL queries and signal mappings in the Collector. github.com
ClickHouseNo built-in server exporter for OTLP metrics or logs was identified. A Collector can query ClickHouse, read its log files, and forward the results to an OTLP endpoint. github.comThe Collector’s SQL Query Receiver supports custom queries, collection intervals, and mappings from query results to metrics or logs. github.com
MongoDBMongoDB Ops Manager’s Agent can push monitored metrics to an OTLP/HTTP endpoint. MongoDB Atlas can export selected system and audit logs to OTLP endpoints. These exports are provided by MongoDB’s management services, rather than by the database process itself. www.mongodb.comOps Manager lets you configure the endpoint and export cadence. Atlas lets you choose log types and configure up to 10 destinations. For self-managed MongoDB, the Collector can query metrics and collect query-related events. www.mongodb.com

While some databases don’t yet provide support for this, it is likely to become the norm. For example, key members of the PostgreSQL ecosystem, Craig Ringer and Gabriele Bartolini, are actively advocating the native adoption of OTel (see here). Other database solutions we’ve found that include OTLP support include Databricks Lakebase (a managed DB built on Postgres) and SurrealDB.

File Staging

Where there aren’t built-in OTLP capabilities, another approach is to incorporate stored procedures that can write to an externally visible temporary file location. Then the observability tool can use file tailing plugins to ingest the data into the observability pipeline. This means we should take a look at what databases offer in this direction:

DatabaseStored procedure ability to write to an external filesystem? Can it run SQL on a schedule?
OracleYes. PL/SQL can use UTL_FILE to write files in permitted directories. For a remote host, DBMS_SCHEDULER.PUT_FILE can transfer files using a Scheduler agent.Yes. DBMS_SCHEDULER schedules PL/SQL jobs, among other job types. oracle.hydrogen.sagittarius.connect.product.adaptavist.com
PostgreSQLYes, with elevated access. A procedure written in an untrusted language such as PL/Python can access operating-system resources. SQL COPY can also write a server-side file, but requires superuser rights or the pg_write_server_files role.Yes, with an extension or external scheduler. PostgreSQL has no built-in general job scheduler; pg_cron is a widely used extension that runs scheduled SQL inside the database. Python Procedural Language
MySQLYes. A stored program can use SELECT ... INTO OUTFILE to write query results on the server host. The FILE privilege is required, and secure_file_priv can restrict the permitted directory.Yes. The built-in Event Scheduler runs scheduled SQL events; an event can also call a stored procedure. dev.mysql.com
MariaDBYes. SELECT ... INTO OUTFILE writes query results to a server-side file. As with MySQL, the database service account must be able to write to the destination.Yes. MariaDB’s built-in Event Scheduler runs scheduled SQL, including calls to stored procedures. mariadb.com
SQL ServerYes, through privileged features. A stored procedure can invoke xp_cmdshell to run an operating-system command, or use CLR code with external access. xp_cmdshell is disabled by default.Yes. SQL Server Agent schedules jobs with T-SQL steps, including calls to stored procedures. The Agent service is disabled by default on a new installation. Microsoft Learn
ClickHouseNo stored-procedure mechanism in the usual sense. ClickHouse does support executable user-defined functions: a query can invoke an external script, which could write files if the script and server account have permission. That is external code execution, not a stored procedure.For a specific use case, yes. A refreshable materialized view reruns its query on a schedule and stores the result. It is not a general scheduler for arbitrary SQL jobs. ClickHouse Documentation
MongoDBNo general database-side stored procedure with access to the database host’s filesystem. MongoDB server-side JavaScript features are not equivalent to operating-system procedures and are deprecated starting in MongoDB 8.0. Atlas Functions run in a separate managed runtime, not in the database process.Not SQL: MongoDB Atlas Scheduled Triggers can run server-side functions on a schedule. For self-managed MongoDB, you generally handle scheduling externally.

Conclusion – Understanding what to retrieve

So, there are several different strategies that can be pursued to monitor a database: several different strategies can

  • Observability plugin
    • DB-variety aware.
    • Generic connector options, but configuration must provide context for the DB type.
  • Databases can push or be scraped for telemetry.
  • The database can externalize data that can then be picked up by the observability tool using mechanisms such as file tailing.

What is clear is that most options require a good understanding of what to retrieve from the database. As a result, to support our work on automating pipeline creation, we have captured documents that bring together recommended practices for what data to retrieve and how to do so, and compiled the information as documents in the repository.

Useful resources

  • Telegraf – SQL Input Plugin · Supported SQL drivers · PostgreSQL Extensible
  • Grafana Alloy – prometheus.exporter.mysql · prometheus.exporter.oracledb · prometheus.exporter.mssql prometheus.exporter.mongodb · prometheus.exporter.snowflake · prometheus.exporter.postgres ·
  • OpenTelemetry Contrib component registry
  • Open Telemetry – postgresql · sqlquery · oracledb · mongodb · mongodbatlas · sqlserver
  • Metricbeat SQL module
  • Logstash JDBC input documentation
  • Grafana Alloy PostgreSQL exporter · PostgreSQL Prometheus exporter
  • Fluentd SQL plugin
  • Vector PostgreSQL metrics source
  • docs.influxdata.com
  • DB Queries for monitoring
Database Observability - SQL and Telemetry

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

Fluent Bit leveraging OpAMP connection sharing

20 Monday Jul 2026

Posted by mp3monster in Fluent Observability, General, OpAMP, Technology

≈ Leave a comment

Tags

configuration, Fluent Bit, logs, metrics, observability, OpAMP, Open Telemetry, OTLP

Another aspect of OpenTelemetry’s OpAMP protocol is the ability to share connections details, not just between the server side of the OpAMP protocol, but with other connections a collector like Fluent Bit could be using such as an OTel consumer for logs, traces and metrics that are being collected that could be a managed Grafana service or another Fluent Bit if you’re using a concentrator network.

This is includes Observability data generated by the collector I.e. Fluent Bit in our case.

Yes, but Fluent Bit doesn’t push its own OTel signals

It is true that out of the box Fluent Bit doesn’t push OTel signals for itself. But this is easily fixed. We can control logging, and metrics that are exposed (and today no traces are produced). The solution is simple, we use Fluent Bit itself to collect the logs and metrics and route them to using an OTel output plugin.

While creating a configuration for sharing seems onerous, once you’ve done it once, you can simply include the config file in every deployment. Further more, if you backend for any of the signals is not Fluent Bit conversant, just use a different Fluent Bit plugin.

Config walkthrough

Our configuration consists of several files, which we’ll explain. We’ve adopted a multi-file setup, which works through the use of Fluent Bit’s includes capability so we can separate out the application-level observability configuration (master.yaml), the configuration to allow us to observe Fluent Bit itself (otel.yaml), and the configuration for the connection parameters (otel-config.yaml).

Master.yaml

The master.yaml contains our application observability settings and is the configuration file we pass to Fluent Bit. In this case, we’re simply using a dummy input that’s fed to a file output; we’ve also got a wildcard stdout configuration to make it easy to observe what’s going on from the command line.


includes: 
  - otel.yaml

service:
  flush: 1
  log_level: debug
  http_server: ${http_server}
  http_listen: ${http_listen}
  http_port: ${http_port}
  log_file: ${log-file}

pipeline:
  inputs:
    - name: dummy
      tag: dummy.activity
      dummy: '{"message":{"msg":"grafana-cloud test event","service":"fluent-bit","source":"dummy"}}'


  outputs:
    - name: stdout
      match: "*"
      format: json_lines

    - name: file
      match: "dummy.*"
      file: dummy.log


There are at this level, two telltale signs of self-monitoring at this level:

  • The includes declaration picks up otel.yaml, which includes additional inputs and outputs, as well as service configurations.
  • The service settings that switch on the HTTP server. It is controlled via environment variables, so you could switch this off easily. We have to implement these settings here, as within the full set of file inclusions, there can only be a single service block.
  • The service declaration also specifies where we want the log file that the Fluent Bit setup needs to go.

otel.yaml

We’ve separated the pipeline definitions for Fluent Bit observability to reuse the configuration across many deployments. As different deployments may need to talk to different instances of the observability backend (for example, when operating in a multi-cloud arrangement we have defined the environment variables that provide the credentials and target address).

We have defined additional environment variables at this level, so that anyone needing to understand master settings and the service values needs only look here. How this layer (or layers) is established is, to an extent, concealed. It also means we can use OpAMP to generate a configuration file, but we’ll come back to that.


includes: 
  - otel-config.yaml

env:
  http_server: on
  http_listen: 0.0.0.0
  http_port: 2020
  log_file: ${own-log-file}

pipeline:
  inputs:
  - name: fluentbit_metrics
    tag: fb.metrics

  - name: tail
    path: ${own-log-file}
    tag: ${own-log-file}

  outputs:
  - name: opentelemetry
    match: "*"
    host: ${otel-host}
    port: 443
    http_user: ${otel-user}
    http_passwd: ${otel-password}
    logs_uri: ${own-otel-logs}
    metrics_uri: ${otel-metrics}
    traces_uri: ${otel-traces}
    tls: on
    tls.verify: off
    log_response_payload: true
    logs_body_key: message
    add_label:
      - environment dev
      - destination grafana-cloud

The environment variables that we define to be used by the master.yaml switch the HTTP server on, and indicate which ports to use. Making this easy to check for the person or people defining the master.yaml makes it easier to avoid port collisions.

We also tell Fluent Bit where to write its logs through the service setting. To consolidate the configuration, that value references a different environment variable, so we can put all of our configurations together. Even if we didn’t have this level of redirection, it is worthwhile setting the value using an environment variable as the file location is needed both as our output for the service and the input for a plugin.. As you can see, we’ve just named the file. So the file created will be relative to wherever we run Fluent Bit from.

Let’s look at the inputs and outputs being used, and what they do:

  • Tail – this is the input that reads Fluent Bit’s logs, as we set Fluent Bit to log at debug level, we’ll see plenty of activity. Having Fluent Bit write to the file system, only for a thread in the same process to read it, is obviously inefficient. It can be optimised by using a RAMFS-like filesystem on Linux and a RAMDisk-like filesystem on Windows, so everything is in memory.
  • Fluentbit_metrics – this is the active collection of metrics, which we simply point to the server part of Fluent Bit. If you’re using Fluent Bit as a sidecar in a pod, this has to be done carefully because of how networking for containers within a pod is handled.
  • opentelemetry – This takes our different input signals we’ve been collecting and pushes them to the OTel-compliant service. If we had different backend products for different types of signals, then we’d need different or multiple plugins defined. Although OpAMP does infer an OTel-compliant backend.

That is the hard bit done. As a result of these inputs, we get the metrics and logs (and no traces are available). We now just need an OpenTelemetry output plugin to direct all the OTLP-represented signals. For simplicity, we’ve made use of a free account on Grafana Cloud.

otel-config.yaml

This configuration file is simple, which is key to making it easy for us to manage the connections setup using OpAMP. It simply defines the connection-based attributes needed, as shown:

env:
otel-user: '-my Grafana Cloud Accound Id-'
otel-password: '-my Grafana Cloud Account Token-'
otel-logs: '/otlp/v1/logs'
otel-metrics: '/otlp/v1/metrics'
otel-traces: '/otlp/v1/traces'
own-log-file: 'flb.log'
otel-host: 'otlp-gateway-prod-gb-south-1.grafana.net'

While populating credentials in a file isn’t ideal, it makes it pretty straightforward for an OpAMP Client (observer or supervisor) to receive the credentials for the management side of the protocol, make them available to Fluent Bit quickly, and have Fluent Bit pick them up dynamically via hot-deploy functionality. This is precisely what we have implemented in our OpAMP. This approach works for both Fluent Bit and Fluentd configurations and we can even apply a similar approach for driving clients such as Elastic Beats.

This configuration file is simple enough that we can rewrite it whenever the configuration values are amended; there is no complexity in inserting such settings into the broader configuration. Furthermore, if Fluent Bit were running as an observed process rather than a supervised (i.e., child) process, setting environment variables could become problematic.

We can mitigate credential-related challenges in the file system by restricting filesystem permissions to the file being written, so only certain users and processes can access it. When working with containers, we can also keep this part of the file system within the image by using a transient storage layer.

Alternative strategy for securing credentials

An alternative approach would be for the client to receive the credentials and store them in an encrypted method, such as a credentials vault, and then the launcher for the process would read and decrypt the file as it launches Fluent Bit or another collector. The way we have implemented the client for our OpAMP certainly makes this possible, but it also complicates the process and suggests that the mechanics of credential management would be better handled by a distributed vault solution.

OpAMP’s assumption

The only niggle, is that when passing the connections, the protocol assumes that connection details are only needed for the collector. That’s fine if the collector includes the client side of the protocol. But as we know, the collector may be managed with a supervisor or observer process. We could use the connection for the collector and our supervisor, but that may not be what is wanted.

Visualising the configuration

We can visualise the relationships, like this:

Unpacking the server-side aspects

As you start to think about the server aspect of this, it gets potentially very complex. In simple scenarios, sending everything to a single Observability backend isn’t an issue.

But if you’re managing a multi-cloud, hybrid, or managed client setup, you’re likely to want separate backend instances for different collectors. In our setup, that means passing the different connection details to the client to populate otel-config.yaml. Understanding this deployment will require understanding the distribution. We will also need to manage potentially a concentrated catalogue of credentials, which will need to map to the collector nodes, and a means for the user to define the mapping. Creating a means to visualise the mapping, and ideally to allow the server to apply rules or infer assignments for more complex use cases such as multi-cloud, isn’t going to be simple.

Conclusion

We have a simple means to deploy configuration and observe our collector and the supervisor/observer process. Making server-side management in a large-scale environment easy to work with will require some consideration and potentially additional optional metadata. But the protocol supports all of this, but doesn’t mandate specifics. Which does mean that either the server has to be smart enough to know when what to do if it interacts with a client that has been built or configured to work with this server – which is an essential requirement, otherwise we lose the value of the

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

OpAMP server with MCP – aka conversational Fluent Bit control

14 Tuesday Apr 2026

Posted by mp3monster in AI, chatbots, development, Fluent Observability, General, OpAMP, Technology

≈ Leave a comment

Tags

AI, chatops, Fluent Bit, Fluentd, LangGraph, LLM, MCP, OpAMP, OpenTelemetry, OTel, OTLP

I’ve written a few times about how OpAMP (Open Agent Management Protocol) may emerge from the OpenTelemetry CNCF project, but like OTLP (OpenTelemetry Protocol), it applies to just about any observability agent, not just the OTel Collector. As a side project, giving a real-world use case work on my Python skills, as well as an excuse to work with FastMCP (and LangGraph shortly). But also to bring the evolved idea of ChatOps (see here and here).

One of the goals of ChatOps was to free us from having to actively log into specific tools to mine for information once metrics, traces, and logs reach the aggregating back ends, but being able to. If we leverage a decent LLM with Model Context Protocol tools through an app such as Claude Desktop or ChatGPT (or their mobile variants). Ideally, we have a means to free ourselves to use social collaboration tools, rather than being tied to a specific LLM toolkit.

With a UI and the ability to communicate with Fluentd and Fluent Bit without imposing changes on the agent code base (we use a supervisor model), issue commands, track what is going on, and have the option of authentication. (more improvements in this space to come).

New ChatOps – Phase 1

With the first level of the new ChatOps dynamism being through LLM desktop tooling and MCP, the following are screenshots showing how we’ve exposed part of our OpAMP server via APIs. As you can see in the screenshot within our OpAMP server, we have the concept of commands. What we have done is take some of the commands described in the OpAMP spec, call them standard commands, and then define a construct for Custom Commands (which can be dynamically added to the server and client).

interaction through Claude Desktop which has been configured with our MCP server (part of our OpAMP server) showing us what can be done

The following screenshot illustrates using plain text rather than trying to come up with structured English to get the OpAMP server to shut down a Fluentd node (in this case, as we only had 1 Fluentd node, it worked out which node to stop).

Claude Desktop showing conversation to shutdown a FLuentd node

Interesting considerations

What will be interesting to see is the LLM token consumption changes as the portfolio of managed agents changes, given that, to achieve the shutdown, the LLM will have had to obtain all the Fluent Bit & Fluentd instances being managed. If we provide an endpoint to find an agent instance, would the LLM reason to use that rather than trawl all the information?

Next phase

ChatGPT, Claude Desktop, and others already incorporate some level of collaboration capabilities if the users involved are on a suitable premium account (Team/Enterprise). It would be good to enable greater freedom and potentially lower costs by enabling the capability to operate through collaboration platforms such as Teams and Slack. This means the next steps need to look something along the lines of:

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...
    • About
      • AI Disclosure
      • Internet Profile
      • Music Buying
      • Presenting Activities
    • Books & Publications
      • Logging in Action with Fluentd, Kubernetes and More
      • Logs and Telemetry using Fluent Bit
      • Oracle Integration
      • API & API Platform
        • API Useful Resources
        • Useful Reading Sources
    • Mindmaps Index
    • Monster On Music
      • Music Listening
      • Music Reading
    • OpAMP explained: the control plane for observability agents
    • Oracle Resources
    • Useful Tech Resources
      • Fluentd & Fluent Bit Additional stuff
        • Logging Frameworks and Fluent Bit and Fluentd connectivity
        • REGEX for BIC and IBAN processing
      • Formatting etc
      • Java and Graal Useful Links
      • Official Sources for Product Logos
      • Python Setup & related tips
      • Recommended Tech Podcasts

    TOGAF 9

    Logs and Telemetry using Fluent Bit


    Logging in Action — Fluentd

    Logging in Action with Fluentd


    Oracle Ace Director Alumni

    Oracle Cloud Integration Book


    API Platform Book


    Oracle Dev Meetup London

    Blog Categories

    • App Ideas
    • Books
    • Enterprise architecture
    • General
      • ExternalWebPublications
      • LinkedIn
      • Website
    • Music
      • Music Resources
      • Music Reviews
    • Photography
    • Podcasts
    • Security
    • Technology
      • AI
      • APIs & microservices
      • chatbots
      • Cloud
      • Cloud Native
      • Dev Meetup
      • development
        • languages
      • drone
      • Fluent Observability
        • Fluentbit
        • Fluentd
        • OpAMP
      • logsimulator
      • mindmap
      • OMESA
      • Oracle
        • API Platform CS
          • tools
        • ITSO & OEAF
        • OIC – ICS
        • Oracle Cloud Native
        • OUG
      • railroad diagrams
      • TOGAF

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,629 other subscribers

    RSS

    RSS Feed RSS - Posts

    RSS Feed RSS - Comments

    December 2026
    M T W T F S S
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
    « Nov    

    Speaker Recognition

    Open Source Summit Speaker

    Twitter

    Tweets by mp3monster

    History

    Flickr Pics

    More Photos

    Social

    • View @mp3monster’s profile on Twitter
    • View philwilkins’s profile on LinkedIn
    • View mp3monster’s profile on GitHub
    • View mp3monster’s profile on Flickr
    • View mp3muncher’s profile on WordPress.org
    • View philmp3monster’s profile on Twitch
    Follow Phil (aka MP3Monster)'s Blog on WordPress.com

    Blog at WordPress.com.

    • Subscribe Subscribed
      Phil (aka MP3Monster)'s Blog
      Join 233 other subscribers

      Have a WordPress.com account? Log in now.

    • Phil (aka MP3Monster)'s Blog
      View site in Reader
      Manage subscriptionsSign upLog in
      Report this content
      Collapse this bar
    Loading Comments...

    You must be logged in to post a comment.

    Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
    To find out more, including how to control cookies, see here: Our Cookie Policy
    %d