@@ -755,6 +755,54 @@ func NewPrometheusCollector(i infoProvider, f ContainerLabelsFunc, includedMetri
755755 return float64 (fs .WeightedIoTime ) / float64 (time .Second )
756756 }, s .Timestamp )
757757 },
758+ }, {
759+ name : "container_fs_io_cost_usage_seconds_total" ,
760+ help : "Cumulative IOCost usage in seconds" ,
761+ valueType : prometheus .CounterValue ,
762+ extraLabels : []string {"device" },
763+ getValues : func (s * info.ContainerStats ) metricValues {
764+ return ioValues (
765+ s .DiskIo .IoCostUsage , "Count" , asMicrosecondsToSeconds ,
766+ []info.FsStats {}, nil ,
767+ s .Timestamp ,
768+ )
769+ },
770+ }, {
771+ name : "container_fs_io_cost_wait_seconds_total" ,
772+ help : "Cumulative IOCost wait in seconds" ,
773+ valueType : prometheus .CounterValue ,
774+ extraLabels : []string {"device" },
775+ getValues : func (s * info.ContainerStats ) metricValues {
776+ return ioValues (
777+ s .DiskIo .IoCostWait , "Count" , asMicrosecondsToSeconds ,
778+ []info.FsStats {}, nil ,
779+ s .Timestamp ,
780+ )
781+ },
782+ }, {
783+ name : "container_fs_io_cost_indebt_seconds_total" ,
784+ help : "Cumulative IOCost debt in seconds" ,
785+ valueType : prometheus .CounterValue ,
786+ extraLabels : []string {"device" },
787+ getValues : func (s * info.ContainerStats ) metricValues {
788+ return ioValues (
789+ s .DiskIo .IoCostIndebt , "Count" , asMicrosecondsToSeconds ,
790+ []info.FsStats {}, nil ,
791+ s .Timestamp ,
792+ )
793+ },
794+ }, {
795+ name : "container_fs_io_cost_indelay_seconds_total" ,
796+ help : "Cumulative IOCost delay in seconds" ,
797+ valueType : prometheus .CounterValue ,
798+ extraLabels : []string {"device" },
799+ getValues : func (s * info.ContainerStats ) metricValues {
800+ return ioValues (
801+ s .DiskIo .IoCostIndelay , "Count" , asMicrosecondsToSeconds ,
802+ []info.FsStats {}, nil ,
803+ s .Timestamp ,
804+ )
805+ },
758806 },
759807 {
760808 name : "container_blkio_device_usage_total" ,
0 commit comments