-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[receiver/splunkenterprise] Add scraping of two initial metrics #24800
Conversation
ed3b209
to
9a15947
Compare
9a15947
to
dca4400
Compare
func newSplunkEntClient(cfg *Config) splunkEntClient { | ||
// tls party | ||
tr := &http.Transport{ | ||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we get this from the config instead? Does it have to be insecure always? Not a blocker but needs a follow up issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @atoulme , lets us the confighttp
package to save needed to reimplement existing auth.
// auth header every time we make a new request | ||
authString := fmt.Sprintf("%s:%s", cfg.Username, cfg.Password) | ||
auth64 := base64.StdEncoding.EncodeToString([]byte(authString)) | ||
basicAuth := fmt.Sprintf("Basic %s", auth64) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could maybe do this via basicauth extension. A follow up also
receiver/splunkenterprisereceiver/testdata/scraper/expected.yaml
Outdated
Show resolved
Hide resolved
33d3f7f
to
a45c8aa
Compare
3abd80f
to
7ce462f
Compare
Description: First pass at implementing the component. This PR is primarily focused on implementing the components architecture with less focus on the collection of actual Splunk performance data. This was done to keep the PR relatively short. Considerable work has however been done to implement the receiver logic and accompanying tests.
Link to tracking Issue: 12667
Testing: Unit testing on each internal component
Documentation: README.md