Choosing the right database is a critical choice when building any software application. All databases have different strengths and weaknesses when it comes to performance, so deciding which database has the most benefits and the most minor downsides for your specific use case and data model is an important decision. Below you will find an overview of the key concepts, architecture, features, use cases, and pricing models of Mimir and OpenTSDB so you can quickly see how they compare against each other.
The primary purpose of this article is to compare how Mimir and OpenTSDB perform for workloads involving time series data, not for all possible use cases. Time series data typically presents a unique challenge in terms of database performance. This is due to the high volume of data being written and the query patterns to access that data. This article doesn’t intend to make the case for which database is better; it simply provides an overview of each database so you can make an informed decision.
Mimir vs OpenTSDB Breakdown
Time series database
Time series database
Grafana Mimir is a time series database designed for high-performance, real-time monitoring, and analytics. It features a distributed architecture, allowing for horizontal scaling across multiple nodes to handle large volumes of data and queries. It can be deployed on-prem due to being open source or as a managed solution hosted by Grafana
OpenTSDB can be deployed on-premises or in the cloud, with HBase running on a distributed cluster of nodes.
Monitoring, observability, IoT
Monitoring, observability, IoT, log data storage
Horizontally scalable across multiple nodes using HBase as its storage backend
Grafana Mimir is an open-source software project that provides a scalable long-term storage solution for Prometheus. Started at Grafana Labs and announced in 2022, Grafana Mimir aims to become the most scalable and performant open-source time series database for metrics. The project incorporates the knowledge and experience gained by Grafana Labs engineers from running Grafana Enterprise Metrics and Grafana Cloud Metrics at massive scale.
OpenTSDB (Open Time Series Database) is an open-source, distributed, and scalable time series database built on top of Apache HBase, a NoSQL database. OpenTSDB was designed to address the growing need for storing and processing large volumes of time series data generated by various sources, such as IoT devices, sensors, and monitoring systems. It was initially developed by StumbleUpon in 2010 and later became an independent project with an active community of contributors.
Mimir for Time Series Data
Grafana Mimir is well-suited for handling time series data, making it a suitable choice for scenarios involving metric storage and analysis. It provides long-term storage capabilities for Prometheus, a popular open-source monitoring and alerting system. With Grafana Mimir, users can store and query time series metrics over extended periods, allowing for historical analysis and trend detection. It is especially useful for applications that require scalable and performant storage of time series data for metrics monitoring and observability purposes.
OpenTSDB for Time Series Data
OpenTSDB is designed for time series data storage and analysis, making it an ideal choice for managing large scale time series datasets. Its architecture enables high write and query performance, and it can handle millions of data points per second with minimal resource consumption. OpenTSDB’s flexible querying capabilities allow users to perform complex analysis on time series data efficiently.
Mimir Key Concepts
- Metrics: In Grafana Mimir, metrics represent the measurements or observations tracked over time. They can include various types of data, such as system metrics, application performance metrics, or sensor data.
- Long-term Storage: Grafana Mimir provides a storage solution specifically tailored for long-term retention of time series data, allowing users to store and query historical metrics over extended periods.
- Microservices: Grafana Mimir adopts a microservices-based architecture, where the system consists of multiple horizontally scalable microservices that can operate independently and in parallel.
OpenTSDB Key Concepts
- Data Point: A single measurement in time consisting of a timestamp, metric, value, and associated tags.
- Metric: A named value that represents a specific aspect of a system, such as CPU usage or temperature.
- Tags: Key-value pairs associated with data points that provide metadata and help categorize and query the data.
Grafana Mimir adopts a microservices-based architecture, where the system comprises multiple horizontally scalable microservices. These microservices can operate independently and in parallel, allowing for efficient distribution of workload and scalability. Grafana Mimir’s components are compiled into a single binary, providing a unified and cohesive system. The architecture is designed to be highly available and multi-tenant, enabling multiple users and applications to utilize the database concurrently. This distributed architecture ensures scalability and resilience in handling large-scale metric storage and retrieval scenarios.
OpenTSDB is built on top of Apache HBase, a distributed and scalable NoSQL database, and relies on its architecture for data storage and management. OpenTSDB stores time series data in HBase tables, with data points organized by metric, timestamp, and tags. The database uses a schema-less data model, which allows for flexibility when adding new metrics and tags. The OpenTSDB architecture also supports horizontal scaling by distributing data across multiple HBase nodes.
Free Time-Series Database Guide
Get a comprehensive review of alternatives and critical requirements for selecting yours.
Grafana Mimir is designed to scale horizontally, enabling the system to handle growing data volumes and increasing workloads. Its horizontally scalable microservices architecture allows for seamless expansion and improved performance.
Grafana Mimir provides high availability by ensuring redundancy and fault tolerance. It allows for replication and distribution of data across multiple nodes, ensuring data durability and continuous availability of stored metrics.
Grafana Mimir offers a dedicated solution for long-term storage of time series metrics. It provides efficient storage and retrieval mechanisms, allowing users to retain and analyze historical metric data over extended periods.
OpenTSDB’s distributed architecture allows for horizontal scaling, ensuring that the database can handle growing volumes of time series data.
OpenTSDB uses various compression techniques to reduce the storage footprint of time series data.
Query Language with time series support
OpenTSDB features a flexible query language that supports aggregation, downsampling, filtering, and other operations for analyzing time series data.
Mimir Use Cases
Metrics Monitoring and Observability
Grafana Mimir is well-suited for monitoring and observability use cases. It enables the storage and analysis of time series metrics, allowing users to monitor the performance, health, and behavior of their systems and applications in real-time.
Long Term Metric Storage
With its focus on providing scalable long-term storage, Grafana Mimir is ideal for applications that require retaining and analyzing historical metric data over extended periods. It allows users to store and query large volumes of time series data generated by Prometheus.
Trend and anomaly detection
By using Mimir for storing long term historical data it can be useful for detecting trends in your metrics and also for comparing current metrics to historical data to detect outliers and anomalies
OpenTSDB Use Cases
Monitoring and Alerting
OpenTSDB is well-suited for large-scale monitoring and alerting systems that generate vast amounts of time series data from various sources.
IoT Data Storage
OpenTSDB can store and analyze time series data generated by IoT devices, such as sensors and smart appliances, enabling real-time insights and analytics.
OpenTSDB’s flexible querying capabilities make it an ideal choice for analyzing system and application performance metrics over time.
Mimir Pricing Model
Grafana Mimir is an open-source project, which means it is freely available for usage and does not require any licensing fees. Users can download the source code and deploy Grafana Mimir on their own infrastructure without incurring direct costs. However, it’s important to consider the operational costs associated with hosting and maintaining the database infrastructure.
OpenTSDB Pricing Model
OpenTSDB is open-source software, which means it is free to use without any licensing fees. However, the cost of running OpenTSDB depends on the infrastructure required to support the underlying HBase database, such as cloud services or on-premises hardware.
Get started with InfluxDB for free
InfluxDB Cloud is the fastest way to start storing and analyzing your time series data.