prometheus.scrape() 函数
prometheus.scrape()
是实验性的,并且随时可能更改。
prometheus.scrape()
从 HTTP 可访问的端点抓取 Prometheus 指标,并将它们作为表流返回。
函数类型签名
(url: string) => stream[A] where A: Record
有关更多信息,请参阅函数类型签名。
参数
url
(必需)从中抓取 Prometheus 指标的 URL。
示例
抓取 InfluxDB OSS 内部指标
import "experimental/prometheus"
prometheus.scrape(url: "https://127.0.0.1:8086/metrics")
此页面是否对您有帮助?
感谢您的反馈!