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

Filter list of control-plane app metrics #697

Merged
merged 4 commits into from
Jun 2, 2020
Merged

Conversation

sumo-drosiek
Copy link
Contributor

Description

Restrict coredns and etcd metrics

Testing performed
  • ci/build.sh
  • Redeploy fluentd and fluentd-events pods
  • Confirm events, logs, and metrics are coming in

@sumo-drosiek sumo-drosiek requested review from frankreno, vsinghal13, perk-sumo and samjsong and removed request for frankreno and vsinghal13 June 1, 2020 09:23
@sumo-drosiek sumo-drosiek marked this pull request as draft June 1, 2020 09:23
@sumo-drosiek sumo-drosiek marked this pull request as ready for review June 1, 2020 11:15
@sumo-drosiek sumo-drosiek changed the title Restricted list of control-plane app metrics Filter list of control-plane app metrics Jun 1, 2020
Copy link
Contributor

@frankreno frankreno left a comment

Choose a reason for hiding this comment

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

LGTM.

writeRelabelConfigs:
- action: keep
regex: coredns
sourceLabels: [job]
- action: keep
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious on the reason to have 2 keep blocks vs something like this:

        - url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.control-plane.coredns
           writeRelabelConfigs:
             - action: keep
               regex: coredns;coredns_cache_(size|(hits|misses)_total)|coredns_dns_request_duration_seconds_(count|sum)|coredns_(dns_request|dns_response_rcode|forward_request)_count_total|process_(cpu_seconds_total|open_fds|resident_memory_bytes)
               sourceLabels: [job,__name__]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's more clear in my personal opinion :)
I also wasn't sure how exactly works the writeRelabelConfig for such construct, but I read the docs and I don't see any risk related to that.
I can change it to be more compressed and to keep convention

Copy link
Contributor

Choose a reason for hiding this comment

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

The only reason I brought it up was just consistency like we do the other rules. I have no problem with doing it this way either.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Convention is important :D
I updated PR, need to re-test it :)

Copy link
Contributor

@vsinghal13 vsinghal13 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@perk-sumo perk-sumo left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@sumo-drosiek sumo-drosiek merged commit ad91b6d into master Jun 2, 2020
@sumo-drosiek sumo-drosiek deleted the drosiek-control-plane branch June 2, 2020 09:04
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