mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 01:38:10 +00:00
Update tests to use container and pod labels instead of container_name and pod_name
This commit is contained in:
parent
54cd969594
commit
0e105eeeb1
3 changed files with 11 additions and 11 deletions
|
|
@ -49,9 +49,9 @@ func restMapper() apimeta.RESTMapper {
|
|||
func buildPodSample(namespace, pod, container string, val float64, ts int64) *pmodel.Sample {
|
||||
return &pmodel.Sample{
|
||||
Metric: pmodel.Metric{
|
||||
"namespace": pmodel.LabelValue(namespace),
|
||||
"pod_name": pmodel.LabelValue(pod),
|
||||
"container_name": pmodel.LabelValue(container),
|
||||
"namespace": pmodel.LabelValue(namespace),
|
||||
"pod": pmodel.LabelValue(pod),
|
||||
"container": pmodel.LabelValue(container),
|
||||
},
|
||||
Value: pmodel.SampleValue(val),
|
||||
Timestamp: pmodel.Time(ts),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue