Skip to content

Commit c2914ef

Browse files
Merge branch 'release/4.2.0'
2 parents 190c9e9 + db1f0f7 commit c2914ef

File tree

18 files changed

+795
-54
lines changed

18 files changed

+795
-54
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ lib
2222
apxs
2323
libtool
2424
docs/_build
25+
newrelic.ini

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ agent configuration file.
187187

188188
mod_wsgi-express wsgi.py --with-newrelic
189189

190+
When using this option, if you have also installed the ``mod_wsgi-metrics``
191+
Python package, then additional metrics about Apache and mod_wsgi will also
192+
be reported via the New Relic Platform API. These will appear as a separate
193+
set of dashboards under 'mod_wsgi' in the left hand side navigation bar of
194+
the New Relic UI.
195+
190196
New Relic provides a free Lite tier so there is no excuse for not using it.
191197
Learn about what your Python web application is really doing. [1]_
192198

docs/release-notes/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Release Notes
55
.. toctree::
66
:maxdepth: 2
77

8+
version-4.2.0.rst
9+
810
version-4.1.3.rst
911
version-4.1.2.rst
1012
version-4.1.1.rst
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
=============
2+
Version 4.2.0
3+
=============
4+
5+
Version 4.2.0 of mod_wsgi can be obtained from:
6+
7+
https://github.com/GrahamDumpleton/mod_wsgi/archive/4.2.0.tar.gz
8+
9+
Known Issues
10+
------------
11+
12+
1. The makefiles for building mod_wsgi on Windows are currently broken and
13+
need updating. As most new changes relate to mod_wsgi daemon mode, which is
14+
not supported under Windows, you should keep using the last available
15+
binary for version 3.X on Windows instead.
16+
17+
New Features
18+
------------
19+
20+
1. Added ``mod_wsgi.server_metrics()`` function which provides access to a
21+
dictionary of data derived from the Apache worker scoreboard. In effect this
22+
provides access to the same information that is used to create the Apache
23+
server status page.
24+
25+
Note that if ``mod_status`` is not loaded into Apache, or the compile time
26+
configuration of Apache prohibits the scoreboard from being available, this
27+
function will return ``None``.
28+
29+
Also be aware that only partial information about worker status, and no
30+
information about requests, will be returned if the ``ExtendedStatus``
31+
directive is not also set to ``On``.
32+
33+
Although ``mod_status`` needs to be loaded, it is not necessary to enable
34+
any URL to expose the server status page.
35+
36+
2. Added support for a platform plugin for New Relic to ``mod_wsgi-express``
37+
which will report server status information up to New Relic if the
38+
``--with-newrelic`` option is supplied when running mod_wsgi express.
39+
40+
That same option also enables the New Relic Python agent. If you only want
41+
one or the other, you can instead use the ``--with-newrelic-agent`` and
42+
``--with-newrelic-platform`` options.
43+
44+
The feature of ``mod_wsgi-express`` for reporting data up to the New Relic
45+
Platform is dependent upon the separate ``mod_wsgi-metrics`` package being
46+
installed.

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,5 @@ def _version():
187187
ext_modules = [extension],
188188
entry_points = { 'console_scripts':
189189
['mod_wsgi-express = mod_wsgi.server:main'],},
190+
install_requires=['mod_wsgi-metrics >= 1.0.0'],
190191
)

0 commit comments

Comments
 (0)