Metrics¶
Metrics are quantitative measures. In the era of Monitoring and Observability, they became a standard term for collecting application performance data. OpenMetrics defines a standard for metrics and Observability. Metrics are often defined as key-value pairs stored in a time series database (TSDB).
Datadog, Opstrace, etc. which provide an entire stack can be found in the Platforms topic.
Tools¶
Prometheus¶
Facts¶
- Started in 2012
- Open Source
- CNCF graduated project in 2018
Hot Topics¶
- PromQL query language.
- Metric Types
- Exporters where Prometheus can scrape metrics from.
- Instrumentation for your app source, exposing
/metrics
.
Cortex¶
Facts¶
- Cortex provides horizontally scalable, highly available, multi-tenant, long term storage for Prometheus.
Hot Topics¶
Difference between Cortex and Thanos:
The real difference between the projects, said Plotka, comes in some initial design approaches, with Cortex using a push-based system, while Thanos is pull-based. Thanos also relies on object storage, which Plotka points out is very affordable, while Cortex uses NoSQL as well as object storage. The final initial difference is that Thanos used time-series database format, whereas Cortex used a custom indexed time-series database.
Thanos¶
Facts¶
- Open source, highly available Prometheus setup with long term storage capabilities.
Hot Topics¶
Difference between Cortex and Thanos:
The real difference between the projects, said Plotka, comes in some initial design approaches, with Cortex using a push-based system, while Thanos is pull-based. Thanos also relies on object storage, which Plotka points out is very affordable, while Cortex uses NoSQL as well as object storage. The final initial difference is that Thanos used time-series database format, whereas Cortex used a custom indexed time-series database.