Provisions prom.w5isp.com (10.0.15.31) as the home-cluster monitoring host. Prometheus 3.6.0 scrapes the Talos cluster API/nodes/cAdvisor via an external SA token; Grafana ships with the Prometheus datasource pre-provisioned. host_vars opens 9090/9093/9100/3000 to 10.0.0.0/16 plus SSH from the home LAN so the firewall role doesn't lock out admin access.
18 lines
445 B
Django/Jinja
18 lines
445 B
Django/Jinja
{{ ansible_managed | comment }}
|
|
apiVersion: 1
|
|
|
|
datasources:
|
|
{% for ds in grafana_datasources %}
|
|
- name: {{ ds.name }}
|
|
type: {{ ds.type }}
|
|
access: {{ ds.access | default('proxy') }}
|
|
url: {{ ds.url }}
|
|
isDefault: {{ ds.isDefault | default(false) | string | lower }}
|
|
editable: true
|
|
{% if ds.jsonData is defined %}
|
|
jsonData:
|
|
{% for k, v in ds.jsonData.items() %}
|
|
{{ k }}: {{ v }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|