Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: prometheus-community/postgres_exporter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: afefelov/postgres_exporter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 2 files changed
  • 1 contributor

Commits on Sep 16, 2015

  1. chore (auth): added basic auth from node_exporter

    feature (pgq): added views for special monitoring user.
    Postgres role has to be created as:
    
    CREATE ROLE monit LOGIN
      NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE;
    COMMENT ON ROLE monit IS 'Monitoring role';
    ALTER ROLE monit SET search_path=public,monit;
    
    Schema monit also have to be created and owned by role monit:
    
    CREATE SCHEMA monit
      AUTHORIZATION monit;
    
    Views have to be defined as:
    CREATE OR REPLACE VIEW monit.pgq_consumer AS
     SELECT get_consumer_info.consumer_name AS name, date_part('epoch'::text, get_consumer_info.lag) AS lag
       FROM pgq.get_consumer_info() get_consumer_info(queue_name, consumer_name, lag, last_seen, last_tick, current_batch, next_tick, pending_events);
    afefelov committed Sep 16, 2015
    Configuration menu
    Copy the full SHA
    2463050 View commit details
    Browse the repository at this point in the history
  2. chore (gofmt): gofmt applied

    afefelov committed Sep 16, 2015
    Configuration menu
    Copy the full SHA
    fbb8e38 View commit details
    Browse the repository at this point in the history
  3. chore (doc): auth flags

    afefelov committed Sep 16, 2015
    Configuration menu
    Copy the full SHA
    cc83c49 View commit details
    Browse the repository at this point in the history
Loading