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
10ab3fb8
Commit
10ab3fb8
authored
Mar 06, 2019
by
danielqsj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean the deprecated metrics which introduced recently
parent
f330633a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
15 deletions
+0
-15
proxier.go
pkg/proxy/iptables/proxier.go
+0
-1
proxier.go
pkg/proxy/ipvs/proxier.go
+0
-1
metrics.go
pkg/proxy/metrics/metrics.go
+0
-13
No files found.
pkg/proxy/iptables/proxier.go
View file @
10ab3fb8
...
...
@@ -1356,7 +1356,6 @@ func (proxier *Proxier) syncProxyRules() {
for
_
,
lastChangeTriggerTime
:=
range
endpointUpdateResult
.
LastChangeTriggerTimes
{
latency
:=
metrics
.
SinceInSeconds
(
lastChangeTriggerTime
)
metrics
.
NetworkProgrammingLatency
.
Observe
(
latency
)
metrics
.
DeprecatedNetworkProgrammingLatency
.
Observe
(
latency
)
klog
.
V
(
4
)
.
Infof
(
"Network programming took %f seconds"
,
latency
)
}
...
...
pkg/proxy/ipvs/proxier.go
View file @
10ab3fb8
...
...
@@ -1203,7 +1203,6 @@ func (proxier *Proxier) syncProxyRules() {
for
_
,
lastChangeTriggerTime
:=
range
endpointUpdateResult
.
LastChangeTriggerTimes
{
latency
:=
metrics
.
SinceInSeconds
(
lastChangeTriggerTime
)
metrics
.
NetworkProgrammingLatency
.
Observe
(
latency
)
metrics
.
DeprecatedNetworkProgrammingLatency
.
Observe
(
latency
)
klog
.
V
(
4
)
.
Infof
(
"Network programming took %f seconds"
,
latency
)
}
...
...
pkg/proxy/metrics/metrics.go
View file @
10ab3fb8
...
...
@@ -63,18 +63,6 @@ var (
Buckets
:
prometheus
.
ExponentialBuckets
(
0.001
,
2
,
20
),
},
)
// DeprecatedNetworkProgrammingLatency is deprecated, please use NetworkProgrammingLatency.
DeprecatedNetworkProgrammingLatency
=
prometheus
.
NewHistogram
(
prometheus
.
HistogramOpts
{
Subsystem
:
kubeProxySubsystem
,
Name
:
"network_programming_latency_seconds"
,
Help
:
"(Deprecated) In Cluster Network Programming Latency in seconds"
,
// TODO(mm4tt): Reevaluate buckets before 1.14 release.
// The last bucket will be [0.001s*2^20 ~= 17min, +inf)
Buckets
:
prometheus
.
ExponentialBuckets
(
0.001
,
2
,
20
),
},
)
)
var
registerMetricsOnce
sync
.
Once
...
...
@@ -85,7 +73,6 @@ func RegisterMetrics() {
prometheus
.
MustRegister
(
SyncProxyRulesLatency
)
prometheus
.
MustRegister
(
DeprecatedSyncProxyRulesLatency
)
prometheus
.
MustRegister
(
NetworkProgrammingLatency
)
prometheus
.
MustRegister
(
DeprecatedNetworkProgrammingLatency
)
})
}
...
...
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