A Prometheus exporter for Mediawiki.
Emits the following metrics so far:
mediawiki_statistics_activeusers
: Current number of active users.
mediawiki_statistics_admins
: Current number of administrators.
mediawiki_statistics_articles
: Current number of articles.
mediawiki_statistics_edits
: Current number of edits.
mediawiki_statistics_images
: Current number of images.
mediawiki_statistics_jobs
: Current number of jobs.
mediawiki_statistics_pages
: Current number of pages.
mediawiki_statistics_users
: Current number of users.
The container image for the exporter is available at clockworksoul/mediawiki-exporter
.
Execution
To execute this exporter, you must specify the URL of the Mediawiki instance that's being evaluated. This can be one of two ways.
- As the only argument parameter.
- Via the
MEDIAWIKI_API_URL
.
Environment variables
This exporter supports three optional environment variables.
MEDIAWIKI_API_URL
-- Specifies the URL of the evaluated Mediawiki instance.
MEDIAWIKI_USERNAME
-- The bot username (not a user username), if authentication is required.
MEDIAWIKI_PASSWORD
-- The bot password (not a user password), if authentication is required.
Exit status codes
Different failure modes return different status codes.
2
: General Mediawiki login failure
3
: API URL not specified
4
: Bot username/password are could not be authenticated
5
: Access denied by Mediawiki