1. 17 Jan, 2018 1 commit
    • Nick Groenen's avatar
      Support scraping of "global" scope · 3e8a4ef5
      Nick Groenen authored
      PR #5 (itself based on #4) introduced support to scrape the "global" scope,
      however the format of these stats differs slightly from that of the
      As a result of this, combined with the silent return when `len(values)
      != len(columns)+1`, these metrics were being incorrectly exported as
      mislabeled metrics with values of 0.
      The changes in this PR accomodate for the format of the "global" scope
      and now properly scrape those as well.
      It will now also display an error when column counts mismatch, reducing
      the likelihood of silent errors in the future.
      Global metrics will now show up as:
      dovecot_global_auth_cache_hits 0
      dovecot_global_auth_cache_misses 0
      dovecot_global_auth_db_tempfails 3
      dovecot_global_auth_failures 6
      dovecot_global_auth_master_successes 0
      dovecot_global_auth_successes 228
      dovecot_global_clock_time 0
      dovecot_global_disk_input 0
      dovecot_global_disk_output 0
      dovecot_global_invol_cs 0
      dovecot_global_last_update 1.516197189175826e+09
      dovecot_global_mail_cache_hits 0
      dovecot_global_mail_lookup_attr 0
      dovecot_global_mail_lookup_path 0
      dovecot_global_mail_read_bytes 0
      dovecot_global_mail_read_count 0
      dovecot_global_maj_faults 0
      dovecot_global_min_faults 0
      dovecot_global_num_cmds 0
      dovecot_global_num_connected_sessions 234
      dovecot_global_num_logins 234
      dovecot_global_read_bytes 0
      dovecot_global_read_count 0
      dovecot_global_reset_timestamp 1.516190181e+09
      dovecot_global_sys_cpu 0
      dovecot_global_user_cpu 0
      dovecot_global_vol_cs 0
      dovecot_global_write_bytes 0
      dovecot_global_write_count 0
      dovecot_up{scope="global"} 1
      ...with the other scopes being unaffected.
  2. 02 Nov, 2017 4 commits
  3. 31 Oct, 2017 2 commits
    • Nick Groenen's avatar
      Make scopes configurable · 8af66431
      Nick Groenen authored
      This allows a user to select which sets of dovecot stats he or she is
      interested in.
      The default has been deliberately changed mainly because it makes the
      description/format more obvious, but also because gathering global stats
      in addition to user stats generally makes sense.
      Original credit goes to @jap
    • Nick Groenen's avatar
      Switch to kingpin for flag parsing · a0a7bdde
      Nick Groenen authored
      Prometheus is standardizing on kingping for flag parsing, as discussed
      in https://github.com/prometheus/prometheus/issues/2455. Many exporters
      are following this decision so most of the Prometheus ecosystem uses
      As a consequence of this change, flags now require double dashes.
      `-web.listen-address` becomes `--web.listen-address` for example.
      Usage before:
      Usage of ./dovecot_exporter:
        -dovecot.socket-path string
          	Path under which to expose metrics. (default "/var/run/dovecot/stats")
        -web.listen-address string
          	Address to listen on for web interface and telemetry. (default ":9166")
        -web.telemetry-path string
          	Path under which to expose metrics. (default "/metrics")
      And after:
      usage: dovecot_exporter [<flags>]
      Prometheus metrics exporter for Dovecot
        --help                        Show context-sensitive help (also try --help-long and --help-man).
        --web.listen-address=":9166"  Address to listen on for web interface and telemetry.
                                      Path under which to expose metrics.
                                      Path under which to expose metrics.
  4. 25 Feb, 2017 1 commit
  5. 22 Dec, 2016 3 commits
  6. 20 Dec, 2016 7 commits