@@ -21,7 +21,7 @@ package cgroups
2121import (
2222 "strconv"
2323
24- "github.com/containerd/cgroups "
24+ v1 "github.com/containerd/containerd/metrics/types/v1 "
2525 metrics "github.com/docker/go-metrics"
2626 "github.com/prometheus/client_golang/prometheus"
2727)
@@ -33,7 +33,7 @@ var blkioMetrics = []*metric{
3333 unit : metrics .Total ,
3434 vt : prometheus .GaugeValue ,
3535 labels : []string {"op" , "device" , "major" , "minor" },
36- getValues : func (stats * cgroups .Metrics ) []value {
36+ getValues : func (stats * v1 .Metrics ) []value {
3737 if stats .Blkio == nil {
3838 return nil
3939 }
@@ -46,7 +46,7 @@ var blkioMetrics = []*metric{
4646 unit : metrics .Total ,
4747 vt : prometheus .GaugeValue ,
4848 labels : []string {"op" , "device" , "major" , "minor" },
49- getValues : func (stats * cgroups .Metrics ) []value {
49+ getValues : func (stats * v1 .Metrics ) []value {
5050 if stats .Blkio == nil {
5151 return nil
5252 }
@@ -59,7 +59,7 @@ var blkioMetrics = []*metric{
5959 unit : metrics .Bytes ,
6060 vt : prometheus .GaugeValue ,
6161 labels : []string {"op" , "device" , "major" , "minor" },
62- getValues : func (stats * cgroups .Metrics ) []value {
62+ getValues : func (stats * v1 .Metrics ) []value {
6363 if stats .Blkio == nil {
6464 return nil
6565 }
@@ -72,7 +72,7 @@ var blkioMetrics = []*metric{
7272 unit : metrics .Total ,
7373 vt : prometheus .GaugeValue ,
7474 labels : []string {"op" , "device" , "major" , "minor" },
75- getValues : func (stats * cgroups .Metrics ) []value {
75+ getValues : func (stats * v1 .Metrics ) []value {
7676 if stats .Blkio == nil {
7777 return nil
7878 }
@@ -85,7 +85,7 @@ var blkioMetrics = []*metric{
8585 unit : metrics .Total ,
8686 vt : prometheus .GaugeValue ,
8787 labels : []string {"op" , "device" , "major" , "minor" },
88- getValues : func (stats * cgroups .Metrics ) []value {
88+ getValues : func (stats * v1 .Metrics ) []value {
8989 if stats .Blkio == nil {
9090 return nil
9191 }
@@ -98,7 +98,7 @@ var blkioMetrics = []*metric{
9898 unit : metrics .Total ,
9999 vt : prometheus .GaugeValue ,
100100 labels : []string {"op" , "device" , "major" , "minor" },
101- getValues : func (stats * cgroups .Metrics ) []value {
101+ getValues : func (stats * v1 .Metrics ) []value {
102102 if stats .Blkio == nil {
103103 return nil
104104 }
@@ -111,7 +111,7 @@ var blkioMetrics = []*metric{
111111 unit : metrics .Total ,
112112 vt : prometheus .GaugeValue ,
113113 labels : []string {"op" , "device" , "major" , "minor" },
114- getValues : func (stats * cgroups .Metrics ) []value {
114+ getValues : func (stats * v1 .Metrics ) []value {
115115 if stats .Blkio == nil {
116116 return nil
117117 }
@@ -120,7 +120,7 @@ var blkioMetrics = []*metric{
120120 },
121121}
122122
123- func blkioValues (l []* cgroups .BlkIOEntry ) []value {
123+ func blkioValues (l []* v1 .BlkIOEntry ) []value {
124124 var out []value
125125 for _ , e := range l {
126126 out = append (out , value {
0 commit comments