Commit Graph

703 Commits

Author SHA1 Message Date
Matt T. Proud 5a29c27491 Merge pull request #13 from matttproud/feature/labels/base-exposed
Update client to reflect new API needs.
2013-01-23 04:09:17 -08:00
Matt T. Proud 0f93b588cd Update client to reflect new API needs.
1. The output format is now versioned per the Semantic Versioning scheme.  Mainline Prometheus will be adapted to use differing consumption methodologies as the generators' formats evolve to support legacy clients.

2. The telemetry outputter now supports GZIP output encoding.  In sample runs, this cuts the output size in half.

3. Basic sanity tests are added for registration with varying levels of pedanticness.

4. We have support for base labels in the registration and emission phases.

5. We have label support for individual metric mutation operations.

6. A number of simplications have been made.
2013-01-23 13:07:12 +01:00
Matt T. Proud 01c4092691 Merge pull request #12 from matttproud/refactor/decouple-from-bazaar
Decouple from Bazaar.
2013-01-18 07:36:48 -08:00
Matt T. Proud acf4e9ce2b Decouple from Bazaar.
Having to use Bazaar to access gocheck is onerous.  We have simply
forked it at a revision until all tests can be replaced with
table-driven ones.
2013-01-18 16:29:47 +01:00
Matt T. Proud c19702aca2 Merge pull request #11 from matttproud/feature/include-instance-uptime
Include instance uptime information in the stack.
2013-01-18 07:25:10 -08:00
Matt T. Proud 4cab4a892e Include instance uptime information in the stack. 2013-01-18 15:50:16 +01:00
juliusv d670ebaba5 Merge pull request #9 from matttproud/feature/base-labels-on-registration
Add ``baseLabels`` to the registration signature.
2013-01-15 11:36:00 -08:00
Matt T. Proud 1134be8073 Add ``baseLabels`` to the registration signature. 2013-01-15 20:18:43 +01:00
juliusv 32452fc15a Merge pull request #8 from matttproud/feature/docstrings-on-registration
Add docstrings in registration signature.
2013-01-15 11:13:15 -08:00
Matt T. Proud e53e7ec940 Add docstrings in registration signature. 2013-01-15 20:10:04 +01:00
juliusv 4aad7189f1 Merge pull request #7 from matttproud/feature/setable-ports-in-examples
Make listening port for examples to be settable.
2013-01-11 14:51:56 -08:00
Matt T. Proud 1800ee2925 Make listening port for examples to be settable.
This will be better for our own internal tests.
2013-01-11 22:52:36 +01:00
Matt T. Proud e9b12f3921 Merge pull request #6 from kesselborn/basic-auth-fix
Tell clients to authenticate with basic auth
2013-01-09 05:02:42 -08:00
Daniel Bornkessel 0f7fe643f0 Tell clients to authenticate with basic auth 2013-01-09 13:59:50 +01:00
Matt T. Proud 872a959b31 Merge pull request #5 from kesselborn/feature/basic-auth-support
Implement simple basic auth for the exporter
2013-01-09 03:51:09 -08:00
Daniel Bornkessel 3dbf5d550b Rename YieldProtectedExporter -> YieldBasicAuthExporter 2013-01-09 12:48:33 +01:00
Daniel Bornkessel 45f6fe3bf1 Constantize string 2013-01-09 12:47:33 +01:00
Matt T. Proud 397d68435c Merge pull request #4 from kesselborn/feature/correct-content-type
Remove explicit WriteHeader call to have correct content type
2013-01-09 03:35:29 -08:00
Daniel Bornkessel ca53ce1081 Implement simple basic auth for the exporter
So this can be quickly thrown into public projects until better
methods of authentications are available
2013-01-08 16:56:19 +01:00
Daniel Bornkessel 05891fd731 Remove explicit WriteHeader call to have correct content type
According to the documentation:

    // WriteHeader sends an HTTP response header with status code.
    // If WriteHeader is not called explicitly, the first call to Write
    // will trigger an implicit WriteHeader(http.StatusOK).
    // Thus explicit calls to WriteHeader are mainly used to
    // send error codes.

and

    // Header returns the header map that will be sent by WriteHeader.
    // Changing the header after a call to WriteHeader (or Write) has
    // no effect.

so calling `w.Header().Set(contentType, jsonContentType)` after calling
`w.WriteHeader` does not set the content type -- the call can be removed
though as it always set `http.StatusOK` which will be done anyways
2013-01-03 18:44:50 +01:00
Matt T. Proud 474d1d53d1 Merge pull request #3 from kesselborn/feature/extract-counter-from-gauge
Split Gauge into Gauge and Counter
2012-12-19 02:54:51 -08:00
Daniel Bornkessel 4cb006cce4 Split Gauge into Gauge and Counter
Counter is a separate metric now
2012-12-19 11:49:38 +01:00
Matt T. Proud ecd039b705 Merge pull request #2 from matttproud/feature/matt/simplify-and-refresh-travis
Simplify Travis CI Configuration
2012-12-19 02:43:16 -08:00
Matt T. Proud 96c93dad9d Simplify the Travis-CI configuration.
Even though Travis does NOT offer a consistent Go platform, I want
to nevertheless simplify the scaffolding scripts around it to make
it easier for other folks to perform pull requests, reviews, etc.
while letting the tests run.
2012-12-19 11:38:06 +01:00
Matt T. Proud 640a0122f5 Merge pull request #1 from kesselborn/feature/humanize-to-string
Change Humanize() -> String()
2012-12-19 02:13:25 -08:00
Matt T. Proud 7d03988350 Merge pull request #1 from kesselborn/feature/humanize-to-string
Change Humanize() -> String()
2012-12-19 02:13:25 -08:00
Daniel Bornkessel 644d89de15 Change Humanzie() -> String() 2012-12-19 11:10:09 +01:00
Matt T. Proud 628071f203 Revert "Attempt Go configuration with valid test."
This reverts commit ac812287bc.
2012-07-11 08:20:29 -07:00
Matt T. Proud ac812287bc Attempt Go configuration with valid test. 2012-07-11 08:17:35 -07:00
Matt T. Proud f4ae617a91 Yet another process of elimination for test. 2012-07-10 23:35:29 -07:00
Matt T. Proud 9355aa9291 Simplifying the type of test statement for process of elimination. 2012-07-10 23:32:12 -07:00
Matt T. Proud dc3a47f278 Validating that final test statement does not blow up Travis. 2012-07-10 23:28:39 -07:00
Matt T. Proud 35d39520ec Remove final check for Go. 2012-07-10 23:25:31 -07:00
Matt T. Proud 42aa468071 OK. Apparently the Ruby environment is a no-no.
Anyone know of a quick way to test Travis without junking my commit log?
I'll buy you a few rounds of drinks in return.  :-)
2012-07-10 23:21:21 -07:00
Matt T. Proud c8e4afd085 Switch to Go environment and add extra sanity check.
Add notes on why Go is removed and final sanity check to ensure that
it is not present.
2012-07-10 23:17:49 -07:00
Matt T. Proud a4f189593f Forgot to use sudo. God damn it, Travis. 2012-07-10 23:04:28 -07:00
Matt T. Proud ff78be55d0 Kill golang from environment since it is installed. 2012-07-10 23:00:38 -07:00
Matt T. Proud cc4c8f34b3 Revert "Keeping Erlang with diagnostics."
This reverts commit 172517165a.
2012-07-10 22:54:55 -07:00
Matt T. Proud 172517165a Keeping Erlang with diagnostics. 2012-07-10 22:52:36 -07:00
Matt T. Proud 4ad714245c Revert "Determine whether Go exists in the Travis CI."
This reverts commit 7ad00de665.
2012-07-10 22:51:08 -07:00
Matt T. Proud 7ad00de665 Determine whether Go exists in the Travis CI. 2012-07-10 22:47:44 -07:00
Matt T. Proud a0f424f3ce Revert "Trial an experiment of the Travis CI language."
This reverts commit b98b2c806b.

The re-build failed on Travis.
2012-07-10 22:25:57 -07:00
Matt T. Proud b98b2c806b Trial an experiment of the Travis CI language.
Aalok Shah informs me that Travis CI ought to be permissive with the
languages it supports.  This is a trial at setting it to Go, given that
apparently Erlang now requires a OTP release.
2012-07-10 22:18:23 -07:00
Matt T. Proud e0b92aec7a - Separate out the packages' files' documentation into a separate documentation file per package.
- Provide better examples in the examples subdirectory.
- Make the comments consistent in terms of using multi-line format for future-proofing.
- Extract major constants out.
2012-05-24 20:02:44 +02:00
Matt T. Proud 5ea9b1a0b5 - Improved comments throughout the package.
- Added normal and exponential distributions to one of the examples.
- Improved the naming of a couple of local variables.
- Handled an error in the AccumulatingBucket ValueForIndex function whereby
  the vestigal old behavior was accidentally preserved and not updated.
  This could have been caught had the tests been updated first.
- Simplify Histogram prospectiveIndexForPercentile such that various
  small tasks it performs are extracted into separate functions for easier
  testing and code comprehension.
- Remedy a regression in Histogram prospectiveIndexForPercentile whereby
  the prospective index may have included the terminating element of a
  bucket.
- Provide help for Histogram prospectiveIndexForPercentile such that requesting
  the terminating element of a bucket will fast-forward to the first element of
  the next non-empty bucket.
- Fix TallingBucket's boundary constant, because they were originally keyed toward
  percentages [0, 100], not decimal-based ones.  The antique tests had been
  temporarily commented out, which prevented this regression from being exposed.
2012-05-22 09:20:09 +02:00
Matt T. Proud fe4f71b333 - Provide an example of this working with a uniform distribution. 2012-05-21 11:05:41 +02:00
Matt T. Proud a1f4f3eec2 - Extract main out of the package root and into the examples/ hierarchy. 2012-05-21 10:43:21 +02:00
Matt T. Proud 2c4784f8ee - Decouple exporter from the DefaultRegistry. 2012-05-21 10:23:22 +02:00
Matt T. Proud 7675c256ad - Add percentile index calculation annotations. 2012-05-20 00:22:41 +02:00
Matt T. Proud f7968cb90f - Kill off the vestiges of the old percentage tally, which was never a
correct approach.
2012-05-20 00:13:31 +02:00