使用Promethues堆栈监视可流动部署

发布于 01-20 19:29 字数 425 浏览 3 评论 0原文

目的是使用Prometheus/grafana

install kube-prometheus-stack使用Helm图表来监视在Kubernetes上部署的可流动项目:

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install prometheus prometheus-community/kube-prometheus-stack

我们能够开始监视Kubernetes群集内的其他资源

成功部署了它, 作为吊舱运行,我想将可流动的POD指标放到Prometheus上,然后登上Dasboard。

关于如何实现可流动应用程序作为豆荚内的吊舱的任何建议

The goal is to monitor the flowable project deployed on Kubernetes using Prometheus/Grafana

Install kube-prometheus-stack using helm charts:

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install prometheus prometheus-community/kube-prometheus-stack

Its successfully deployed and we are able to start monitoring the other resources inside our Kubernetes cluster using Prometheus/Grafana

Next, Flowable is running as a pod, which I want to get the flowable pod metrics onto Prometheus and come up the dasboard.

Any suggestions on how to achieve the monitoring for a flowable application running as a pod inside kubernetes

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

或十年2025-01-27 19:29:16

添加micrometer-registry-prometheus依赖关系后,流动性(作为春季启动应用程序)使用千分尺,可提供Prometheus格式的指标。然后,端点为执行器/Prometheus

创建自己的Prometheus指标实际上并不困难。您可以创建一个bean实现flowableEventListenermetricbinder,然后收听FlowableEngineEngineEventType process_completed增加微米 CODER> CONDER counter>时间一个过程完成。

在Bindto()方法中注册MeterRegistry的计数器,应该在Prometheus端点上可用。不需要专用的出口舱。

Flowable (as a Spring Boot application) uses Micrometer that will provide metrics in prometheus format as soon as you add the micrometer-registry-prometheus dependency. Endpoint is then actuator/prometheus.

Creating your own prometheus metric is actually not that difficult. You can create a bean implementing FlowableEventListener and MetricBinderand then listen to the FlowableEngineEventType PROCESS_COMPLETED to increase a micrometer Counter every time a process gets completed.

Register your counter to the MeterRegistry in the bindTo() method and the metric should be available over the prometheus endpoint. No need for a dedicated exporter pod.

雪若未夕2025-01-27 19:29:16

您可以查看有关监控的 Flowable 文档。列出了许多有用的指标,您可以将它们添加到监控中。

要在 Flowable 上启用 Prometheus 导出,您需要设置以下 Spring 属性:

management.metrics.export.prometheus.enabled=true

You can check out the Flowable documentation on Monitoring. There are a lot of useful metrics listed that you can add to your monitoring.

To enable Prometheus exporting on Flowable, you need to set the following Spring property:

management.metrics.export.prometheus.enabled=true
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文