extension-prometheus

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 9 Imported by: 0

README

Prometheus logo depicting a fire next to the text 'Prometheus'

Steadybit extension-prometheus

A Steadybit check implementation to gather Prometheus metrics within chaos engineering experiment executions. These can be used as checks within experiments, e.g., to implement pre- and post-conditions.

Configuration

Environment Variable
STEADYBIT_EXTENSION_PROMETHEUS_INSTANCE_<n>_NAME Name of the Prometheus instance
STEADYBIT_EXTENSION_PROMETHEUS_INSTANCE_<n>_ORIGIN Url of the Prometheus
STEADYBIT_EXTENSION_PROMETHEUS_INSTANCE_<n>_HEADER_KEY Optional header key to send to the Prometheus API. Typically used for authentication purposes.
STEADYBIT_EXTENSION_PROMETHEUS_INSTANCE_<n>_HEADER_VALUE Optional header value to send to the Prometheus API. Typically used for authentication purposes.

Deployment

We recommend that you deploy the extension with our official Helm chart.

Agent Configuration

The Steadybit agent needs to be configured to interact with the Prometheus extension by adding the following environment variables:

# Make sure to adapt the URLs and indices in the environment variables names as necessary for your setup

STEADYBIT_AGENT_ACTIONS_EXTENSIONS_0_URL=http://steadybit-extension-prometheus.steadybit-extension.svc.cluster.local:8087
STEADYBIT_AGENT_DISCOVERIES_EXTENSIONS_0_URL=http://steadybit-extension-prometheus.steadybit-extension.svc.cluster.local:8087

When leveraging our official Helm charts, you can set the configuration through additional environment variables on the agent:

--set agent.env[0].name=STEADYBIT_AGENT_ACTIONS_EXTENSIONS_0_URL \
--set agent.env[0].value="http://steadybit-extension-prometheus.steadybit-extension.svc.cluster.local:8087" \
--set agent.env[1].name=STEADYBIT_AGENT_DISCOVERIES_EXTENSIONS_0_URL \
--set agent.env[1].value="http://steadybit-extension-prometheus.steadybit-extension.svc.cluster.local:8087"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL