prometheus - "instrument"在普罗米修斯中究竟是什么意思

标签 prometheus

最近在学习一个开源系统监控和告警工具包Prometheus .

我仔细阅读了在线文档。 Prometheus 中有一个名为“ Instrument ”(仪器或仪器)的词汇表。对我来说,这不是很容易理解。也许是因为这个词在我查字典的时候有很多不同的含义,没有一个适合帮助我在 Prometheus 上下文中理解它(我的母语不是英语)。

有人可以用简单的方式解释它的含义吗?什么是“仪器”,为什么我们在 Prometheus 中需要它?

非常感谢您的帮助。

最佳答案

在 Prometheus 的上下文中,检测是在应用程序的代码库中使用库,以便公开和更新有关它的指标,以便 Prometheus 实例进行抓取。

例如,可以使用 Prometheus Python client (包含示例)在他们基于 Python 的应用程序中公开有关要抓取的指标。

关于prometheus - "instrument"在普罗米修斯中究竟是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44654679/

相关文章:

prometheus - 替换 Prometheus 标签值中的字符

spring-boot - org.springframework.boot.actuate.metrics.export.prometheus.PrometheusScrapeEndpoint 上的奇怪格式 "java.lang.NoSuchFieldError: INFO error"

performance - Prometheus-将cpu_user_seconds转换为CPU使用率%?

docker - 启动 prometheus docker 镜像时出错,即使存在也找不到配置文件

kubernetes - 如何提醒 Kubernetes 集群健康?

普罗米修斯-格拉法纳 : How to use wildcard in query

grafana - 如何过滤 label_values(label) 的结果以获取与正则表达式匹配的标签列表?

普罗米修斯返回 "ranges only allowed for vector selectors"

prometheus - PromQL 查询以查找每个触发警报的持续时间

prometheus - PromQL min_over_time + Predict_线性/峰值监控