Skip to content

opzkit/terraform-aws-k8s-addons-grafana-k8s-monitoring

Repository files navigation

terraform-aws-k8s-addons-grafana-agent-operator

A terraform module which provides the custom addon for grafana-k8s-monitoring to be used together with opzkit/k8s/aws.

Credentials

Secrets must be created manually and contain the following information

For metrics:

Secret name: prometheus

{
  "username": "122345",
  "password": "password",
  "hostname": "https://prometheus-prod-01-eu-west-0.grafana.net",
  "hostname_prom": "https://prometheus-prod-01-eu-west-0.grafana.net/api/prom"
}

username, password and hostname can be overridden with the variables metrics_<key>_key

For logs (loki):

Secret name: loki

{
  "username": "122345",
  "password": "password",
  "hostname": "https://logs-prod-eu-west-0.grafana.net"
}

username, password and hostname can be overridden with the variables logs_<key>_key

For traces (tempo):

Secret name: tempo

{
  "username": "122345",
  "password": "password",
  "hostname": "https://tempo-eu-west-0.grafana.net:443"
}

username, password and hostname can be overridden with the variables traces_<key>_key

The name of the secrets can be overridden with the <type>_secret variable.

How to update the module to a new version of the operator

Update the chart-versions in grafana/kustomization.yaml. Also update versions output.tf.

Remove any existing downloaded charts:

rm -rf grafana/charts

Run the kustomizations like below

kubectl kustomize . -o k8s-monitoring.yaml.tftpl --enable-helm

Check the changes and if everything looks correct, update version, commit, push and PR.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages