Skip to content

Commit

Permalink
feat: 仪表盘维度别名信息调整 #1010158081121910921
Browse files Browse the repository at this point in the history
  • Loading branch information
zzz833708 committed Feb 12, 2025
1 parent b786f44 commit a339ee7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bklog/apps/grafana/handlers/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ def get_metric_list(self, category_id=None):
# 有配置别名,修改name
if field_id == info.get("path"):
query_alias = alias_name
break

if field_info["es_doc_values"] and field_info.get("field_type") != "date":
metric_conf["dimension_fields"].append({"id": field_id, "name": field_description, "query_alias": query_alias})
Expand Down

0 comments on commit a339ee7

Please sign in to comment.