简体   繁体   English

使用micrometer.io更改普罗米修斯终点

[英]Change prometheus endpoint using micrometer.io

I use micrometer metrics for prometheus and according to docs: http://micrometer.io/docs/prometheus#_configuring 我使用千分尺度量普罗米修斯并根据文档: http : //micrometer.io/docs/prometheus#_configuring

A Spring Boot Actuator endpoint will be wired to /prometheus that presents a Prometheus scrape with the appropriate format. 一个Spring Boot Actuator端点将被连接到/ prometheus,它以适当的格式显示Prometheus抓取。

How to wire it to another endpoint like /metrics ? 如何将其连接到另一个端点,如/metrics

You can change the endpoint using the normal Spring Boot Actuator mechanism like so: 您可以使用常规的Spring Boot Actuator机制更改端点,如下所示:

endpoints:
  prometheus:
    id: micrometheus

Here is a reference to the Micrometer documentation of this. 这是对此的千分尺文档的参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Prometheus端点中不提供使用Micrometer的自定义指标 - Custom metrics using Micrometer is not available in Prometheus endpoint 当我使用千分尺的PrometheusMeterRegistry时,度量标准没有出现在prometheus终点 - Metrics not appearing at prometheus endpoint when I'm using micrometer's PrometheusMeterRegistry 如何使用千分尺和普罗米修斯(PromQL)测量异步进程的总时间? - How to measure the total time of an asynchronous process using micrometer and prometheus (PromQL)? 用千分尺暴露 HTTP 端点 - expose HTTP endpoint with micrometer 千分尺相当于普罗米修斯的标签 - Micrometer's equivalent of Prometheus' labels Micrometer - Prometheus Gauge 显示 NaN - Micrometer - Prometheus Gauge displays NaN 如何使用 Micrometer 格式和 /actuator/prometheus 将 Apache Camel 指标(如 metrics:timer:simple.timer)输出到 Prometheus - How to output Apache Camel metrics like metrics:timer:simple.timer to Prometheus using Micrometer format with /actuator/prometheus jersey 应用程序中的千分尺 Prometheus 指标(非弹簧) - Micrometer Prometheus metrics in jersey application (Non spring) 带有球衣和千分尺的Prometheus端点中的模板化URL - Templated URLs in Prometheus End Point with Jersey and Micrometer 弹簧启动Prometheus,千分尺无法发布数据 - Spring boot Prometheus , micrometer not able to publish data
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM