Skip to content

This project is part of the Infrastructure Monitoring and Alerting (IMA) Platform. It holds the Docker image for pulling data from the Physical Devices.

License

Notifications You must be signed in to change notification settings

ministryofjustice/staff-infrastructure-monitoring-blackbox-exporter

Repository files navigation

repo standards badge

Infrastructure Monitoring and Alerting Platform - Blackbox Exporter

Table of contents

About the project

This project is part of the Infrastructure Monitoring and Alerting (IMA) Platform. It holds the Docker image for pulling data from the Physical Devices.

Prometheus's blackbox exporter is used as the base image. It's stored in an AWS ECR repository within the MoJ's Shared Services account that is created by the PTTP Shared Services Infrastructure and Staff Device Docker Base Images GitHub repositories.

Our repositories

Getting started

Prerequisites

Create a .env

  1. Duplicate .env.example and rename the file to .env
  2. Set values for all the variables

Usage


Note for local development

In order to develop locally, ensure you have run the publish_terraform_outputs.sh in the IMA Platform repo. This will save all of your terraform outputs to parameter store (which this repo relies on).


Running the code for development

To locally run Blackbox Exporter:

make serve

To manually push an image to your AWS ECR repository:

  1. Push an image to ECR
aws-vault exec moj-pttp-shared-services -- make publish
  1. Deploy image to ECS
aws-vault exec moj-pttp-dev -- make deploy
  1. To view your image within the AWS Management Console:
aws-vault login moj-pttp-dev

License

MIT License

About

This project is part of the Infrastructure Monitoring and Alerting (IMA) Platform. It holds the Docker image for pulling data from the Physical Devices.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published