Hi,

I am trying to get the metrics exporter to work in 2.4.0, but for some reason, 
I do not see any connection attempts to the named http server nor do I get any 
errors:

$ doveconf -n
# 2.4.0 (daeb6bc59c): /etc/dovecot/dovecot.conf
# Pigeonhole version 2.4.0 (1b2d5bb9)
# OS: Linux 6.10.14-linuxkit x86_64 Debian 12.9
# Hostname: b7638a15bee0
dovecot_config_version = 2.4.0
auth_allow_cleartext = yes
auth_cache_verify_password_with_worker = yes
auth_failure_delay = 0 secs
auth_mechanisms =
auth_mechanisms {
  plain = yes
  login = yes
}
auth_username_format = %{user | username | lower}
debug_log_path = /dev/stdout
default_internal_group = vmail
default_internal_user = vmail
default_login_user = vmail
dovecot_storage_version = 2.4.0
first_valid_uid = 1000
imap_id_retain = yes
info_log_path = /dev/stdout
last_valid_uid = 1000
listen =
listen {
  * = yes
}
lmtp_proxy = yes
log_path = /dev/stdout
mail_debug = yes
mail_driver = sdbox
mail_gid = vmail
mail_home = /srv/mail/%Ln
mail_path = ~/Mail
mail_uid = vmail
protocols {
  imap = yes
  pop3 = yes
  lmtp = yes
}
ssl = no
verbose_proctitle = yes
namespace inbox {
  inbox = yes
  separator = /
}
service lmtp {
  inet_listener lmtp {
    port = 24
    ssl = no
  }
}
service imap-login {
  client_limit = 100
  process_min_avail = 1
  restart_request_count = unlimited
  inet_listener imap {
    port = 143
  }
}
service pop3-login {
  client_limit = 100
  process_min_avail = 1
  restart_request_count = unlimited
  inet_listener pop3 {
    port = 110
  }
}
event_exporter log {
  driver = log
  format = json
  time_format = rfc3339
}
event_exporter conn_state {
  driver = http-post
  format = json
  http_post_url = http://nauthilus:8080/api/v1/custom/dovecot-session-cleaner
  time_format = rfc3339
  http_client_request_absolute_timeout = 5sec
}
metric client_disconnect_http {
  exporter = conn_state
  exporter_include =
  exporter_include {
    name = yes
    hostname = yes
    timestamps = yes
    categories = yes
    fields = yes
  }
  filter = event=mail_user_session_finished AND (category=imap OR category=pop3 
OR category=lmtp OR category=sieve)
}
metric imap_noop {
  exporter = conn_state
  exporter_include =
  exporter_include {
    name = yes
    hostname = yes
    timestamps = yes
    categories = yes
    fields = yes
  }
  filter = event=imap_command_finished AND cmd_name=NOOP
}
passdb lua {
  lua_file = /etc/dovecot/auth.lua
}
userdb prefetch {
}
userdb lua {
  auth_verbose = no
  lua_file = /etc/dovecot/auth.lua
  result_failure = return-fail
  result_internalfail = return-fail
  result_success = continue-ok
  skip = never
}

It is an example Docker setup found here:

https://github.com/croessner/nauthilus-demo

There are no error logs in dovecot.

Thanks in advance

Christian Rößner
-- 
Rößner-Network-Solutions
Zertifizierter ITSiBe / CISO
Marburger Str. 70a, 36304 Alsfeld
Fax: +49 6631 78823409, Mobil: +49 171 9905345
USt-IdNr.: DE225643613, https://roessner.website
PGP fingerprint: 658D 1342 B762 F484 2DDF 1E88 38A5 4346 D727 94E5 

_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to