Class: Kube::Cluster::Standard::VictoriaMetrics::VMProbe

Inherits:
Object
  • Object
show all
Defined in:
lib/kube/cluster/standard/victoria_metrics/vm_probe.rb

Overview

Blackbox/probe scraping: points a prober (e.g. blackbox_exporter) at a set of targets. Pass the prober URL here and the targets/module in the block via spec.targets and spec.module.

Instance Method Summary collapse

Constructor Details

#initialize(name:, prober_url:, &block) ⇒ VMProbe

Returns a new instance of VMProbe.



14
15
16
17
18
19
20
# File 'lib/kube/cluster/standard/victoria_metrics/vm_probe.rb', line 14

def initialize(name:, prober_url:, &block)
  super() {
    .name    = name
    spec.vmProberSpec = { url: prober_url }
    instance_exec(&block) if block
  }
end