influxdata / telegraf

Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
https://influxdata.com/telegraf
MIT License
14.1k stars 5.51k forks source link

prometheus scrape metric #10766

Open genofire opened 2 years ago

genofire commented 2 years ago

Feature Request

We do not know, if the scrapes data of [[input.prometheus]] are fetched (or missed).

Proposal:

Current behavior:

Missing data, no data if scraped.

Desired behavior:

Metrics with tag of the different URLs (and if it is scraped).

Maybe also a metrics of duration of scrape (to find slow Prometheus exporters).

Use case:

sspaink commented 2 years ago

Are you still facing this issue? If you are, could you please provide more information about the problem you are facing? Could you provide you Telegraf configuration, any log output (preferably with --debug flag so we have more info), and you could try running it with --test as well to help isolate if it is a problem with the input plugin. Thanks!

genofire commented 2 years ago

It is no problem/bug, just a missing functionality.

I like to have a values from the scraping process, mainly if it was possible to fetch values and maybe duration of scrape/request.

(Like Prometheus creates the up metric)

redbaron commented 1 year ago

Similar issue with more details/ideas: https://github.com/influxdata/telegraf/issues/13103