I am leveraging embedded Prometheus. What I want to achieve is: let my Prometheus scrape blackbox exporter: curl 'http:/blackbox_exporter:80/probe?module=http_2xx&target=https://other_host
.
There is a relevant section in gitlab.rb:
prometheus['scrape_configs'] = [
{
'job_name': 'example',
'static_configs' => [
'targets' => ['hostname:port'],
],
},
]
My question is: how to add parameter
section so proper Prometheus config is generated and module
and target
parameters are passed correctly? Some example please.