Skip to content

installers.sysadmintools.prometheus #

Prometheus monitoring system




Constants #

const version = '0.0.0'

fn get #

fn get(args_ ArgsGet) !&Prometheus

fn install_alertmanager #

fn install_alertmanager(args_ InstallArgs) !

fn install_blackbox_exporter #

fn install_blackbox_exporter(args_ InstallArgs) !

fn install_node_exporter #

fn install_node_exporter(args_ InstallArgs) !

fn install_prom2json #

fn install_prom2json(args_ InstallArgs) !

fn install_prometheus #

fn install_prometheus(args_ InstallArgs) !

fn play #

fn play(args_ PlayArgs) !

fn switch #

fn switch(name string)

switch instance to be used for prometheus

struct ArgsGet #

@[params]
struct ArgsGet {
pub mut:
	name string
}

///////FACTORY

struct DefaultConfigArgs #

@[params]
struct DefaultConfigArgs {
	instance string = 'default'
}

helpers

struct InstallArgs #

@[params]
struct InstallArgs {
pub mut:
	reset bool
}

struct PlayArgs #

@[params]
struct PlayArgs {
pub mut:
	heroscript string // if filled in then plbook will be made out of it
	plbook     ?playbook.PlayBook
	reset      bool
}

struct Prometheus #

@[heap]
struct Prometheus {
pub mut:
	name string = 'default'
}

THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED

fn (Prometheus) build #

fn (mut self Prometheus) build() !

fn (Prometheus) destroy #

fn (mut self Prometheus) destroy() !

fn (Prometheus) install #

fn (mut self Prometheus) install(args InstallArgs) !

fn (Prometheus) install_start #

fn (mut self Prometheus) install_start(args InstallArgs) !

fn (Prometheus) restart #

fn (mut self Prometheus) restart() !

fn (Prometheus) running #

fn (mut self Prometheus) running() !bool

fn (Prometheus) start #

fn (mut self Prometheus) start() !

fn (Prometheus) stop #

fn (mut self Prometheus) stop() !