content/flux/v0/stdlib/experimental/prometheus/scrape.md
prometheus.scrape() scrapes Prometheus metrics from an HTTP-accessible endpoint and returns
them as a stream of tables.
(url: string) => stream[A] where A: Record
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
({{< req >}}) URL to scrape Prometheus metrics from.
import "experimental/prometheus"
prometheus.scrape(url: "http://localhost:8086/metrics")