1 Star 0 Fork 2

yanyue/cloudbases.io.kiali

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
business
config
deploy
graph
hack
handlers
kubernetes
log
models
prometheus
internalmetrics
prometheustest
client.go
metrics.go
metrics_definitions.go
types.go
routing
server
status
tests
util
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
DEMOS.adoc
LICENSE
Makefile
PULL_REQUEST_TEMPLATE.md
README.adoc
RELEASING.adoc
STYLE_GUIDE.adoc
config.yaml
doc.go
glide.lock
glide.yaml
kiali.go
swagger.json
克隆/下载
metrics_definitions.go 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
Hubery1003 提交于 3年前 . first commit
package prometheus
type istioMetric struct {
kialiName string
istioName string
isHisto bool
useErrorLabels bool
}
var istioMetrics = []istioMetric{
istioMetric{
kialiName: "request_count",
istioName: "istio_requests_total",
isHisto: false,
},
istioMetric{
kialiName: "request_error_count",
istioName: "istio_requests_total",
isHisto: false,
useErrorLabels: true,
},
istioMetric{
kialiName: "request_duration",
istioName: "istio_request_duration_seconds",
isHisto: true,
},
istioMetric{
kialiName: "request_size",
istioName: "istio_request_bytes",
isHisto: true,
},
istioMetric{
kialiName: "response_size",
istioName: "istio_response_bytes",
isHisto: true,
},
istioMetric{
kialiName: "tcp_received",
istioName: "istio_tcp_received_bytes_total",
isHisto: false,
},
istioMetric{
kialiName: "tcp_sent",
istioName: "istio_tcp_sent_bytes_total",
isHisto: false,
},
}
func (in *istioMetric) labelsToUse(labels, labelsError string) string {
if in.useErrorLabels {
return labelsError
}
return labels
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/programmer-zpz/cloudbases.io.kiali.git
git@gitee.com:programmer-zpz/cloudbases.io.kiali.git
programmer-zpz
cloudbases.io.kiali
cloudbases.io.kiali
v0.15.1-v3restful

搜索帮助