Files
a13labs.infra/terraform/modules/utils/devolo-expporter/config.tf
T
alexandre.pires d069fe3585 feat(cert-checker): add Kubernetes resources for certificate checking functionality
- Implemented a new module for cert-checker with Kubernetes resources including ServiceAccount, Role, RoleBinding, ConfigMap, and CronJob.
- Added Python script to check certificate expiry and restart deployments if necessary.
- Configured environment variables for deployment name, namespace, and service details.
- Included requirements for the Python environment.

feat(devolo-exporter): introduce Devolo exporter for Prometheus metrics

- Created a new module for Devolo exporter with Kubernetes resources including ServiceAccount, ConfigMap, Deployment, and Service.
- Developed Python scripts to scrape metrics from Devolo devices and expose them to Prometheus.
- Configured environment variables for Devolo device IP, model, and ports.
- Added requirements for the Python environment.
2025-10-13 22:35:35 +02:00

13 lines
461 B
Terraform

locals {
app_version = var.tag
commands = [
"pip install --no-cache-dir -r /exporter/requirements.txt -t /tmp/python",
"PYTHONPATH=/tmp/python exec python /exporter/exporter.py"
]
exporter_script = file("${path.module}/resources/exporter_${var.devolo_model}.py")
requirements_txt = file("${path.module}/resources/requirements.txt")
exporter_checksum = md5(local.exporter_script)
requirements_checksum = md5(local.requirements_txt)
}