Add a check for metrics directory existence.

Previously on startup the program would just quit without stating
explicitly why.

Change-Id: I833b85eb74d2dd27cdc3f0f2e65d7bb1c42caa39
Update example config file from json to new protobuf format.

Change-Id: I38646c2be53b6993abe464d9cdd9b211678de496
More updates for first time users.

    - Modified sample conf so it is useable by default, also added some
      comments from the 'hello world' configuration.
    - Updated README so there's a clear two step start for newbies.
    - Added extra vim swap files to gitignore.

Change-Id: I76203973db4a7b332014662fcfb2ce5e7d137bd8
Add compaction regression tests.

This adds regression tests that catch the two error cases reported in

  https://github.com/prometheus/prometheus/issues/367

It also adds a commented-out test case for the crash in

  https://github.com/prometheus/prometheus/issues/368

but there's no fix for the latter crash yet.

Change-Id: Idffefea4ed7cc281caae660bcad2e3c13ec3bd17
Add chunk sanity checking to dumper tool.

Also, move codecs/filters to common location so they can be used in subsequent
test.

Change-Id: I3ffeb09188b8f4552e42683cbc9279645f45b32e
remove duplicate users word from README

Change-Id: I3a9c84f16731c76f957155e58d05beda26505924
Remove usage of gorest.

Due to on going issues, we've decided to remove gorest. It started with gorest
not being thread-safe (it does introspection to create a new handler which is
an easy process to mess up with multiple threads of execution):
    https://code.google.com/p/gorest/issues/detail?id=15
While the issue has been marked fixed, it looks like the patch has introduced
more problems than the original issue and simply doesn't work properly.
I'm not sure the behaviour was thought through properly. If a new instance is
needed every request then a handler-factory is needed or the library needs to
set expectations about how the new objects should interact with their
constructor state.
While it was tempting to try out another routing library, I think for now
it's better to use dumb vanilla Go routing. At least until we decide which
URL format we intend to standardize on.

Change-Id: Ica3da135d05f8ab8fc206f51eeca4f684f8efa0e
add contributing.md

Change-Id: Ia3284a90dfbbaaf655facd885a8ef13858bdb2c9
change double quotes to backticks for md awesomeness

Change-Id: Ife68c9c67d36ffec24927176ab519f7cb08976a8
moved CONTRIBUTING.md to top of repo; link to CONTRIBUTING.md in README.md

Change-Id: Ibe1def5c0c5e1e7f6eb0da344badc53d18f2ecb3
fix link to CONTRIBUTING.md in README.md

Change-Id: I53a24c061d0610a9c4b3c515c7d5ba7c04ae9f54
Merge "Add a check for metrics directory existence."
Merge changes I76203973,I38646c2b

* changes:
  More updates for first time users.
  Update example config file from json to new protobuf format.
Merge changes I53a24c06,Ibe1def5c,Ife68c9c6,Ia3284a90

* changes:
  fix link to CONTRIBUTING.md in README.md
  moved CONTRIBUTING.md to top of repo; link to CONTRIBUTING.md in README.md
  change double quotes to backticks for md awesomeness
  add contributing.md
Merge "Fix chunk corruption compaction bug."
Merge "Fix watermarker default time / LevelDB key ordering bug."
Merge changes I3ffeb091,Idffefea4

* changes:
  Add chunk sanity checking to dumper tool.
  Add compaction regression tests.
Fix /metrics endpoint in sample config.

Change-Id: I2daca6a31f536b87aa8e49a2190787ad9d803595
Merge "Remove usage of gorest."
Add search domain support to SRV lookups

This adds search domain support by trying to resolve a name by
appending each search domain configured in /etc/resolv.conf until
the query succeeds (NOERROR) and has at least one answer.

Change-Id: Ibdc5138c5d8cc049e11fab90c3d5243d5a06852c