Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deploy_partition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@
roles:
- name: ansible-common
tags: always
- name: metal-roles/partition/roles/promtail
- name: metal-roles/partition/roles/alloy
when: monitoring_enabled
tags: promtail
tags: alloy
- name: metal-roles/partition/roles/monitoring/node-exporter
when: monitoring_enabled
tags: node-exporter
Expand Down
12 changes: 12 additions & 0 deletions inventories/group_vars/control_plane/logging.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
---
logging_ingress_loki_tls: no
logging_ingress_dns: "loki.{{ metal_control_plane_ingress_dns }}"

logging_alloy_enabled: true

logging_alloy_service_monitor_enabled: true

logging_alloy_loki_write_endpoints:
- url: "http://{{ logging_ingress_dns }}:8080/loki/api/v1/push"

logging_promtail_enabled: false

logging_alloy_cluster_label: "mini-lab"
2 changes: 2 additions & 0 deletions inventories/group_vars/control_plane/monitoring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ monitoring_thanos_receive_ingress_enabled: true
monitoring_thanos_receive_size: 5Gi

monitoring_prometheus_core_dns_enabled: true

event_exporter_enabled: false
2 changes: 2 additions & 0 deletions inventories/group_vars/leaves/alloy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alloy_config_snippets:
- journal
2 changes: 2 additions & 0 deletions inventories/group_vars/partition/alloy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alloy_loki_write_endpoints:
- url: "http://loki.{{ metal_control_plane_ingress_dns }}:8080/loki/api/v1/push"
3 changes: 3 additions & 0 deletions inventories/group_vars/partition/monitoring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ monitoring_sonic_exporter_port: 9101

# IPMI should use the same credentials as metal-api
monitoring_ipmi_bmc_superuser_pwd: "{{ metal_api_bmc_superuser_pwd }}"

# alloy metrics
monitoring_alloy_port: 12345
4 changes: 4 additions & 0 deletions inventories/group_vars/partition/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ prometheus_hosts_content: |
{{ hostvars['leaf01'].ansible_host }} leaf01
{{ hostvars['leaf02'].ansible_host }} leaf02

prometheus_alloy_targets:
- "leaf01:{{ monitoring_alloy_port }}"
- "leaf02:{{ monitoring_alloy_port }}"

prometheus_haproxy_enabled: false
14 changes: 0 additions & 14 deletions inventories/group_vars/partition/promtail.yaml

This file was deleted.

Loading