-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from warmans/feature/add-labels
Add Label Feature
- Loading branch information
Showing
19 changed files
with
165 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# HELP http_request_duration_seconds A histogram of the request duration. | ||
# TYPE http_request_duration_seconds histogram | ||
http_request_duration_seconds_bucket{ae_source="foo",le="0.05"} 24054 | ||
http_request_duration_seconds_bucket{ae_source="foo",le="0.1"} 33444 | ||
http_request_duration_seconds_bucket{ae_source="foo",le="0.2"} 100392 | ||
http_request_duration_seconds_bucket{ae_source="foo",le="0.5"} 129389 | ||
http_request_duration_seconds_bucket{ae_source="foo",le="1"} 133988 | ||
http_request_duration_seconds_bucket{ae_source="foo",le="+Inf"} 144320 | ||
http_request_duration_seconds_sum{ae_source="foo"} 53423 | ||
http_request_duration_seconds_count{ae_source="foo"} 144320 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# HELP http_requests_total The total number of HTTP requests. | ||
# TYPE http_requests_total counter | ||
http_requests_total{method="post",code="200"} 1027 1395066363000 | ||
http_requests_total{method="post",code="400"} 3 1395066363000 | ||
|
||
# HELP http_requests_total The total number of HTTP requests. | ||
# TYPE http_requests_total counter | ||
http_requests_total{method="post",code="200"} 1027 1395066363000 | ||
http_requests_total{method="post",code="400"} 3 1395066363000 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
package: github.com/warmans/prometheus-aggregate-exporter | ||
import: | ||
- package: gopkg.in/yaml.v2 | ||
- package: github.com/prometheus/common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package main | ||
|
||
import ( | ||
"flag" | ||
"fmt" | ||
"io" | ||
"io/ioutil" | ||
"os" | ||
"testing" | ||
) | ||
|
||
var updateGoldenFile = flag.Bool("update.golden", false, "update golden files") | ||
|
||
func TestMain(m *testing.M) { | ||
|
||
flag.Parse() | ||
os.Exit(m.Run()) | ||
} | ||
|
||
func mustOpenFile(name string, flag int) *os.File { | ||
file, err := os.OpenFile(fmt.Sprintf("fixture/%s", name), flag, 0666) | ||
if err != nil { | ||
panic(err) | ||
} | ||
return file | ||
} | ||
|
||
func mustReadAll(r io.Reader) string { | ||
b, err := ioutil.ReadAll(r) | ||
if err != nil { | ||
panic("failed to readall reader: " + err.Error()) | ||
} | ||
return string(b[:]) | ||
} | ||
|
||
//todo: re-implement tests |
Submodule protobuf
added at
2bba06
Submodule golang_protobuf_extensions
added at
c12348
Submodule client_model
added at
6f3806
Submodule common
added at
13ba4d
Oops, something went wrong.