Prometheus provider that expose stats about terraform plan result
You need to set following variables:
DEPLOY_KEY
: Github deploy key to access to repository that contains staks declarationsGITHUB_REPOSITORY
: Github repository without protocol or extension ex:camptocamp/terraform-diff-prometheus
AWS_ACCESS_KEY
: Amazon access key to S3 bucket that contains terraform state fileAWS_SECRET_KEY
: Amazon secret key to S3 bucketAWS_REGION
: Amazon region where bucket is storedRANCHER_ACCESS_KEY
: Access key part of Rancher API keyRANCHER_SECRET_KEY
: Secret key part of Rancher API keyRANCHER_URL
: URL to rancher APIRANCHER_ENV
: Rancher environment identifier (Should be1a5
)PROJECT
: Project name, this should match the folder name in github repository:$GITHUB_REPOSITORY/rancher-environments/$PROJECT
Provider image will push an index.html
to webserver image, this file will be available on port 8080 in
/metrics/
folder. This file contains one metrics : terraform_plan_diff_count
followed by diff count
found in specified rancher env.
You should define following label in order to link with prometheus :
`prometheus_port: 8080`