Skip to content

greg-gajda/terraform-provider-po

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a terraform provider for Prometheus operator deployments on Kubernetes

Why it may be useful to anyone?

Prometheus Operator makes the management of Prometheus based monitoring stack easier. But as a consequence of that simplicity, new CustomResourceDefinitions appear in your k8s cluster.

Quoting official docs: The Prometheus Operator introduces additional resources in Kubernetes to declare the desired state of a Prometheus and Alertmanager cluster as well as the Prometheus configuration. The resources it introduces are:

  • Prometheus
  • Alertmanager
  • ServiceMonitor

but there's also PrometheusRule and PodMonitor.

If you simply deliver your monitoring stack by running

kubectl apply -f bundle.yaml

from the official Prometheus Operator Github repo, or by using Helm chart, you wouldn't find anything interesting in this repository.

But, if you're using Terraform to manage your infrastructure, then it can be quite useful, as it delivers custom Provider Plugin for Prometheus Operator custom resources.

Content of /kubernetes folder is taken from official Terraform Kubernetes provider.

To acquire a binary for your OS, simply clone the project and run go build command.