mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-30 03:40:37 +00:00
fix: remove __name__ matcher from processed matcher list (#3213)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
@@ -557,6 +557,7 @@ impl PromPlanner {
|
||||
name: &Option<String>,
|
||||
) -> Result<Matchers> {
|
||||
self.ctx.reset();
|
||||
|
||||
let metric_name;
|
||||
if let Some(name) = name.clone() {
|
||||
metric_name = Some(name);
|
||||
@@ -581,7 +582,7 @@ impl PromPlanner {
|
||||
.field_column_matcher
|
||||
.get_or_insert_default()
|
||||
.push(matcher.clone());
|
||||
} else {
|
||||
} else if matcher.name != METRIC_NAME {
|
||||
let _ = matchers.insert(matcher.clone());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user