Page MenuHomeDevCentral

Expose metrics for dovecot
ClosedPublic

Authored by DorianWinty on Jul 31 2024, 17:37.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 30, 16:45
Unknown Object (File)
Tue, Oct 29, 17:39
Unknown Object (File)
Tue, Oct 29, 17:39
Unknown Object (File)
Tue, Oct 29, 17:35
Unknown Object (File)
Tue, Oct 29, 17:31
Unknown Object (File)
Tue, Oct 29, 14:43
Unknown Object (File)
Sun, Oct 27, 11:07
Unknown Object (File)
Sat, Oct 26, 06:11
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.