Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对于指标多个维度标识时,出现混乱 #15

Open
qin7972 opened this issue Feb 8, 2021 · 0 comments
Open

对于指标多个维度标识时,出现混乱 #15

qin7972 opened this issue Feb 8, 2021 · 0 comments

Comments

@qin7972
Copy link

qin7972 commented Feb 8, 2021

在夜莺平台上,查询api为

/api/index/counter/fullmatch ,请求体为
[
    {
        "endpoints":[
            "xxx"
        ],
        "metric":"MemNonHeapUsedM",
        "tagkv":[
            {
                "tagk":"role",
                "tagv":[
                    "DataNode"
                ]
            },
            {
                "tagk":"app",
                "tagv":[
                    "Hbase",
                    "hadoop"
                ]
            },
            {
                "tagk":"service",
                "tagv":[
                    "DataNode"
                ]
            },
            {
                "tagk":"name",
                "tagv":[
                    "JvmMetrics"
                ]
            }
        ]
    }
]

但是插件请求时,多了一个path维度,这个维度在夜莺上我们是留空的, 夜莺本身没有发出去,但是使用插件也是留空的,但是插件却将这个字段发出,产生的结果是插件发出的请求,不能查询结果

/api/datasources/proxy/1/api/index/counter/fullmatch请求体为
[
    {
        "endpoints":[
            "xxx"
        ],
        "metric":"MemNonHeapUsedM",
        "tagkv":[
            {
                "tagk":"path",
                "tagv":[]
            }
            {
                "tagk":"role",
                "tagv":[
                    "DataNode"
                ]
            },
            {
                "tagk":"app",
                "tagv":[
                    "Hbase",
                    "hadoop"
                ]
            },
            {
                "tagk":"service",
                "tagv":[
                    "DataNode"
                ]
            },
            {
                "tagk":"name",
                "tagv":[
                    "JvmMetrics"
                ]
            }
        ]
    }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant