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

Prom metrics test #1383

Merged
merged 4 commits into from
Feb 17, 2021
Merged

Prom metrics test #1383

merged 4 commits into from
Feb 17, 2021

Conversation

vepatel
Copy link
Contributor

@vepatel vepatel commented Feb 16, 2021

Proposed changes

Add tests for prometheus metrics incl. latency, queue depth and service time.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto master
  • I will ensure my PR is targeting the master branch and pulling from my branch from my own fork

tests/suite/test_prometheus_exporter.py Outdated Show resolved Hide resolved
'nginx_ingress_controller_workqueue_queue_duration_seconds_bucket{class="nginx",name="taskQueue",le=',
'nginx_ingress_controller_workqueue_queue_duration_seconds_sum{class="nginx",name="taskQueue"}',
'nginx_ingress_controller_workqueue_queue_duration_seconds_count{class="nginx",name="taskQueue"}',
'nginx_ingress_controller_upstream_server_response_latency_ms_bucket{class="nginx",code="200",pod_name=',
Copy link
Contributor

Choose a reason for hiding this comment

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

this might be a wishlist :) , but should we also check that the labels are not empty or set to the expected values? class, code, pod_name, resource_name, resource_namespace,resource_type,server,service,upstream

@vepatel vepatel merged commit 2ce32d3 into master Feb 17, 2021
@vepatel vepatel deleted the prom-metrics-test branch February 17, 2021 12:49
@lucacome lucacome added the chore Pull requests for routine tasks label Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants