upgrade to latest dependencies (#426)

bumping knative.dev/pkg a02dcff...448ae65:
  > 448ae65 Metric unit fixes (# 2018)
  > e38bb89 Update common github actions (# 2017)

Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
knative-automation 2021-02-14 19:02:44 -08:00 committed by GitHub
parent 5a65e9097b
commit 1212288570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 49 additions and 49 deletions

2
go.mod
View File

@ -18,5 +18,5 @@ require (
k8s.io/code-generator v0.19.7
k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6
knative.dev/hack v0.0.0-20210203173706-8368e1f6eacf
knative.dev/pkg v0.0.0-20210208175252-a02dcff9ee26
knative.dev/pkg v0.0.0-20210212203835-448ae657fb5f
)

4
go.sum
View File

@ -1188,8 +1188,8 @@ k8s.io/utils v0.0.0-20200729134348-d5654de09c73 h1:uJmqzgNWG7XyClnU/mLPBWwfKKF1K
k8s.io/utils v0.0.0-20200729134348-d5654de09c73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
knative.dev/hack v0.0.0-20210203173706-8368e1f6eacf h1:u4cY4jr2LYvhoz/1HBWEPsMiLkm0HMdDTfmmw1RE8zE=
knative.dev/hack v0.0.0-20210203173706-8368e1f6eacf/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
knative.dev/pkg v0.0.0-20210208175252-a02dcff9ee26 h1:PkJB1M77wYBI1UF5vp8y4fRnYQDu1IkRWswp6CgRRSo=
knative.dev/pkg v0.0.0-20210208175252-a02dcff9ee26/go.mod h1:TJSdebQOWX5N2bszohOYVi0H1QtXbtlYLuMghAFBMhY=
knative.dev/pkg v0.0.0-20210212203835-448ae657fb5f h1:pz+UDOTsCIClHXGM/SgCzkctLxgi3+P0C26x6Ujlqho=
knative.dev/pkg v0.0.0-20210212203835-448ae657fb5f/go.mod h1:TJSdebQOWX5N2bszohOYVi0H1QtXbtlYLuMghAFBMhY=
pgregory.net/rapid v0.3.3/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=

View File

@ -34,8 +34,8 @@ import (
)
var (
workQueueDepthStat = stats.Int64("work_queue_depth", "Depth of the work queue", stats.UnitNone)
reconcileCountStat = stats.Int64("reconcile_count", "Number of reconcile operations", stats.UnitNone)
workQueueDepthStat = stats.Int64("work_queue_depth", "Depth of the work queue", stats.UnitDimensionless)
reconcileCountStat = stats.Int64("reconcile_count", "Number of reconcile operations", stats.UnitDimensionless)
reconcileLatencyStat = stats.Int64("reconcile_latency", "Latency of reconcile operations", stats.UnitMilliseconds)
// reconcileDistribution defines the bucket boundaries for the histogram of reconcile latency metric.
@ -58,37 +58,37 @@ func init() {
Adds: stats.Int64(
"workqueue_adds_total",
"Total number of adds handled by workqueue",
stats.UnitNone,
stats.UnitDimensionless,
),
Depth: stats.Int64(
"workqueue_depth",
"Current depth of workqueue",
stats.UnitNone,
stats.UnitDimensionless,
),
Latency: stats.Float64(
"workqueue_queue_latency_seconds",
"How long in seconds an item stays in workqueue before being requested.",
"s",
stats.UnitSeconds,
),
Retries: stats.Int64(
"workqueue_retries_total",
"Total number of retries handled by workqueue",
"s",
stats.UnitDimensionless,
),
WorkDuration: stats.Float64(
"workqueue_work_duration_seconds",
"How long in seconds processing an item from workqueue takes.",
"s",
stats.UnitSeconds,
),
UnfinishedWorkSeconds: stats.Float64(
"workqueue_unfinished_work_seconds",
"How long in seconds the outstanding workqueue items have been in flight (total).",
"s",
stats.UnitSeconds,
),
LongestRunningProcessorSeconds: stats.Float64(
"workqueue_longest_running_processor_seconds",
"How long in seconds the longest outstanding workqueue item has been in flight.",
"s",
stats.UnitSeconds,
),
}
workqueue.SetProvider(wp)
@ -99,49 +99,49 @@ func init() {
ItemsInList: stats.Float64(
"reflector_items_in_list",
"How many items an API list returns to the reflectors",
stats.UnitNone,
stats.UnitDimensionless,
),
// TODO(mattmoor): This is not in the latest version, so it will
// be removed in a future version.
ItemsInMatch: stats.Float64(
"reflector_items_in_match",
"",
stats.UnitNone,
stats.UnitDimensionless,
),
ItemsInWatch: stats.Float64(
"reflector_items_in_watch",
"How many items an API watch returns to the reflectors",
stats.UnitNone,
stats.UnitDimensionless,
),
LastResourceVersion: stats.Float64(
"reflector_last_resource_version",
"Last resource version seen for the reflectors",
stats.UnitNone,
stats.UnitDimensionless,
),
ListDuration: stats.Float64(
"reflector_list_duration_seconds",
"How long an API list takes to return and decode for the reflectors",
stats.UnitNone,
stats.UnitSeconds,
),
Lists: stats.Int64(
"reflector_lists_total",
"Total number of API lists done by the reflectors",
stats.UnitNone,
stats.UnitDimensionless,
),
ShortWatches: stats.Int64(
"reflector_short_watches_total",
"Total number of short API watches done by the reflectors",
stats.UnitNone,
stats.UnitDimensionless,
),
WatchDuration: stats.Float64(
"reflector_watch_duration_seconds",
"How long an API watch takes to return and decode for the reflectors",
stats.UnitNone,
stats.UnitSeconds,
),
Watches: stats.Int64(
"reflector_watches_total",
"Total number of API watches done by the reflectors",
stats.UnitNone,
stats.UnitDimensionless,
),
}
cache.SetReflectorMetricsProvider(rp)
@ -150,12 +150,12 @@ func init() {
Latency: stats.Float64(
"client_latency",
"How long Kubernetes API requests take",
"s",
stats.UnitSeconds,
),
Result: stats.Int64(
"client_results",
"Total number of API requests (broken down by status code)",
stats.UnitNone,
stats.UnitDimensionless,
),
}
opts := kubemetrics.RegisterOpts{

View File

@ -33,112 +33,112 @@ func NewMemStatsAll() *MemStatsProvider {
Alloc: stats.Int64(
"go_alloc",
"The number of bytes of allocated heap objects.",
stats.UnitNone,
stats.UnitDimensionless,
),
TotalAlloc: stats.Int64(
"go_total_alloc",
"The cumulative bytes allocated for heap objects.",
stats.UnitNone,
stats.UnitDimensionless,
),
Sys: stats.Int64(
"go_sys",
"The total bytes of memory obtained from the OS.",
stats.UnitNone,
stats.UnitDimensionless,
),
Lookups: stats.Int64(
"go_lookups",
"The number of pointer lookups performed by the runtime.",
stats.UnitNone,
stats.UnitDimensionless,
),
Mallocs: stats.Int64(
"go_mallocs",
"The cumulative count of heap objects allocated.",
stats.UnitNone,
stats.UnitDimensionless,
),
Frees: stats.Int64(
"go_frees",
"The cumulative count of heap objects freed.",
stats.UnitNone,
stats.UnitDimensionless,
),
HeapAlloc: stats.Int64(
"go_heap_alloc",
"The number of bytes of allocated heap objects.",
stats.UnitNone,
stats.UnitDimensionless,
),
HeapSys: stats.Int64(
"go_heap_sys",
"The number of bytes of heap memory obtained from the OS.",
stats.UnitNone,
stats.UnitDimensionless,
),
HeapIdle: stats.Int64(
"go_heap_idle",
"The number of bytes in idle (unused) spans.",
stats.UnitNone,
stats.UnitDimensionless,
),
HeapInuse: stats.Int64(
"go_heap_in_use",
"The number of bytes in in-use spans.",
stats.UnitNone,
stats.UnitDimensionless,
),
HeapReleased: stats.Int64(
"go_heap_released",
"The number of bytes of physical memory returned to the OS.",
stats.UnitNone,
stats.UnitDimensionless,
),
HeapObjects: stats.Int64(
"go_heap_objects",
"The number of allocated heap objects.",
stats.UnitNone,
stats.UnitDimensionless,
),
StackInuse: stats.Int64(
"go_stack_in_use",
"The number of bytes in stack spans.",
stats.UnitNone,
stats.UnitDimensionless,
),
StackSys: stats.Int64(
"go_stack_sys",
"The number of bytes of stack memory obtained from the OS.",
stats.UnitNone,
stats.UnitDimensionless,
),
MSpanInuse: stats.Int64(
"go_mspan_in_use",
"The number of bytes of allocated mspan structures.",
stats.UnitNone,
stats.UnitDimensionless,
),
MSpanSys: stats.Int64(
"go_mspan_sys",
"The number of bytes of memory obtained from the OS for mspan structures.",
stats.UnitNone,
stats.UnitDimensionless,
),
MCacheInuse: stats.Int64(
"go_mcache_in_use",
"The number of bytes of allocated mcache structures.",
stats.UnitNone,
stats.UnitDimensionless,
),
MCacheSys: stats.Int64(
"go_mcache_sys",
"The number of bytes of memory obtained from the OS for mcache structures.",
stats.UnitNone,
stats.UnitDimensionless,
),
BuckHashSys: stats.Int64(
"go_bucket_hash_sys",
"The number of bytes of memory in profiling bucket hash tables.",
stats.UnitNone,
stats.UnitDimensionless,
),
GCSys: stats.Int64(
"go_gc_sys",
"The number of bytes of memory in garbage collection metadata.",
stats.UnitNone,
stats.UnitDimensionless,
),
OtherSys: stats.Int64(
"go_other_sys",
"The number of bytes of memory in miscellaneous off-heap runtime allocations.",
stats.UnitNone,
stats.UnitDimensionless,
),
NextGC: stats.Int64(
"go_next_gc",
"The target heap size of the next GC cycle.",
stats.UnitNone,
stats.UnitDimensionless,
),
LastGC: stats.Int64(
"go_last_gc",
@ -153,17 +153,17 @@ func NewMemStatsAll() *MemStatsProvider {
NumGC: stats.Int64(
"go_num_gc",
"The number of completed GC cycles.",
stats.UnitNone,
stats.UnitDimensionless,
),
NumForcedGC: stats.Int64(
"go_num_forced_gc",
"The number of GC cycles that were forced by the application calling the GC function.",
stats.UnitNone,
stats.UnitDimensionless,
),
GCCPUFraction: stats.Float64(
"go_gc_cpu_fraction",
"The fraction of this program's available CPU time used by the GC since the program started.",
stats.UnitNone,
stats.UnitDimensionless,
),
}
}

2
vendor/modules.txt vendored
View File

@ -658,7 +658,7 @@ k8s.io/utils/trace
# knative.dev/hack v0.0.0-20210203173706-8368e1f6eacf
## explicit
knative.dev/hack
# knative.dev/pkg v0.0.0-20210208175252-a02dcff9ee26
# knative.dev/pkg v0.0.0-20210212203835-448ae657fb5f
## explicit
knative.dev/pkg/apis
knative.dev/pkg/apis/duck