Skip to content
Draft
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
1 change: 0 additions & 1 deletion inventories/group_vars/all/release_vector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ metal_stack_release_vectors:
# sonic_configdb_utils_image_tag:
# ...
#

##
## for ansible roles
##
Expand Down
3 changes: 3 additions & 0 deletions inventories/group_vars/leaves/alloy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
alloy_config_snippets:
- docker
- 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 offers logs and 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
Loading