-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add grafana Promtail to Kubernetes addon #898
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks great - few minor comments.
Lets add an example for this - we'll call it grafana-loki
- this is just the start where we have promtail and later we can add loki and connect the two.
You can copy this example and remove the EFS and Velero bits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thank you!
I've just implemented this (thanks for adding it, it's super helpful; excited to see loki being added in the future), but I'm running into an issue where the Is it possible that the loading of This is my configuration (which I've tweaked several ways to try and get it to work, without luck): enable_promtail = true
promtail_helm_config = {
name = "promtail"
repository = "https://grafana.github.io/helm-charts"
chart = "promtail"
version = "6.3.0"
namespace = "promtail"
values = [templatefile("${path.module}/promtail-values.yml", {})]
} My config:
clients:
- url: https://url-to-another-cluster.com/loki/api/v1/push tl;dr: despite setting a URL value, the pods try to connect to the default value ( When I replace the above config with something nonsensical like Is there a chance that something needs tweaking wrt. how the helm config is evaluated for this addon? |
Let me know if you prefer I open an issue 🙏 Just thought it might be nice to mention it here first, since both of you might be able to answer relatively quickly. |
For some added context, the config values are applied correctly when I use a normal helm release: resource "helm_release" "loki" {
name = "promtail"
repository = "https://grafana.github.io/helm-charts"
chart = "promtail"
version = "6.3.0"
namespace = "promtail"
values = [templatefile("${path.module}/promtail-values.yml", {})]
} Which also seems to point in the direction that something is wrong with addon loading (or my definition of it perhaps?) |
Hello @sondrelg I couldn't reproduce your error, this is what I got where running terraform plan with your config # module.eks.module.promtail.module.helm_addon.helm_release.addon[0] will be created
+ resource "helm_release" "addon" {
+ atomic = false
+ chart = "promtail"
+ cleanup_on_fail = false
+ create_namespace = true
+ dependency_update = false
+ description = "Promtail helm Chart deployment configuration"
+ disable_crd_hooks = false
+ disable_openapi_validation = false
+ disable_webhooks = false
+ force_update = false
+ id = (known after apply)
+ lint = false
+ manifest = (known after apply)
+ max_history = 0
+ metadata = (known after apply)
+ name = "promtail"
+ namespace = "promtail"
+ pass_credentials = false
+ recreate_pods = false
+ render_subchart_notes = true
+ replace = false
+ repository = "https://grafana.github.io/helm-charts"
+ reset_values = false
+ reuse_values = false
+ skip_crds = false
+ status = "deployed"
+ timeout = 1200
+ values = [
+ <<-EOT
config:
clients:
- url: https://url-to-another-cluster.com/loki/api/v1/push
EOT,
]
+ verify = false
+ version = "6.3.0"
+ wait = true
+ wait_for_jobs = false
+ postrender {}
}
and as you can see the pod is using Can you open an issue and share the terraform plan section of |
Thanks for testing @florentio. I'll double check and report back in a bit 👍 |
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
What does this PR do?
Issue #774
More
pre-commit run -a
with this PRNote: Not all the PRs required examples and docs except a new pattern or add-on added.
For Moderators
Additional Notes