Open
Description
Component(s)
receiver/sqlquery
Is your feature request related to a problem? Please describe.
Moving from a non-OTel exporter to this, I found that if the receiver/sqlquery runs into an error, it doesn't have a "scrape error" metric. Should we have one?
What sqlquery does to scrape:
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/internal/sqlquery/scraper.go#L78
Describe the solution you'd like
The postgres_exporter sets a gauge and exports that as a metric:
(It is kind of open-ended: any number/type of errors gets reported as a scrape error "y/n" output, but it's useful to know if the scraping itself has run into an error)
Describe alternatives you've considered
Possibly there's something in the OTel internal metrics that should be leveraged for this sort of warning?
https://opentelemetry.io/docs/collector/internal-telemetry/
Additional context
No response