annotate mod_proctitle/mod_proctitle.lua @ 4542:fb4a50bf60f1

mod_prometheus: Invoke stats collection if in 'manual' mode Since 10d13e0554f9 a special value for statistics_interval "manual" exists, where a module is expected to invoke processing in connection to collection of stats. This makes internal collection and exporting to Prometheus happens at the same time with no chance of timers getting out of sync.
author Kim Alvefur <zash@zash.se>
date Tue, 13 Apr 2021 23:53:53 +0200
parents 94c4d4899a21
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1686
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
1 -- Changes the process name to 'prosody' rather than 'lua'/'lua5.1'
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
2 -- Copyright (C) 2015 Rob Hoelz
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
3 --
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
4 -- This file is MIT/X11 licensed.
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
5
1687
94c4d4899a21 Add minimal instructions for proctitle module
Rob Hoelz <rob@hoelz.ro>
parents: 1686
diff changeset
6 -- To use this module, you'll need the proctitle Lua library:
94c4d4899a21 Add minimal instructions for proctitle module
Rob Hoelz <rob@hoelz.ro>
parents: 1686
diff changeset
7 -- https://github.com/hoelzro/lua-proctitle
1686
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
8 local proctitle = require 'proctitle';
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
9
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
10 proctitle 'prosody';