wordpress_exporter

command module
v0.0.0-...-3965174 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 10 Imported by: 0

README

wordpress_exporter

Prometheus exporter for WordPress / WooCommerce

Inspired by kotsis/wordpress_exporter and devent/wordpress_exporter

Usage of wordpress_exporter

docker run --name wordpress_exporter -p 9850:9850 -e WORDPRESS_DB_HOST="127.0.0.1" -e WORDPRESS_DB_PORT="3306" -e WORDPRESS_DB_USER="wordpress" -e WORDPRESS_DB_NAME="wordpress" -e WORDPRESS_DB_PASSWORD="wordpress" -e WORDPRESS_TABLE_PREFIX="wp_" -d alexandreio/wordpress_exporter:latest

Prometheus configuration for wordpress_exporter

For Prometheus to start scraping the metrics you have to edit /etc/prometheus/prometheus.yml and add:

  - job_name: 'wordpress'
    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.
    static_configs:
    - targets: ['localhost:9850']

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL