Skip to content

Commit c2b045a

Browse files
authored
chore: replace control-plane and partition promtail with alloy (#298)
1 parent 586077f commit c2b045a

8 files changed

Lines changed: 27 additions & 16 deletions

File tree

deploy_partition.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@
119119
roles:
120120
- name: ansible-common
121121
tags: always
122-
- name: metal-roles/partition/roles/promtail
122+
- name: metal-roles/partition/roles/alloy
123123
when: monitoring_enabled
124-
tags: promtail
124+
tags: alloy
125125
- name: metal-roles/partition/roles/monitoring/node-exporter
126126
when: monitoring_enabled
127127
tags: node-exporter
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
---
22
logging_ingress_loki_tls: no
3+
logging_ingress_dns: "loki.{{ metal_control_plane_ingress_dns }}"
4+
5+
logging_alloy_enabled: true
6+
7+
logging_alloy_service_monitor_enabled: true
8+
9+
logging_alloy_loki_write_endpoints:
10+
- url: "http://{{ logging_ingress_dns }}:8080/loki/api/v1/push"
11+
12+
logging_promtail_enabled: false
13+
14+
logging_alloy_cluster_label: "mini-lab"

inventories/group_vars/control_plane/monitoring.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ monitoring_thanos_receive_ingress_enabled: true
1010
monitoring_thanos_receive_size: 5Gi
1111

1212
monitoring_prometheus_core_dns_enabled: true
13+
14+
event_exporter_enabled: false
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
alloy_config_snippets:
2+
- journal
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
alloy_loki_write_endpoints:
2+
- url: "http://loki.{{ metal_control_plane_ingress_dns }}:8080/loki/api/v1/push"

inventories/group_vars/partition/monitoring.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ monitoring_sonic_exporter_port: 9101
66

77
# IPMI should use the same credentials as metal-api
88
monitoring_ipmi_bmc_superuser_pwd: "{{ metal_api_bmc_superuser_pwd }}"
9+
10+
# alloy metrics
11+
monitoring_alloy_port: 12345

inventories/group_vars/partition/prometheus.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@ prometheus_hosts_content: |
2828
{{ hostvars['leaf01'].ansible_host }} leaf01
2929
{{ hostvars['leaf02'].ansible_host }} leaf02
3030
31+
prometheus_alloy_targets:
32+
- "leaf01:{{ monitoring_alloy_port }}"
33+
- "leaf02:{{ monitoring_alloy_port }}"
34+
3135
prometheus_haproxy_enabled: false

inventories/group_vars/partition/promtail.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)