mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-18 08:41:31 +00:00
fix(webserver): correct enabled check
It was checking twice for prometheus configuration rather than metrics and then prometheus. Co-authored-by: Federico Di Pierro <nierro92@gmail.com> Signed-off-by: Samuel Gaist <samuel.gaist@idiap.ch>
This commit is contained in:
parent
8f1b2dc909
commit
3a251beea7
@ -45,7 +45,7 @@ falco::app::run_result falco::app::actions::start_webserver(falco::app::state& s
|
|||||||
+ ssl_option + "\n");
|
+ ssl_option + "\n");
|
||||||
|
|
||||||
std::vector<libs::metrics::libs_metrics_collector> metrics_collectors;
|
std::vector<libs::metrics::libs_metrics_collector> metrics_collectors;
|
||||||
if (s.config->m_metrics_prometheus_enabled && s.config->m_metrics_prometheus_enabled)
|
if (s.config->m_metrics_enabled && s.config->m_metrics_prometheus_enabled)
|
||||||
{
|
{
|
||||||
for (const auto& source_info: s.source_infos)
|
for (const auto& source_info: s.source_infos)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user