diff --git a/pkg/tsdb/cloudwatch/metric_find_query.go b/pkg/tsdb/cloudwatch/metric_find_query.go index 8a4d41d3d5a..13f00fda941 100644 --- a/pkg/tsdb/cloudwatch/metric_find_query.go +++ b/pkg/tsdb/cloudwatch/metric_find_query.go @@ -550,6 +550,8 @@ func (e *CloudWatchExecutor) handleGetEc2InstanceAttribute(ctx context.Context, } if attr, ok := v.Interface().(*string); ok { data = *attr + } else if attr, ok := v.Interface().(*time.Time); ok { + data = (*attr).String() } else { return nil, errors.New("invalid attribute path") }