Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
65aec219
Commit
65aec219
authored
Dec 26, 2018
by
danielqsj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move docker metrics to histogram metrics
parent
94d10503
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
metrics.go
pkg/kubelet/dockershim/metrics/metrics.go
+3
-2
metrics.go
pkg/kubelet/dockershim/network/metrics/metrics.go
+3
-2
No files found.
pkg/kubelet/dockershim/metrics/metrics.go
View file @
65aec219
...
@@ -49,11 +49,12 @@ const (
...
@@ -49,11 +49,12 @@ const (
var
(
var
(
// DockerOperationsLatency collects operation latency numbers by operation
// DockerOperationsLatency collects operation latency numbers by operation
// type.
// type.
DockerOperationsLatency
=
prometheus
.
New
Summary
Vec
(
DockerOperationsLatency
=
prometheus
.
New
Histogram
Vec
(
prometheus
.
Summary
Opts
{
prometheus
.
Histogram
Opts
{
Subsystem
:
kubeletSubsystem
,
Subsystem
:
kubeletSubsystem
,
Name
:
DockerOperationsLatencyKey
,
Name
:
DockerOperationsLatencyKey
,
Help
:
"Latency in seconds of Docker operations. Broken down by operation type."
,
Help
:
"Latency in seconds of Docker operations. Broken down by operation type."
,
Buckets
:
prometheus
.
DefBuckets
,
},
},
[]
string
{
"operation_type"
},
[]
string
{
"operation_type"
},
)
)
...
...
pkg/kubelet/dockershim/network/metrics/metrics.go
View file @
65aec219
...
@@ -38,11 +38,12 @@ const (
...
@@ -38,11 +38,12 @@ const (
var
(
var
(
// NetworkPluginOperationsLatency collects operation latency numbers by operation
// NetworkPluginOperationsLatency collects operation latency numbers by operation
// type.
// type.
NetworkPluginOperationsLatency
=
prometheus
.
New
Summary
Vec
(
NetworkPluginOperationsLatency
=
prometheus
.
New
Histogram
Vec
(
prometheus
.
Summary
Opts
{
prometheus
.
Histogram
Opts
{
Subsystem
:
kubeletSubsystem
,
Subsystem
:
kubeletSubsystem
,
Name
:
NetworkPluginOperationsLatencyKey
,
Name
:
NetworkPluginOperationsLatencyKey
,
Help
:
"Latency in seconds of network plugin operations. Broken down by operation type."
,
Help
:
"Latency in seconds of network plugin operations. Broken down by operation type."
,
Buckets
:
prometheus
.
DefBuckets
,
},
},
[]
string
{
"operation_type"
},
[]
string
{
"operation_type"
},
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment