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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ The cluster-deployment tools here include helm charts and ansible playbooks to s
| mysqldump | [![](https://img.shields.io/docker/v/instantlinux/mysqldump?sort=date)](https://hub.docker.com/r/instantlinux/mysqldump "Version badge") | per-database alternative to xtrabackup |
| nagios | [![](https://img.shields.io/docker/v/instantlinux/nagios?sort=date)](https://hub.docker.com/r/instantlinux/nagios "Version badge") | Nagios Core v4 for monitoring |
| nagiosql | [![](https://img.shields.io/docker/v/instantlinux/nagiosql?sort=date)](https://hub.docker.com/r/instantlinux/nagiosql "Version badge") | NagiosQL for configuring Nagios Core v4 |
| nextcloud | ** | mobile device sync, like Apple iCloud |
| node-local-dns | ** | caching resolver for reliable pod DNS |
| nut-upsd | [![](https://img.shields.io/docker/v/instantlinux/nut-upsd?sort=date)](https://hub.docker.com/r/instantlinux/nut-upsd "Version badge") | Network UPS Tools |
| openldap | [![](https://img.shields.io/docker/v/instantlinux/openldap?sort=date)](https://hub.docker.com/r/instantlinux/openldap "Version badge") | OpenLDAP authentication server |
Expand Down
10 changes: 10 additions & 0 deletions ansible/roles/monitoring_agent/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ pip_packages:
# - click>=6.0
- mdstat>=1.0.4

prometheus_defaults:
exporter_enabled: true
exporter_args: "--collector.filesystem.mount-points-exclude=\
'^/(dev|proc|sys|var/lib/kubelet|var/lib/docker/(containers|overlay2).+)($|/)' \
--collector.netdev.device-exclude='^(veth.*|docker.*)$' \
--collector.netclass.ignored-devices='^(veth.*|docker.*)$' \
--no-collector.systemd"
prometheus_override: {}
prometheus: "{{ prometheus_defaults | combine(prometheus_override) }}"

smartmon_download:
version: "7.1"
checksum: 3f734d2c99deb1e4af62b25d944c6252de70ca64d766c4c7294545a2e659b846
Expand Down
5 changes: 5 additions & 0 deletions ansible/roles/monitoring_agent/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,10 @@
name: snmpd
state: restarted

- name: Restart prometheus-node-exporter
ansible.builtin.service:
name: prometheus-node-exporter
state: restarted

- name: Reload apparmor
ansible.builtin.command: apparmor_parser -r /etc/apparmor.d/usr.sbin.rsyslogd
9 changes: 9 additions & 0 deletions ansible/roles/monitoring_agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,12 @@
ansible.builtin.template:
dest: "{{ nagios.local_plugins_path }}/tolerations.yaml"
src: tolerations.j2

- name: Put a leash on prometheus-node-exporter
ansible.builtin.copy:
dest: /etc/default/prometheus-node-exporter
content: |
# Managed by ansible
ARGS="{{ prometheus.exporter_args }}"
notify: Restart prometheus-node-exporter
when: prometheus.exporter_enabled
5 changes: 3 additions & 2 deletions k8s/helm/grafana/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ sources:
- https://github.com/instantlinux/docker-tools
- https://github.com/grafana/grafana
type: application
version: 0.1.4
appVersion: 13.0.3
version: 0.1.5
# Reminder, update subchart tags in values.yaml
appVersion: 13.0.6
dependencies:
- name: chartlib
version: 0.1.8
Expand Down
4 changes: 4 additions & 0 deletions k8s/helm/grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,9 @@ ingressTOTP:
# Subchart parameters
prometheus:
enabled: true
image:
tag: v3.13.2
alertmanager:
enabled: true
image:
tag: v0.33.1
Loading