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 vts-sum-key config flag #2356

Merged
merged 1 commit into from
Apr 17, 2018
Merged

Conversation

nicknovitski
Copy link
Contributor

Currently, vts metrics use the server zone key * to indicate "all other server zones combined." The prometheus exporter translates this into a label with the same value. I use a datadog agent to read the prometheus metrics, which turns the label into a "tag", but strips out characters which the datadog service cannot accept, including *. This means the label value * becomes an empty string tag value.

So for example the prometheus metric nginx_requests_total{ingress_class="nginx",namespace="",server_zone="*"} is turned into a datadog metric named nginx.requests_total, with the tags ingress_class:nginx, namespace:, and server_zone:.

This isn't so bad, except the same thing happens to metrics for the server zone which includes (I believe) the default backend and metrics server, labeled server_zone="_". So I have different metrics numbers with the same tags, getting sent to datadog all the time, which makes monitoring seemingly impossible.

The workaround I've done is to create a custom nginx.conf template exactly like the normal one, except with one additional line: vhost_traffic_status_display_sum_key total; And maybe someday I'll just use prometheus instead of datadog. But in the meantime, I thought this would be a nice feature to have.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 17, 2018
@codecov-io
Copy link

codecov-io commented Apr 17, 2018

Codecov Report

Merging #2356 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2356      +/-   ##
==========================================
+ Coverage   39.11%   39.12%   +0.01%     
==========================================
  Files          73       73              
  Lines        5203     5204       +1     
==========================================
+ Hits         2035     2036       +1     
  Misses       2878     2878              
  Partials      290      290
Impacted Files Coverage Δ
internal/file/bindata.go 57.42% <ø> (ø) ⬆️
internal/ingress/controller/config/config.go 98.21% <100%> (+0.01%) ⬆️

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 085263f...8886b8a. Read the comment docs.

@nicknovitski
Copy link
Contributor Author

Okay, I'll give it a try: /assign @dcbw

@nicknovitski
Copy link
Contributor Author

Updated to resolve bindata conflict.

@aledbf aledbf requested a review from gianrubio April 17, 2018 18:42
@gianrubio
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 17, 2018
@aledbf
Copy link
Member

aledbf commented Apr 17, 2018

/lgtm

@aledbf
Copy link
Member

aledbf commented Apr 17, 2018

/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 17, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aledbf, gianrubio, nicknovitski

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit c37ed7e into kubernetes:master Apr 17, 2018
@aledbf
Copy link
Member

aledbf commented Apr 17, 2018

@gianrubio thanks for the review.

@nicknovitski nicknovitski deleted the vts-sum-key branch April 18, 2018 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants