You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I start mongodb_exporter.service, I get this output:
###############################
● mongodb_exporter.service - MongoDB Exporter
Loaded: loaded (/usr/lib/systemd/system/mongodb_exporter.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2024-02-13 11:46:08 CET; 4s ago
Main PID: 17623 (mongodb_exporte)
Tasks: 6 (limit: 52426)
Memory: 7.0M
CGroup: /system.slice/mongodb_exporter.service
└─17623 /usr/local/bin/mongodb_exporter --mongodb.uri=mongodb://mongodb_exporter:collaudo@xxx:27017/admin?ssl=true
Feb 13 11:46:08 xxx systemd[1]: Started MongoDB Exporter.
Feb 13 11:46:08 xxx mongodb_exporter[17623]: level=info ts=2024-02-13T10:46:08.912Z caller=tls_config.go:274 msg="Listening on" address=0.0.0.0:92>
Feb 13 11:46:08 xxx mongodb_exporter[17623]: level=info mongodb://mongodb_exporter:collaudo@xxx:27017/?authSource=admin&readPreference=primary&appname=MongoDB%20Compass&ssl=truets=2024-02-13T10:46:08.912Z caller=tls_config.go:277 msg="TLS is disabled." http2=false ad
###############################
My MongoDB cluster is configured on 3 nodes (one primary and two secondary) and SSL connection is enabled.
In fact, if I try to connect with a client with the following string, I can connect without problems mongodb://mongodb_exporter:collaudo@xxx:27017/?authSource=admin&readPreference=primary&appname=MongoDB%20Compass&ssl=true
My prometeus.yml is:
###############################
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
Hello everyone, I have a problem with the mongodb_exporter.service to export metrics to Grafana.
It is configured as follows:
###############################à
[Unit]
Description=MongoDB Exporter
User=prometheus
[Service]
Type=simple
Restart=always
ExecStart=/usr/local/bin/mongodb_exporter --mongodb.uri=mongodb://mongodb_exporter:collaudo@xxx:27017/admin?ssl=true
[Install]
WantedBy=multi-user.target
###############################
But when I start mongodb_exporter.service, I get this output:
###############################
● mongodb_exporter.service - MongoDB Exporter
Loaded: loaded (/usr/lib/systemd/system/mongodb_exporter.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2024-02-13 11:46:08 CET; 4s ago
Main PID: 17623 (mongodb_exporte)
Tasks: 6 (limit: 52426)
Memory: 7.0M
CGroup: /system.slice/mongodb_exporter.service
└─17623 /usr/local/bin/mongodb_exporter --mongodb.uri=mongodb://mongodb_exporter:collaudo@xxx:27017/admin?ssl=true
Feb 13 11:46:08 xxx systemd[1]: Started MongoDB Exporter.
Feb 13 11:46:08 xxx mongodb_exporter[17623]: level=info ts=2024-02-13T10:46:08.912Z caller=tls_config.go:274 msg="Listening on" address=0.0.0.0:92>
Feb 13 11:46:08 xxx mongodb_exporter[17623]: level=info mongodb://mongodb_exporter:collaudo@xxx:27017/?authSource=admin&readPreference=primary&appname=MongoDB%20Compass&ssl=truets=2024-02-13T10:46:08.912Z caller=tls_config.go:277 msg="TLS is disabled." http2=false ad
###############################
My MongoDB cluster is configured on 3 nodes (one primary and two secondary) and SSL connection is enabled.
In fact, if I try to connect with a client with the following string, I can connect without problems mongodb://mongodb_exporter:collaudo@xxx:27017/?authSource=admin&readPreference=primary&appname=MongoDB%20Compass&ssl=true
My prometeus.yml is:
###############################
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
alerting:
alertmanagers:
- static_configs:
- targets:
job_name: "prometheus"
static_configs:
job_name: 'mongodb_exporter'
static_configs:
labels:
alias: mongodb_exporter
###############################
Could you please help me solve this issue?
Thanks!
The text was updated successfully, but these errors were encountered: