Steadybit extension-http
A Steadybit action implementation to check HTTP endpoints.
Learn about the capabilities of this extension in our Reliability Hub.
Configuration
| Environment Variable |
Helm value |
Meaning |
required |
default |
STEADYBIT_EXTENSION_ENABLE_LOCATION_SELECTION |
enableLocationSelection |
By default, the platform will select a random instance when executing actions from this extension. If you enable location selection, users can optionally specify the location via target selection. |
no |
false |
The extension supports all environment variables provided by steadybit/extension-kit.
Installation
Kubernetes
Detailed information about agent and extension installation in kubernetes can also be found in
our documentation.
Recommended (via agent helm chart)
All extensions provide a helm chart that is also integrated in the
helm-chart of the agent.
The extension is installed by default when you install the agent.
You can provide additional values to configure this extension.
Additional configuration options can be found in
the helm-chart of the
extension.
Alternative (via own helm chart)
If you need more control, you can install the extension via its
dedicated helm-chart.
helm repo add steadybit-extension-http https://steadybit.github.io/extension-http
helm repo update
helm upgrade steadybit-extension-http \
--install \
--wait \
--timeout 5m0s \
--create-namespace \
--namespace steadybit-agent \
steadybit-extension-http/steadybit-extension-http
Linux Package
Please use
our agent-linux.sh script
to install the extension on your Linux machine. The script will download the latest version of the extension and install
it using the package manager.
After installing, configure the extension by editing /etc/steadybit/extension-http and then restart the service.
Extension registration
Make sure that the extension is registered with the agent. In most cases this is done automatically. Please refer to
the documentation for more
information about extension registration and how to verify.
Proxy
A proxy configuration is currently not supported.
Location Selection
When multiple HTTP extensions are deployed in different subsystems (e.g., multiple Kubernetes clusters), it can be tricky to ensure that the HTTP check is performed from the right location when testing cluster-internal URLs.
To solve this, you can activate the location selection feature.
Once you do that, the HTTP extension discovers itself as a client execution location.
When configuring the experiment, you can optionally define which extension's deployment should execute the HTTP check.
Also, the execution locations are part of Steadybit's environment concept, so you can assign permissions for execution locations.
Migration Guideline
Before activating the location selection feature, be sure to follow these steps:
- The installed agent version needs to be >= 2.0.47, and - only for on-prem customers - the platform version needs to be >=2.2.2
- Activate the location selection via environment or helm variable when deploying the latest extension version (see configuration options.
- Configure every environment that should be able to run HTTP checks by including the HTTP client location in the environment configuration.
One option is to add the statement
or target via the query language.type="com.steadybit.extension_http.client-location" to your existing query.
You can also filter the available execution locations down, e.g., via the clustername by using (target.type="com.steadybit.extension_http.client-location" and k8s.cluster-name="CLUSTER-NAME")