tardis.plugins.prometheusmonitoring module

class tardis.plugins.prometheusmonitoring.PrometheusMonitoring[source]

Bases: tardis.interfaces.plugin.Plugin

The PrometheusMonitoring implements an interface to monitor the state of the Drones using Prometheus.

async notify(state: tardis.interfaces.state.State, resource_attributes: tardis.utilities.attributedict.AttributeDict) None[source]

Update Prometheus metrics at every state change

  • state (State) – New state of the Drone

  • resource_attributes (AttributeDict) – Contains all meta-data of the Drone (created and updated timestamps, dns name, unique id, site_name, machine_type, etc.)



async start()[source]