• Stars
    star
    260
  • Rank 152,063 (Top 4 %)
  • Language
    JavaScript
  • Created over 11 years ago
  • Updated about 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

postgres 9.2 visibility

Datascope

Visability into your Postgres 9.2 database via pg_stat_statements and cubism and using the json datatype.

http://f.cl.ly/items/440Z1L1n2v3q3c1Q3J0s/datascope.png

Check out a live example

Heroku Deploy

Datascope needs two Postgres 9.2 databases. The first is a DATABASE_URL with the datascope schema, the second is a TARGET_DB with the pg_stat_statements extension.

$ heroku create

$ heroku addons:add heroku-postgresql:dev --version=9.2
Attached as HEROKU_POSTGRESQL_COPPER_URL
$ heroku config:add DATABASE_URL=$(heroku config:get HEROKU_POSTGRESQL_COPPER_URL)
$ heroku pg:psql COPPER
=> \i schema.sql
CREATE TABLE

$ heroku addons:add heroku-postgresql:dev --version=9.2
Attached as HEROKU_POSTGRESQL_GREEN_URL

$ heroku config:add TARGET_DB=$(heroku config:get HEROKU_POSTGRESQL_GREEN_URL)
$ heroku pg:psql GREEN
=> create extension pg_stat_statements;
CREATE EXTENSION

$ git push heroku master
$ heroku scale worker=1

Basic Auth

If you don't want your deployment of datascope to be publicly visible, simply add environment variables for BASIC_AUTH_USER and BASIC_AUTH_PASSWORD.

heroku config:add BASIC_AUTH_USER=admin BASIC_AUTH_PASSWORD=password

More Repositories

1

slacktyping

i'm typing when you're typing
Ruby
1,918
star
2

redirect_blame

It's your fault my site is down.
HTML
500
star
3

crystal-pg

a postgres driver for crystal
Crystal
457
star
4

githubprofilecheat

try two
Ruby
102
star
5

bundle

gem install bundle
66
star
6

git-vain

vanity git
C
64
star
7

tree-sitter-crystal

C
21
star
8

slouch

JavaScript
17
star
9

psqlstarwars

HTML
16
star
10

yeah_i_did

Helpfully fixes your typos
Ruby
13
star
11

bgwinch.nvim

set neovim background on SIGWINCH
Lua
10
star
12

Rails3_CouchRest_Model_example

Just a small app to show how Rails3 and CouchRest::Model go together
Ruby
10
star
13

ghpc

Ruby
7
star
14

githubprofilecheat2

same as one but with more
7
star
15

crystal_workbook

crystal playground for my talk
HTML
6
star
16

english_key

RFC1751 for ruby
Ruby
5
star
17

pgcmd

pgcmd
Ruby
4
star
18

fp

Crystal
4
star
19

heroku_completion_generator

tabing to victory since oh-eleven
Ruby
4
star
20

will.github.com

will.github.com
HTML
4
star
21

switchbox

declarative ruby conditions
Ruby
3
star
22

phcresolve

postgres.heroku.com resolver
Ruby
3
star
23

haskell-tmbundle

Haskell TextMate bundle
3
star
24

torch

shining light
Ruby
3
star
25

croner

Ruby
2
star
26

incdeploy_webx

Ruby
2
star
27

oblique

a random oblique strategy
Rust
2
star
28

heroku-buildpack-redline

buildpack for redline smalltalk
Shell
2
star
29

fauxbinius

Ruby in ruby
2
star
30

songalive-signup

JavaScript
2
star
31

ppm2emoji

Crystal
2
star
32

autobg.nvim

auto sync vim bg with mac appearnace
Lua
2
star
33

pg-track-fork-demo

heroku postgres track and fork demo
JavaScript
2
star
34

heroku-resolve-follower

Ruby
2
star
35

embedclip

embed heroku postgres dataclip
Ruby
2
star
36

umibe

initial attempt at getting smalltalk on heroku
2
star
37

bitfissionhitcounter

the hit counter for bitfission
Crystal
1
star
38

make_me

having fun with gh pages
1
star
39

pathwayfindr

Ruby
1
star
40

realistic-aws-status

realtalk
1
star
41

mark_sinatra

sinatra app for markdown sites on heroku
Ruby
1
star
42

arduino_ci_indicator

Arduino Continuos Integration Indicator
Ruby
1
star
43

quicksquare

adds the transaction fees to square
JavaScript
1
star
44

eliteissue

5nyp3 155u35 0n g17hub
Ruby
1
star
45

mayfly

ephemeral process manager and maybe queue
Ruby
1
star
46

crow

Easy API mock endpoints
Ruby
1
star
47

bikeshed

Ruby
1
star
48

cpge

a Crystal PostGres Exmaple
Crystal
1
star
49

itwss

JavaScript
1
star
50

eatclub

Crystal
1
star
51

autoaaron

Ruby
1
star
52

slow

a sinusoidally slow app
Ruby
1
star
53

tryderby

me trying derby
CoffeeScript
1
star
54

waitpr

wait on github pr checks
Crystal
1
star
55

sudoku-solver

simple sudoku solver
Ruby
1
star