Page MenuHomeDevCentral

Scrape Dovecot metrics into Prometheus
ClosedPublic

Authored by DorianWinty on Jul 31 2024, 17:51.
Tags
None
Referenced Files
F3765260: D3388.id8745.diff
Fri, Nov 22, 11:24
F3764299: D3388.diff
Fri, Nov 22, 04:59
F3762977: D3388.id8792.diff
Thu, Nov 21, 18:25
F3762976: D3388.id8745.diff
Thu, Nov 21, 18:24
F3762856: D3388.id.diff
Thu, Nov 21, 16:44
F3762818: D3388.diff
Thu, Nov 21, 16:12
Unknown Object (File)
Sun, Nov 17, 13:47
Unknown Object (File)
Sun, Nov 10, 07:19
Subscribers
None

Details

Summary

Ref T1987

Test Plan
  • Reload prometheus, check targets
  • Browse in Prometheus /graph?g0.expr=dovecot_build_info

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
dovecotScrape
Build Status
Buildable 5395
Build 5676: arc lint + arc unit

Event Timeline

DorianWinty created this revision.
WindRiver
$ arc patch D3388
[…]

$ git rebase origin/main
Successfully rebased and updated refs/heads/arcpatch-D3388.

$ salt-call --local state.apply roles/prometheus/prometheus/config
local:
----------
          ID: /usr/local/etc/prometheus.yml
    Function: file.managed
      Result: True
     Comment: File /usr/local/etc/prometheus.yml updated
     Started: 11:47:07.004049
    Duration: 9.097 ms
     Changes:
              ----------
              diff:
[…]{'scheme': 'http', 'job_name': 'dovecot', 'static_configs': [{'targets': ['172.27.27.3:9900']}]}[…]

I can query from Prometheus the metrics.

dovecot_build_info{instance="172.27.27.3:9900", job="dovecot", revision="47349e2482", version="2.3.21"}

This revision is now accepted and ready to land.Aug 3 2024, 11:50
This revision was automatically updated to reflect the committed changes.