mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-29 11:20:38 +00:00
feat: implement /api/v1/labels for prometheus (#1580)
* feat: implement /api/v1/labels for prometheus * fix: only gather match[] * chore: fix typo * chore: fix typo * chore: change style * fix: suggestion * fix: suggestion * chore: typo * fix: fmt * fix: add more test
This commit is contained in:
@@ -37,6 +37,7 @@ use crate::error::{
|
||||
use crate::metrics::{METRIC_PARSE_PROMQL_ELAPSED, METRIC_PARSE_SQL_ELAPSED};
|
||||
|
||||
const DEFAULT_LOOKBACK: u64 = 5 * 60; // 5m
|
||||
pub const DEFAULT_LOOKBACK_STRING: &str = "5m";
|
||||
pub const EXPLAIN_NODE_NAME: &str = "EXPLAIN";
|
||||
pub const ANALYZE_NODE_NAME: &str = "ANALYZE";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user