Skip to content

installers.sysadmintools.prometheus #

Prometheus monitoring system




Constants #

const version = '0.0.0'

fn get #

fn get(args ArgsGet) !&Prometheus

fn heroscript_dumps #

fn heroscript_dumps(obj Prometheus) !string

///////////NORMALLY NO NEED TO TOUCH

fn heroscript_loads #

fn heroscript_loads(heroscript string) !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 new #

fn new(args ArgsGet) !&Prometheus

fn play #

fn play(mut plbook PlayBook) !

fn switch #

fn switch(name string)

switch instance to be used for prometheus

struct ArgsGet #

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

///////FACTORY

struct InstallArgs #

@[params]
struct InstallArgs {
pub mut:
	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() !