canonical / grafana-agent-k8s-operator

This charmed operator automates the operational procedures of running Grafana Agent, an open-soruce telemetry collector.
https://charmhub.io/grafana-agent-k8s
Apache License 2.0
8 stars 18 forks source link

feat: Adding the Terraform module #274

Open gatici opened 7 months ago

gatici commented 7 months ago

Feature

This PR adds the Terraform module for the charm. Hence, the charm could be deployed using Terraform.

gatici commented 7 months ago

Thanks @gatici! I just skimmed briefly for now. My impression was that cos in its entirety would be one Terraform module. Is there a particular use case this PR is addressing?

Hi Leon, Yes, We need the cos bundle as a Terraform module, that would be perfect if we have it as soon as possible. Besides, Grafana-agent-k8s is part of sdcore bundle. Please see: https://github.com/canonical/sdcore-bundles/blob/552ac796aea231f7e81d2446019e527a7fcd0f12/render_bundle/bundles.py#L42 So we need to deploy Grana Agent charm by Terraform. A Terraform module may include another TF module and could be a part of a higher level TF module. So, creating Grafana Agent TF module could be a starting point.

gatici commented 6 months ago

We will store the grafana-agent-ke8 TF module under this repository temporarily https://github.com/canonical/terraform-juju-sdcore-k8s/pull/4/files. When you had a decision, we can move to it's permanent place.