Page MenuHomeDevCentral

Expose metrics for dovecot
ClosedPublic

Authored by DorianWinty on Jul 31 2024, 17:37.
Tags
None
Referenced Files
F3725724: D3387.diff
Sat, Nov 9, 00:23
Unknown Object (File)
Thu, Nov 7, 21:34
Unknown Object (File)
Thu, Nov 7, 20:46
Unknown Object (File)
Thu, Nov 7, 13:21
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
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.