Git Product home page Git Product logo

tonyandrewmeyer / blackbox-exporter-k8s-operator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from canonical/blackbox-exporter-k8s-operator

0.0 0.0 0.0 206 KB

This charmed operator automates the operational procedures of running Blackbox Exporter, a Prometheus exporter running blackbox probes over a multitude of protocols.

Home Page: https://charmhub.io/blackbox-exporter-k8s

License: Apache License 2.0

Python 100.00%

blackbox-exporter-k8s-operator's Introduction

Blackbox Exporter Operator (k8s)

Charmhub Badge Release Discourse Status

Charmed Blackbox Exporter (blackbox-exporter-k8s) is a charm for Blackbox Exporter.

The charm imposes configurable resource limits on the workload, can be readily integrated with prometheus, grafana and loki, and it comes with built-in alert rules and dashboards for self-monitoring.

Getting started

Basic deployment

Once you have a controller and model ready, you can deploy the blackbox exporter using the Juju CLI:

juju deploy --channel=beta blackbox-exporter-k8s

The available channels are listed at the top of the page and can also be retrieved with Charmcraft CLI:

$ charmcraft status blackbox-exporter-k8s

Track    Base                  Channel    Version    Revision    Resources
latest   ubuntu 22.04 (amd64)  stable     -          -           -
                               candidate  -          -           -
                               beta       1          1           blackbox-exporter-image (r1)
                               edge       1          1           blackbox-exporter-image (r1)

Once the Charmed Operator is deployed, the status can be checked by running:

juju status --relations --storage --color

Configuration

In order to configure the Blackbox Exporter, a configuration file should be provided using the config_file option:

juju config blackbox-exporter-k8s \
  config_file='@path/to/blackbox.yml'

To verify Blackbox Exporter is using the expected configuration you can use the show-config action:

juju run-action blackbox-exporter-k8s/0 show-config --wait

To configure the actual probes, there first needs to be a Prometheus relation:

juju relate blackbox-exporter-k8s prometheus

Then, the probes configuration should be written to a file (following the Blackbox Exporter docs ) and passed via juju config:

juju config blackbox-exporter-k8s \
  probes_file='@path/to/probes.yml'

Note that the relabel_configs of each scrape job doesn't need to be specified, and will be overridden by the charm with the needed labels and the correct Blackbox Exporter url.

OCI Images

This charm is published on Charmhub with blackbox exporter images from the official quay.io/prometheus/blackbox-exporter.

Additional Information

blackbox-exporter-k8s-operator's People

Contributors

lucabello avatar observability-noctua-bot avatar simskij avatar mmkay avatar

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.