mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Add a services.json endpoint for Prometheus service discovery
This commit is contained in:
parent
abb84db6c8
commit
e93e4cc26d
10 changed files with 140 additions and 69 deletions
|
@ -331,6 +331,12 @@ public:
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return A JSON description of the cluster configuration for reporting
|
||||
* to Prometheus for service discovery requests.
|
||||
*/
|
||||
std::string GetClusterJson() const;
|
||||
|
||||
protected:
|
||||
template<class F>
|
||||
static auto WithLabelNames(Span<const LabelView> xs, F continuation) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue