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

optimize remote write settings #250

Merged
merged 2 commits into from Oct 24, 2019
Merged

Conversation

frankreno
Copy link
Contributor

This PR simplfies the remote write configuration and also imporves memory and CPU performance by reducing the number of remote_write blocks, which are all seperate queues that read from the WAL. Testing shows roughly a 3x reduction in memory and CPU usage.

@frankreno
Copy link
Contributor Author

It also makes the configuration simpler by having a 1:1 remote write block per source/target, so its easier to add things (and exclude them)

regex: 'fluentbit.*'
sourceLabels: [__name__]
# kube state metrics
- url: http://collection-sumologic.sumologic.svc.cluster.local:9888/prometheus.metrics.state
Copy link
Contributor

Choose a reason for hiding this comment

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

Will you need to change the plugin as tags are changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't believe so, but need @samjsong to confirm. In my testing, all things worked like I expected, data volume diffs were accounted for. I do not believe we depend on on the tag in the plugins as we use a label to handle the datapoint stuff.

Copy link
Contributor

Choose a reason for hiding this comment

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

we do depend on the tag in the plugins, we no longer do the retag based on job to make it clearer to the user where the metrics were going. In this case the tags are correct since we check for <match prometheus.metrics.state**> etc.

Copy link
Contributor

@samjsong samjsong left a comment

Choose a reason for hiding this comment

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

LGTM

@frankreno frankreno merged commit 8db9927 into master Oct 24, 2019
@perk-sumo perk-sumo deleted the optimize-remote-write-memory branch May 21, 2020 16:32
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.

None yet

4 participants