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 Kind was used for testing, any kubernetes cluster should work if nodes have sufficient resources
Notes on the example deployment:
Location in the repository -
docs/deployment/examples/local_greptimeTopology: 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_binaryprotocol.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 contents 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.hclfile with contents, or use the one from the repo. Modify as desired, but retain theexport.traces.otlp.headersandexport.traces.otlp.protocolsections.Note: TLS is disabled in the repository example. This is not recommended for production deployments.
Deploy the Mermin chart
Optionally install
metrics-serverto get metrics if it has not been installed yet
Access
You may ensure the data is reaching GreptimeDB by using a GreptimeDB Dashboard App.
First, port forward the OpenSearch Dashboards service
Use
http://localhost:4000as host andpublicas 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