mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-29 23:16:57 +00:00
feat(otlp)!: support raw delta exponential histograms (#9754)
* feat(otlp): support raw delta exponential histograms Signed-off-by: shuiyisong <xixing.sys@gmail.com> * fix(otlp): guard point accounting and benchmark metrics ingestion Signed-off-by: shuiyisong <xixing.sys@gmail.com> * fix: remove otlp_metric_compat logic Signed-off-by: shuiyisong <xixing.sys@gmail.com> * perf(otlp): cache physical schema lookups during metric preflight Signed-off-by: shuiyisong <xixing.sys@gmail.com> * chore: minor rename Signed-off-by: shuiyisong <xixing.sys@gmail.com> * perf(otlp): batch metric rows and reuse schema validation Signed-off-by: shuiyisong <xixing.sys@gmail.com> * chore: comments Signed-off-by: shuiyisong <xixing.sys@gmail.com> * fix: replace super in import path Signed-off-by: shuiyisong <xixing.sys@gmail.com> --------- Signed-off-by: shuiyisong <xixing.sys@gmail.com>
This commit is contained in:
@@ -14,12 +14,12 @@
|
||||
|
||||
//! Cache lookup counters shared by frontend, pipeline, and protocol handlers.
|
||||
//!
|
||||
//! The `type` label identifies `otlp_trace_aux`, `otlp_metrics_legacy`,
|
||||
//! The `type` label identifies `otlp_trace_aux`,
|
||||
//! `pipeline_table`, `pipeline`, `pipeline_original`, `pipeline_failover`, or
|
||||
//! `mysql_prepared_stmt`. Counters aggregate across catalogs and connections.
|
||||
//! Trace lookups count distinct service/operation keys once per request, excluding
|
||||
//! rechecks; legacy metric lookups count each requested metric name. Pipeline
|
||||
//! loaders count successful coalesced waiters as hits and failed loads as misses.
|
||||
//! rechecks. Pipeline loaders count successful coalesced waiters as hits and
|
||||
//! failed loads as misses.
|
||||
//! Failover counts one outcome after resolving all candidate schemas; an ambiguous
|
||||
//! result is a miss. Table and prepared-statement caches count each lookup.
|
||||
//! Both outcomes for all known caches are exported from the first metric update.
|
||||
@@ -27,9 +27,8 @@
|
||||
use lazy_static::lazy_static;
|
||||
use prometheus::{IntCounterVec, register_int_counter_vec};
|
||||
|
||||
const CACHE_TYPES: [&str; 7] = [
|
||||
const CACHE_TYPES: [&str; 6] = [
|
||||
"otlp_trace_aux",
|
||||
"otlp_metrics_legacy",
|
||||
"pipeline_table",
|
||||
"pipeline",
|
||||
"pipeline_original",
|
||||
|
||||
@@ -91,8 +91,6 @@ pub fn greptime_native_histogram() -> &'static str {
|
||||
const GREPTIME_TIMESTAMP: &str = "greptime_timestamp";
|
||||
/// Default value column name constant for backward compatibility.
|
||||
const GREPTIME_VALUE: &str = "greptime_value";
|
||||
/// Default counter column name for OTLP metrics (legacy mode).
|
||||
pub const GREPTIME_COUNT: &str = "greptime_count";
|
||||
/// Stored series label that opts ordinary float samples into raw-delta math.
|
||||
pub const OTLP_AGGREGATION_TEMPORALITY_LABEL: &str = "otlp_aggregation_temporality";
|
||||
/// Authoritative raw-delta value for [`OTLP_AGGREGATION_TEMPORALITY_LABEL`].
|
||||
|
||||
Reference in New Issue
Block a user