Commit graph

3 commits

Author SHA1 Message Date
Kim Alvefur
98922d54b1 plugins: Prefix module imports with prosody namespace 2023-03-24 13:15:28 +01:00
Kim Alvefur
17aad028b3 mod_http_openmetrics: Serve HTTP from global context
Makes GET /metrics work regardless of the value of the Host header.

This was not possible before 220468f7a103 which added the ability to
have global HTTP modules, which was partly why the per-host part was
kept while the module lived among the community modules.

Another reason was to provide some semblance of security by obscurity by
only loading the module on e.g. a 'localhost' VirtualHost or Component.
The new IP limits obsoletes this.
2021-11-25 16:57:01 +01:00
Matthew Wild
fa22d40ba3 mod_http_openmetrics: Imported from prosody-modules mod_prometheus @df2246b15075
This version has several changes from the earlier mod_prometheus:

- Conversion of metrics into the text-based OpenMetrics format is moved to
  util.openmetrics
- Support for IP-based access control
- Compatibility with earlier Prosody versions removed
2021-11-24 16:03:05 +00:00