Skip to content

Commit

Permalink
Merge pull request #105 from open-craft/shimulch/bb-3847
Browse files Browse the repository at this point in the history
Add LimitNOFILE in prometheus.service
  • Loading branch information
ernestas-poskus committed Mar 21, 2021
2 parents ef2f0cb + 0af3603 commit 93658f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ prometheus_snmp_exporter_version: '0.20.0'

# Blackbox exporter
prometheus_blackbox_exporter_version: '0.18.0'

# Number of open file allowed, value for LimitNOFILE
prometheus_service_limitnofile: infinity
```

[DOCS: Prometheus variables](https://github.com/ernestas-poskus/ansible-prometheus/blob/master/docs/prometheus.md)
Expand Down
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -551,3 +551,6 @@ prometheus_black_box_log__level: 'info'

prometheus_black_box_config_modules:
# Blackbox modules config in format of YAML

# Number of open file allowed, value for LimitNOFILE
prometheus_service_limitnofile: infinity
1 change: 1 addition & 0 deletions templates/prometheus.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Group={{prometheus_group}}
StandardOutput=journal
StandardError=journal
WorkingDirectory={{ prometheus_install_dir }}/{{ prometheus_archive }}
LimitNOFILE={{ prometheus_service_limitnofile }}

[Install]
WantedBy=multi-user.target

0 comments on commit 93658f5

Please sign in to comment.