Novu Prometheus Exporter

Configure environment:

python3 -m venv --upgrade-deps env && \
./env/bin/pip3 install -r requirements_dev.txt

Scan project dependencies:

./env/bin/pip-audit -f json | python3 -m json.tool

Validate project files:

./env/bin/flake8 --ignore="E501" *.py

Build docker image:

docker build -t "shadowuser17/novu-exporter:testing" .
docker build -t "shadowuser17/novu-exporter:latest" .

Scan docker image:

dockle "shadowuser17/novu-exporter:testing"
trivy image "shadowuser17/novu-exporter:testing"

Publish docker image:

docker login -u "${DOCKERHUB_LOGIN}" -p "${DOCKERHUB_TOKEN}"
docker push "shadowuser17/novu-exporter:testing"
docker push "shadowuser17/novu-exporter:latest"

Publish docker image to AWS/ECR:

export IMAGE_NAME=""
export IMAGE_TAG=""
export AWS_ECR_NAME=""
export AWS_DEFAULT_REGION=""
export AWS_ACCESS_KEY_ID=""
export AWS_SECRET_ACCESS_KEY=""
./env/bin/python3 push_aws_ecr.py
docker logout "${AWS_ECR_NAME}"

Dependencies: