Skip to content

Commit

Permalink
Merge pull request #45 from TencentBlueKing/develop
Browse files Browse the repository at this point in the history
v1.8.11
  • Loading branch information
zhu327 committed Nov 23, 2021
2 parents d348794 + eae6f2e commit e58a899
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.8.10
1.8.11
6 changes: 3 additions & 3 deletions pkg/metric/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
// RequestCount api状态计数 + server_ip的请求数量和状态
RequestCount = prometheus.NewCounterVec(
prometheus.CounterOpts{
Name: "api_requests_total",
Name: "bkiam_api_requests_total",
Help: "How many HTTP requests processed, partitioned by status code, method and HTTP path.",
ConstLabels: prometheus.Labels{"service": serviceName},
},
Expand All @@ -32,7 +32,7 @@ var (

// RequestDuration api响应时间分布
RequestDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Name: "api_request_duration_milliseconds",
Name: "bkiam_api_request_duration_milliseconds",
Help: "How long it took to process the request, partitioned by status code, method and HTTP path.",
ConstLabels: prometheus.Labels{"service": serviceName},
Buckets: []float64{50, 100, 200, 500, 1000, 2000, 5000},
Expand All @@ -42,7 +42,7 @@ var (

// ComponentRequestDuration 依赖 api 响应时间分布
ComponentRequestDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Name: "component_request_duration_milliseconds",
Name: "bkiam_component_request_duration_milliseconds",
Help: "How long it took to process the request, partitioned by status code, method and HTTP path.",
ConstLabels: prometheus.Labels{"service": serviceName},
Buckets: []float64{20, 50, 100, 200, 500, 1000, 2000, 5000},
Expand Down
4 changes: 4 additions & 0 deletions release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.8.11

- upgrade: metrics name add prefix bkiam

# 1.8.10

- upgrade: config template update cmdb resource limit
Expand Down

0 comments on commit e58a899

Please sign in to comment.