apache / hertzbeat

Apache HertzBeat(incubating) is a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities.
https://hertzbeat.apache.org/
Apache License 2.0
5.46k stars 947 forks source link

[Task] Urgent need for global or environment variables #2400

Open jinghewang opened 1 month ago

jinghewang commented 1 month ago

Description

我的需求是这样,第一步获取 token(单独一个监控) , 第二步 通过token 访问其它接口(很多不同监控),现在的做法是每个监控都要把 请求token 的操作带着,不是很方便 ,能否添加如全局变量,环境变量之类的功能,支持不同监控之间传递参数 , 在 https://hertzbeat.apache.org/docs/advanced/extend-http-example-token 中只实现同一个监控中token 的传递, token 是限制在同一监控的不同监控指标使用,我期望的是 可以 跨 监控 使用 ,实现类似全局变量,环境变量之类的功能 ,多谢。

Task List

No response

pwallk commented 1 month ago

When Monitor is not in the same Collector service, it is necessary to consider the problem of synchronizing the variables of each Collector service, which I think will not be realized in the short term