Page MenuHomeDevCentral

Expose metrics for dovecot
ClosedPublic

Authored by DorianWinty on Jul 31 2024, 17:37.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 9, 09:54
Unknown Object (File)
Mon, Dec 9, 09:33
Unknown Object (File)
Fri, Nov 29, 11:39
Unknown Object (File)
Sat, Nov 23, 09:37
Unknown Object (File)
Sat, Nov 23, 07:26
Unknown Object (File)
Fri, Nov 22, 16:30
Unknown Object (File)
Fri, Nov 22, 15:27
Unknown Object (File)
Fri, Nov 22, 15:23
Subscribers
None

Details

Summary

Metrics use the OpenMetrics format.

Ref T1987

Test Plan
  • curl http://172.27.27.3:9900/metrics
  • Test in Prometheus with D3388

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

DorianWinty created this revision.
# HELP process_start_time_seconds Timestamp of service start
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1722447303
# HELP dovecot_build Dovecot build information
# TYPE dovecot_build info
dovecot_build_info{version="2.3.21",revision="47349e2482"} 1
# EOF

Default metrics

uncomment all default metrics

dereckson retitled this revision from Init metrics for dovecot to Expose metrics for dovecot.Aug 3 2024, 11:53
dereckson edited the summary of this revision. (Show Details)
dereckson edited the test plan for this revision. (Show Details)
dereckson requested changes to this revision.Aug 3 2024, 11:58

Logic looks good to me. Tested working fine on Prometheus.

roles/mailserver/dovecot/files/conf.d/10-metrics.conf
20

Sections should follow https://github.com/nasqueron/snippets/blob/main/salt/file.conf

#   -------------------------------------------------------------
#   Statistics and metrics
#   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
47
This revision now requires changes to proceed.Aug 3 2024, 11:58
DorianWinty marked 2 inline comments as done.

edit following comments

This revision is now accepted and ready to land.Aug 7 2024, 17:19
This revision was automatically updated to reflect the committed changes.