Giter Site home page Giter Site logo

docker-pgbadger's Introduction

uphold/pgbadger

A pgBadger Docker image.

uphold/pgbadger uphold/pgbadger uphold/pgbadger uphold/pgbadger Travis build status

Supported tags and respective Dockerfile links

What is pgBadger?

pgBadger is a fast PostgreSQL log analysis reporter.

Usage

How to use this image

This image contains the pgbadger executable and is meant for one-off uses. The entrypoint assumes all arguments are targeted for the pgbadger executable and additionally configures jobs parallelization using the number of cores attributed to the container and sets the --out-dir to the value of $PGBADGER_DATA.

For example, considering PGBADGER_DATA=/data and the number of available cores to the container is 4:

$ docker run --rm uphold/pgbadger /var/log/postgresql/postgresql.log

Would translate to:

pgbadger /var/log/postgresql/postgresql.log --jobs 4 --outdir /data

If you'd like to run other commands on the container, you will need to replace the entrypoint by setting it on the command line via --entrypoint.

Here is a sample usage with docker-compose that mounts the volumes from a running postgresql container and saves the report on the ./cache/pgbadger directory mounted from the host:

pgbadger:
  image: uphold/pgbadger
  command: /var/lib/postgresql/data/pg_log/postgresql.log
  volumes:
    - ./cache/pgbadger:/data
  volumes_from:
    - postgres:ro

Image variants

The uphold/pgbadger image comes in multiple flavors:

uphold/pgbadger:latest

Points to the latest release available of pgBadger.

uphold/pgbadger:<version>

Targets a specific version of pgBadger (e.g. 8.1).

Supported Docker versions

This image is officially supported on Docker version 1.11, with support for older versions provided on a best-effort basis.

License

License information for the software contained in this image.

License information for the uphold/docker-pgbadger docker project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.