Skip to content

Commit

Permalink
update grafana to v 9.5.2
Browse files Browse the repository at this point in the history
Set fs.inotify.max_user_instances  to 4096 by default
  • Loading branch information
VURU committed May 11, 2023
1 parent 0efa1d9 commit a5106c8
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 11 deletions.
14 changes: 14 additions & 0 deletions ansible/setup/common/tasks/host_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- name: Set timezone to UTC
become: true
community.general.timezone:
name: UTC
register: ts

- name: Set Inode settings
become: true
changed_when: false
shell: |
if [ $(sysctl fs.inotify.max_user_instances | awk '{print $3}') -lt 4096 ]; then sysctl -w fs.inotify.max_user_instances=4096 ;fi
- debug:
msg: "{{ ts }}"
6 changes: 4 additions & 2 deletions ansible/setup/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import_tasks: install_base_packages.yml


- name: "Set Timezone {{host_name}}"
import_tasks: set_timezone_utc.yml
- name: "Host config {{host_name}}"
import_tasks: host_config.yml



Expand All @@ -36,5 +36,7 @@

- name: "copy check config sh to the nodes "
import_tasks: copy_check_config.yml


tags:
- nodes
8 changes: 0 additions & 8 deletions ansible/setup/common/tasks/set_timezone_utc.yml

This file was deleted.

2 changes: 1 addition & 1 deletion ansible/setup/stack_observability/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- docker_build_dir: "/tmp/dockerbuild"
- nomad_cli_cert: "{{base_cert_dir}}/nomad/nomad-cli.pem"
- nomad_cli_cert_key: "{{base_cert_dir}}/nomad/nomad-cli-key.pem"
- version_grafana: "9.5.1"
- version_grafana: "9.5.2"
- version_grafana_nomadder: "{{version_grafana}}.0"
- version_grafana_mimir: "2.8.0"
- version_grafana_loki: "2.8.2"
Expand Down
4 changes: 4 additions & 0 deletions docs/205_stack_core_mimir_prometheus.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
=== PromQl Basics

==== staleness
https://www.youtube.com/watch?v=GcTzd2CLH7I&ab_channel=PrometheusMonitoring
11 changes: 11 additions & 0 deletions docs/902_cheet_sheet_ubuntu.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ a|[source,shell]
sudo nmap -sT -p- 172.26.73.37
----

|Increase the inotify limits
a|[source,shell]
----
# In case of node logs Error streaming logs: error getting journald fd: Too many open files
#Find current values
sysctl fs.inotify
#Set new value with

sudo sysctl -w fs.inotify.max_user_instances=2048
----
[[_205_link_inode,Manage Inode]]https://maestral.app/docs/inotify-limits[Manage Inode]



Expand Down

0 comments on commit a5106c8

Please sign in to comment.