Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV: Phstsai/prometheus client #29

Merged
merged 22 commits into from
Jun 27, 2018
Merged

DEV: Phstsai/prometheus client #29

merged 22 commits into from
Jun 27, 2018

Conversation

WakeupTsai
Copy link
Contributor

No description provided.

Copy link
Contributor

@hwchiu hwchiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIx the missing package

bitbucket.org/linkernetworks/vortex/src/net/http/query

Copy link
Contributor

@hwchiu hwchiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow the https://github.com/prometheus/client_golang/blob/7540c0707421d7c58cfce34f4294d1b1f25f240d/api/prometheus/v1/api_test.go to write the testing for prometheus and you can push it on the other PR

@codecov-io
Copy link

codecov-io commented Jun 26, 2018

Codecov Report

Merging #29 into develop will increase coverage by 0.81%.
The diff coverage is 95.23%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #29      +/-   ##
===========================================
+ Coverage     77.8%   78.61%   +0.81%     
===========================================
  Files           16       17       +1     
  Lines          428      449      +21     
===========================================
+ Hits           333      353      +20     
- Misses          73       74       +1     
  Partials        22       22
Impacted Files Coverage Δ
src/server/handler_prometheus.go 100% <100%> (ø)
src/server/route.go 60.97% <83.33%> (+3.83%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dd01cbf...7948830. Read the comment docs.

@hwchiu
Copy link
Contributor

hwchiu commented Jun 26, 2018

這個rebase怪怪的lol

@hwchiu hwchiu force-pushed the phstsai/prometheus-client branch from 410f328 to 95522cc Compare June 26, 2018 04:45
api prometheus.API
}

func (suite *PrometheusTestSuite) SetupTest() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to SetupSuite

suite.Run(t, new(PrometheusTestSuite))
}

func (suite *PrometheusTestSuite) TearDownTest() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to TearDownSuite


func (suite *PrometheusTestSuite) SetupTest() {
cf := config.MustRead("../../config/testing.json")
sp := serviceprovider.New(cf)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to serviceprovider.NewForTesting(t) to avoid the k8s config init.

@WakeupTsai WakeupTsai force-pushed the phstsai/prometheus-client branch from fc243f9 to 645cf2a Compare June 27, 2018 02:38
@hwchiu hwchiu merged commit 4481511 into develop Jun 27, 2018
@hwchiu hwchiu deleted the phstsai/prometheus-client branch June 27, 2018 05:45
John-Lin pushed a commit that referenced this pull request Jul 25, 2018
DEV: Phstsai/prometheus client
Former-commit-id: c89a669ec579d4ed9af275652266b3ccb828acf8 [formerly 4481511]
Former-commit-id: 35060b6ecc503a15499dbc6277857d0fc2d16ce7
John-Lin pushed a commit that referenced this pull request Jul 25, 2018
DEV: Phstsai/prometheus client
Former-commit-id: c89a669ec579d4ed9af275652266b3ccb828acf8 [formerly c89a669ec579d4ed9af275652266b3ccb828acf8 [formerly 4481511]]
Former-commit-id: 35060b6ecc503a15499dbc6277857d0fc2d16ce7
Former-commit-id: 51af2f6
John-Lin pushed a commit that referenced this pull request Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants