mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add missing bits for Broker::metrics_import_topics
This commit is contained in:
parent
c2ca92d772
commit
6565b4862d
5 changed files with 24 additions and 12 deletions
|
@ -403,9 +403,9 @@ void Manager::InitPostScript()
|
|||
}
|
||||
WITH_OPT_MAPPING("broker.metrics.import.topics", "Broker::metrics_import_topics")
|
||||
{
|
||||
if ( auto str = opt.broker_read<std::vector<std::string>>() )
|
||||
if ( auto topics = opt.broker_read<std::vector<std::string>>() )
|
||||
{
|
||||
opt.zeek_write(*str);
|
||||
opt.zeek_write(*topics);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2093,8 +2093,7 @@ void Manager::SetMetricsExportTopic(std::string value)
|
|||
|
||||
void Manager::SetMetricsImportTopics(std::vector<std::string> topics)
|
||||
{
|
||||
// XXX: Uhm...
|
||||
// bstate->endpoint.metrics_exporter().set_prefixes(std::move(topics));
|
||||
bstate->endpoint.metrics_exporter().set_import_topics(std::move(topics));
|
||||
}
|
||||
|
||||
void Manager::SetMetricsExportEndpointName(std::string value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue