coopdevs / coopdevs/monitoring-role

Parametrize container names

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jinja
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

There's a corner case in which we would want to run two separate promtail's containers: when pushing logs to more than one Loki instance:

> It is generally recommended to run multiple Promtail clients in parallel
> if you want to send to multiple remote Loki instances.

[Source](https://grafana.com/docs/loki/latest/clients/promtail/configuration/)

To accomplish that, we need to be able to change the default container name in the `docker-compose.yml.j2` template.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the docker-compose.yml.j2 template and inspect how the Promtail container name is currently defined. Trace the role variables used to render this template, then verify that separate rendered configurations can use distinct Promtail container names when targeting multiple Loki instances.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, docker-compose
Domain
devops, infrastructure
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.