nleiva / ansible-role-grafana_agent

Installs Grafana Cloud Agent on RedHat/CentOS or Debian/Ubuntu servers to collect observability data and send it to Grafana Cloud.
GNU General Public License v3.0
15 stars 19 forks source link

Allow the specification of custom service regions for Prometheus and Promtail #9

Closed josuablejeru closed 2 years ago

josuablejeru commented 2 years ago

Hello everyone! Thank you for providing this useful role!

This is a quick fix regarding the different service regions for Prometheus and Promtail. Because the format may differ from each other as well as be in a totally different region (as in my case), I split them up into two different variables. This issue was already described in #8 by @spech66 who provided two solutions from which I picked one.

Wish you all an awesome Day!

awesome

nleiva commented 2 years ago

Thank you!

For backward compatibility I will slightly modify the defaults to something like this:

grafana_location: us-central1
grafana_location_prometheus: "{{ grafana_location | default('us-central1') }}"
grafana_location_promtail: "{{ grafana_location | default('us-central1') }}"