Page MenuHomeDevCentral

Expose metrics for dovecot
ClosedPublic

Authored by DorianWinty on Jul 31 2024, 17:37.
Tags
None
Referenced Files
F3764942: D3387.diff
Fri, Nov 22, 09:23
Unknown Object (File)
Tue, Nov 19, 14:27
Unknown Object (File)
Tue, Nov 19, 14:27
Unknown Object (File)
Tue, Nov 19, 13:02
Unknown Object (File)
Tue, Nov 19, 06:40
Unknown Object (File)
Tue, Nov 19, 06:40
Unknown Object (File)
Tue, Nov 19, 05:11
Unknown Object (File)
Sun, Nov 17, 22:21
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 Passed
Unit
No Test Coverage
Branch
dovecotMetrics
Build Status
Buildable 5393
Build 5674: arc lint + arc unit

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.