Prepare a Dashboard for Exceptions

Hello Team ,

Good day !!
We wanted to know is it possible to prepare a dashboard for only the exception payload from an API .
example -->do a get call to an API -->pull the data if no exception–> do nothing → if exception is there in the payload then only this needs to be pushed to the dashboard .(using telegraf or promethus )

the issue i see here is the time i wont be having exception all the time . any info on this how can we achieve this use case in grafana and which data source is best fit to use this .

Thanks in advance for the help
Regards,
Sandeep