Repeated values displayed on the time serie dashboard

I have an application that uses Open telemetry to generate some metrics and then sending to Grafana. One of the metrics is created from a gauge. When running the script sending only once the metric, the metric is displayed repeated on the dashboard for a period of time, even thought I’m not sending that value anymore. Is there a way to display only once the metric sent and if there are no new metrics the dashboard won’t display anything?

You can configure Connect null values:

time series