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

Add Prometheus parser and Kubernetes input plugin #691

Closed
wants to merge 1 commit into from

Conversation

titilambert
Copy link
Contributor

Hello !
This plugin does not use k8s client lib. It uses Prometheus client lib.
I also add the Prometheus parser.
@sparrc maybe you prefer I split the PR ? (Prometheus parser/Kubernetes input plugin)

func TestParseLineInvalidPrometheus(t *testing.T) {
parser := PrometheusParser{}
metric, err := parser.ParseLine(validUniqueLine)
assert.NotNil(t, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

change these to just one: assert.NoError

@titilambert
Copy link
Contributor Author

@sparrc Thanks for your review ! (I think I have to stop 3 AM code ...)

BTW, I feel that plugin maybe not Kubernetes specific... I could configure prometheus input plugin to get basically the same result ... maybe I should make more work to get better metric ?

@sparrc
Copy link
Contributor

sparrc commented Feb 15, 2016

@titilambert I agree I think it would be better to try to improve the prometheus input plugin to get this information, if possible

@titilambert
Copy link
Contributor Author

Closing because of improving prometheus plugin #707

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.

2 participants