Skip to content

Commit

Permalink
Change Prometheus Redis exporter to use prometheus user (#102)
Browse files Browse the repository at this point in the history
* Change Prometheus Redis exporter to use prometheus user
* Update Prometheus guide
  • Loading branch information
kvelarde-itential authored Nov 22, 2024
1 parent 0504b21 commit 1f52c32
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions docs/prometheus_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,25 @@ All Prometheus variables are handled by the `prometheus.prometheus.prometheus` r

All exporter variables are handled by the exporter roles. Refer to the documentation links in the [Exporter Roles](#exporter-roles) section.

### MongoDB Exporter Recommendations

We recommend setting the `mongodb_exporter_global_conn_pool` variable to `true` in the `mongodb` group variables section when MongoDB replication is enabled. Otherwise the exporter may consume all available file descriptors and cause the mongod process to crash.

```
all:
vars:
mongodb_replication: true
children:
mongodb:
hosts:
<MONGODB-HOST1>:
<MONGODB-HOST2>:
<MONGODB-HOST3>:
vars:
mongodb_exporter_global_conn_pool: true
```

## Grafana Role Variables

| Variable | Group | Type | Description | Default Value | Required?
Expand Down
2 changes: 1 addition & 1 deletion playbooks/prometheus_exporters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

- role: prometheus.prometheus.redis_exporter
vars:
redis_exporter_user: admin
redis_exporter_user: prometheus
tags: redis_exporter_install
tasks:
- name: Make custom configuration changes
Expand Down

0 comments on commit 1f52c32

Please sign in to comment.