Classes | |
| class | PrometheusMetrics |
| class | PrometheusView |
Functions | |
| bool | setup (HomeAssistant hass, ConfigType config) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| ALLOWED_METRIC_CHARS = set(string.ascii_letters + string.digits + "_:") | |
| string | API_ENDPOINT = "/api/prometheus" |
| COMPONENT_CONFIG_SCHEMA_ENTRY | |
| string | CONF_COMPONENT_CONFIG = "component_config" |
| string | CONF_COMPONENT_CONFIG_DOMAIN = "component_config_domain" |
| string | CONF_COMPONENT_CONFIG_GLOB = "component_config_glob" |
| string | CONF_DEFAULT_METRIC = "default_metric" |
| string | CONF_FILTER = "filter" |
| string | CONF_OVERRIDE_METRIC = "override_metric" |
| string | CONF_PROM_NAMESPACE = "namespace" |
| string | CONF_REQUIRES_AUTH = "requires_auth" |
| CONFIG_SCHEMA | |
| string | DEFAULT_NAMESPACE = "homeassistant" |
| string | DOMAIN = "prometheus" |
| IGNORED_STATES = frozenset({STATE_UNAVAILABLE, STATE_UNKNOWN}) | |
Support for Prometheus metrics export.
| bool homeassistant.components.prometheus.setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Activate Prometheus component.
Definition at line 123 of file __init__.py.
|
private |
Definition at line 76 of file __init__.py.
| homeassistant.components.prometheus.ALLOWED_METRIC_CHARS = set(string.ascii_letters + string.digits + "_:") |
Definition at line 94 of file __init__.py.
| string homeassistant.components.prometheus.API_ENDPOINT = "/api/prometheus" |
Definition at line 78 of file __init__.py.
| homeassistant.components.prometheus.COMPONENT_CONFIG_SCHEMA_ENTRY |
Definition at line 91 of file __init__.py.
| string homeassistant.components.prometheus.CONF_COMPONENT_CONFIG = "component_config" |
Definition at line 86 of file __init__.py.
| string homeassistant.components.prometheus.CONF_COMPONENT_CONFIG_DOMAIN = "component_config_domain" |
Definition at line 88 of file __init__.py.
| string homeassistant.components.prometheus.CONF_COMPONENT_CONFIG_GLOB = "component_config_glob" |
Definition at line 87 of file __init__.py.
| string homeassistant.components.prometheus.CONF_DEFAULT_METRIC = "default_metric" |
Definition at line 89 of file __init__.py.
| string homeassistant.components.prometheus.CONF_FILTER = "filter" |
Definition at line 83 of file __init__.py.
| string homeassistant.components.prometheus.CONF_OVERRIDE_METRIC = "override_metric" |
Definition at line 90 of file __init__.py.
| string homeassistant.components.prometheus.CONF_PROM_NAMESPACE = "namespace" |
Definition at line 85 of file __init__.py.
| string homeassistant.components.prometheus.CONF_REQUIRES_AUTH = "requires_auth" |
Definition at line 84 of file __init__.py.
| homeassistant.components.prometheus.CONFIG_SCHEMA |
Definition at line 98 of file __init__.py.
| string homeassistant.components.prometheus.DEFAULT_NAMESPACE = "homeassistant" |
Definition at line 96 of file __init__.py.
| string homeassistant.components.prometheus.DOMAIN = "prometheus" |
Definition at line 82 of file __init__.py.
| homeassistant.components.prometheus.IGNORED_STATES = frozenset({STATE_UNAVAILABLE, STATE_UNKNOWN}) |
Definition at line 79 of file __init__.py.