diff --git a/pkg/custom-provider/provider.go b/pkg/custom-provider/provider.go index 989042d5..8061d9ca 100644 --- a/pkg/custom-provider/provider.go +++ b/pkg/custom-provider/provider.go @@ -98,8 +98,20 @@ func (p *prometheusProvider) metricFor(value pmodel.SampleValue, name types.Name Metric: custom_metrics.MetricIdentifier{ Name: info.Metric, }, + // TODO(directxman12): use the right timestamp - Timestamp: metav1.Time{Time: time.Now()}, + + + /*Making the changes in the timestamp as per issue + number #545*/ + + // Previously set timestamp + //Timestamp: metav1.Time{Time: time.Now()}, + + // Newly set timestamp + Timestamp: metav1.Time{ + Time: value.Timestamp.Time(), + }, Value: *q, }