|
|
@@ -669,6 +669,17 @@ func Test_kubernetesScraper_scrapePods(t *testing.T) {
|
|
|
Value: 1024,
|
|
|
AdditionalInfo: nil,
|
|
|
},
|
|
|
+ {
|
|
|
+ Name: metric.PodPVCAllocation,
|
|
|
+ Labels: map[string]string{
|
|
|
+ source.PodLabel: unmountedPVsContainer,
|
|
|
+ source.NamespaceLabel: "namespace1",
|
|
|
+ source.PVCLabel: "pvc1",
|
|
|
+ source.PVLabel: "vol1",
|
|
|
+ },
|
|
|
+ Value: 4096,
|
|
|
+ AdditionalInfo: nil,
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
@@ -859,20 +870,6 @@ func Test_kubernetesScraper_scrapePods(t *testing.T) {
|
|
|
Value: 1024,
|
|
|
AdditionalInfo: nil,
|
|
|
},
|
|
|
- {
|
|
|
- Name: metric.PodPVCAllocation,
|
|
|
- Labels: map[string]string{
|
|
|
- source.InstanceLabel: "",
|
|
|
- source.NamespaceLabel: "namespace1",
|
|
|
- source.NodeLabel: "",
|
|
|
- source.PVLabel: "vol1",
|
|
|
- source.PVCLabel: "pvc1",
|
|
|
- source.PodLabel: "unmounted-pvs",
|
|
|
- source.UIDLabel: "",
|
|
|
- },
|
|
|
- Value: 4096,
|
|
|
- AdditionalInfo: nil,
|
|
|
- },
|
|
|
},
|
|
|
},
|
|
|
}
|