Skip to content

Commit

Permalink
add config for sonic exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
thanche1 committed Jul 11, 2023
1 parent a6a27ab commit 8cb1aee
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion partition/roles/monitoring/sonic-exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,26 @@
systemd_docker_image_name: "{{ sonic_exporter_image_name }}"
systemd_docker_image_tag: "{{ sonic_exporter_image_tag }}"
systemd_service_after: docker.service
# systemd_docker_network: host
systemd_docker_network: host
systemd_service_requires: docker.service
systemd_docker_ports:
- host_port: "{{ sonic_exporter_port }}"
target_port: "{{ sonic_exporter_port }}"
systemd_docker_volumes:
- "/:/host:ro,rslave"
- "/var/run/redis:/var/run/redis"
- "/usr/bin/vtysh:/usr/bin/vtysh"
- "/usr/bin/docker:/usr/bin/docker"
- "/var/run/docker.sock:/var/run/docker.sock"
- "/usr/bin/ntpq:/usr/bin/ntpq"
systemd_docker_command:
- --path.rootfs=/host
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
- --log-opt mode=non-blocking
- --log-opt max-buffer-size=4m
- --log-driver json-file
- --log-opt max-size=10m
- --log-opt max-file=3
- --log-opt compress=true

0 comments on commit 8cb1aee

Please sign in to comment.