tardis.plugins.prometheusmonitoring module

class tardis.plugins.prometheusmonitoring.PrometheusMonitoring[source]

Bases: Plugin

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

async notify(state: State, resource_attributes: AttributeDict) None[source]

Update Prometheus metrics at every state change

Parameters
  • 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.)

Returns

None

async start()[source]