githubEdit

Mermin with GreptimeDB

Overview

This example deploys Mermin alongside a standalone GreptimeDB instance for persistence. Mermin is configured to write metrics directly to GreptimeDB via HTTP using the OTLP protocol. Although local Kindarrow-up-right was used for testing, any kubernetes cluster should work if nodes have sufficient resources

Notes on the example deployment:

  • Location in the repositoryarrow-up-right - docs/deployment/examples/local_greptime

  • Topology: Mermin runs as a DaemonSet to monitor pod-to-pod communication on all nodes.

  • Storage: GreptimeDB is deployed as the persistence layer for network telemetry.

  • Connectivity: Mermin sends data directly to GreptimeDB using http_binary protocol.

  • GreptimeDB is accessed via K8s Service (ClusterIP) for simplicity.

Install

GreptimeDB

Deploy GreptimeDB to serve as the persistence layer for the collected network telemetry.

  • Create a values file for GreptimeDB with contentsarrow-up-right or use one from the repo, which includes configurations to receive Mermin metrics.

  • Deploy GreptimeDB using the values file and the helm chart provided by the Greptime team.

Mermin

Deploy Mermin configured to output directly to the GreptimeDB service using HTTP headers required for signal parsing.

  • Create a config.hcl file with contentsarrow-up-right, or use the one from the repo. Modify as desired, but retain the export.traces.otlp.headers and export.traces.otlp.protocol sections.

  • Note: TLS is disabled in the repository example. This is not recommended for production deployments.

  • Deploy the Mermin chart

  • Optionally install metrics-server to get metrics if it has not been installed yet

Access

You may ensure the data is reaching GreptimeDB by using a GreptimeDB Dashboard Apparrow-up-right.

  • First, port forward the OpenSearch Dashboards service

  • Use http://localhost:4000 as host and public as database.

  • Run following query to ensure data is reaching GreptimeDB

Debug charts

In order to render K8s manifests you may use following commands

  • GreptimeDB

  • Mermin

Last updated