Giter Site home page Giter Site logo

steadybit / extension-prometheus Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 1.0 604 KB

A Steadybit check implementation to gather and verify the result PromQL queries.

Home Page: https://hub.steadybit.com/extension/com.steadybit.extension_prometheus

License: MIT License

Dockerfile 2.50% Go 68.14% Makefile 9.52% Shell 19.84%
chaos-engineering chaos-testing kubernetes monitoring prometheus promql

extension-prometheus's Introduction

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.

Learn about the capabilities of this extension in our Reliability Hub.

Configuration

Environment Variable Helm value Meaning Required
STEADYBIT_EXTENSION_PROMETHEUS_INSTANCE_<n>_NAME prometheus.name Name of the Prometheus instance yes
STEADYBIT_EXTENSION_PROMETHEUS_INSTANCE_<n>_ORIGIN prometheus.origin Url of the Prometheus yes
STEADYBIT_EXTENSION_PROMETHEUS_INSTANCE_<n>_HEADER_KEY prometheus.headerKey Optional header key to send to the Prometheus API. Typically used for authentication purposes. no
STEADYBIT_EXTENSION_PROMETHEUS_INSTANCE_<n>_HEADER_VALUE prometheus.headerValue Optional header value to send to the Prometheus API. Typically used for authentication purposes. no
STEADYBIT_EXTENSION_DISCOVERY_ATTRIBUTES_EXCLUDES_INSTANCE discovery.attributes.excludes.instance List of Target Attributes which will be excluded during discovery. Checked by key equality and supporting trailing "*" no

The extension supports all environment variables provided by steadybit/extension-kit.

Installation

We recommend deploying the extension with our official Helm chart.

Helm

helm repo add steadybit-extension-prometheus https://steadybit.github.io/extension-prometheus
helm repo update

helm upgrade steadybit-extension-prometheus \
  --install \
  --wait \
  --timeout 5m0s \
  --create-namespace \
  --namespace steadybit-agent \
  --set prometheus.name="dev" \
  --set prometheus.origin="http://prometheus-server.default.svc.cluster.local" \
  steadybit-extension-prometheus/steadybit-extension-prometheus

Docker

You may alternatively start the Docker container manually.

docker run \
  --env STEADYBIT_LOG_LEVEL=info \
  --expose 8087 \
  --env STEADYBIT_EXTENSION_PROMETHEUS_INSTANCE_0_NAME="{{SYMBOLIC_NAME}}" \
  --env STEADYBIT_EXTENSION_PROMETHEUS_INSTANCE_0_ORIGIN="{{PROMETHEUS_INSTANCE_SERVER_ORIGIN}}" \
  ghcr.io/steadybit/extension-prometheus:latest

Register the extension

Make sure to register the extension at the steadybit platform. Please refer to the documentation for more information.

extension-prometheus's People

Contributors

ansgarschulte avatar dependabot[bot] avatar github-actions[bot] avatar joshiste avatar manuelgerding avatar reuda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

achoimet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.