-
Notifications
You must be signed in to change notification settings - Fork 612
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
a question about ai-statistics plugin #1919
Comments
and also, if I want to add tags in currrent metrics, what should I do, I tried modify the source code and added some tags, but failed, if have some examples |
The key and value of the metric label will be extracted from the original metric, and then the value will be removed from the original metric. |
thanks for your reply, if I want to add tags in metrics, mustI make a image for envoy and expose the tags like below?
` if have some other ways, that only through modify higress plugin souce code, achieve this function. |
cc @johnlanni |
hello:
I have a question about plugin ai-statistics,the plugin code as below:
in func writeMetric, there is a logic
`
`
and in func generateMetricName:
`
}
`
last in config.incrementCounter, the code as below:
`
}
`
my question is:
the metrics name should be:route.xxx.upstream.yyy.model.zzz.consumer.aaa.metric.bbb, because it generated by:
`
`
but I find in http://ip:15020/stats/prometheus, the metrics name as below:
`
`
I want to know the metrics name why is route_upstream_model_consumer_metric_input_token rather than route.xxx.upstream.yyy.model.zzz.consumer.aaa.metric.bbb
is there any logic I ignored?
hope your answer. thanks
The text was updated successfully, but these errors were encountered: