Commit 428d2af
[nr-k8s-otel-collector] kube job related metric optimization (#1747)
<!--
Thank you for contributing to New Relic's Helm charts. Before you submit
this PR we'd like to
make sure you are aware of our technical requirements:
*
https://github.com/newrelic-experimental/helm-charts/blob/master/CONTRIBUTING.md#technical-requirements
For a quick overview across what we will look at reviewing your PR,
please read
our review guidelines:
*
https://github.com/newrelic-experimental/helm-charts/blob/master/REVIEW_GUIDELINES.md
Following our best practices right from the start will accelerate the
review process and
help get your PR merged quicker.
When updates to your PR are requested, please add new commits and do not
squash the
history. This will make it easier to identify new changes. The PR will
be squashed
anyways when it is merged. Thanks.
For fast feedback, please @-mention maintainers that are listed in the
Chart.yaml file.
Please make sure you test your changes before you push them. Once
pushed, a Github Action
will run across your changes and do some initial checks and linting.
These checks run
very quickly. Please check the results. We would like these checks to
pass before we
even continue reviewing your changes.
-->
#### Is this a new chart
#### What this PR does / why we need it:
A quick scan of cluster which is heavy on jobs had the following no of
metrics in a 1 hour window
```
Metric Name,Metrics
kube_job_complete,7253178
kube_job_status_failed,2449419
kube_job_spec_parallelism,2428569
kube_job_status_start_time,2428569
kube_job_status_active,2428569
kube_job_created,2428569
kube_job_spec_completions,2428569
kube_job_status_succeeded,2428569
kube_job_owner,2428569
kube_job_status_completion_time,2417726
newrelic.goldenmetrics.infra.kubernetes_job.podsActive,2363142
newrelic.goldenmetrics.infra.kubernetes_job.podsSucceeded,2363083
newrelic.goldenmetrics.infra.kubernetes_job.podsFailed,2362910
newrelic.goldenmetrics.infra.kubernetes_job.completedAt,2352631
kube_pod_container_status_phase,1583100
kube_pod_status_ready,1522572
kube_pod_status_scheduled,1522572
kube_pod_container_status_ready,527700
kube_pod_container_info,527700
kube_pod_container_status_restarts_total,514736
kube_pod_status_scheduled_time,507524
kube_pod_status_phase,507524
kube_pod_created,507524
kube_pod_owner,507524
kube_pod_info,505966
newrelic.goldenmetrics.infra.kubernetes_pod.podScheduled,494193
newrelic.goldenmetrics.infra.kubernetes_pod.podReadiness,494190
container_network_receive_errors_total,379522
container_network_transmit_errors_total,377702
container_network_transmit_bytes_total,238746
container_network_receive_bytes_total,231011
apiserver_storage_objects,211692
container_spec_memory_limit_bytes,126501
container_memory_working_set_bytes,126261
container_cpu_usage_seconds_total,123971
kube_deployment_status_condition,118578
kube_replicaset_owner,95498
kube_pod_container_resource_requests,59581
kube_pod_status_ready_time,52883
kube_pod_container_resource_limits,36167
kube_service_created,34200
kube_service_info,34200
kube_service_spec_type,34200
kube_job_failed,31635
container.filesystem.usage,20385
container.memory.usage,20385
container.filesystem.capacity,20385
newrelic.goldenmetrics.infra.container.memoryUsage,20178
newrelic.goldenmetrics.infra.container.storageUsage,20178
kube_deployment_status_replicas_unavailable,19823
kube_deployment_status_replicas_updated,19823
kube_deployment_spec_replicas,19823
kube_deployment_metadata_generation,19823
kube_deployment_status_replicas_available,19823
kube_deployment_status_replicas_ready,19823
kube_deployment_created,19823
kube_deployment_status_observed_generation,19823
kube_deployment_status_replicas,19823
newrelic.goldenmetrics.infra.kubernetes_deployment.podsAvailable,19250
newrelic.goldenmetrics.infra.kubernetes_deployment.podsDesired,19248
k8s.pod.network.io,18494
kube_deployment_spec_strategy_rollingupdate_max_surge,18446
container.cpu.usage,16665
k8s.pod.filesystem.available,14304
k8s.pod.memory.working_set,14304
k8s.pod.filesystem.capacity,14304
k8s.pod.filesystem.usage,14304
system.filesystem.usage,14080
container_cpu_cfs_periods_total,13163
container_cpu_cfs_throttled_periods_total,13140
kube_persistentvolume_status_phase,12890
system.disk.operation_time,10212
system.disk.operations,10212
kube_node_status_allocatable,9942
kube_node_status_condition,8445
kube_daemonset_status_updated_number_scheduled,8444
kube_daemonset_status_number_ready,8444
kube_daemonset_status_current_number_scheduled,8444
kube_daemonset_status_number_misscheduled,8444
kube_daemonset_status_number_available,8444
kube_daemonset_created,8444
kube_daemonset_status_desired_number_scheduled,8444
kube_daemonset_status_number_unavailable,8444
newrelic.goldenmetrics.infra.kubernetes_daemonset.podsDesired,8216
newrelic.goldenmetrics.infra.kubernetes_daemonset.podsReady,8215
system.filesystem.utilization,7040
system.disk.io_time,5106
system.cpu.utilization,4475
system.memory.usage,4475
kube_statefulset_status_replicas_updated,3234
kube_statefulset_created,3234
kube_statefulset_persistentvolumeclaim_retention_policy,3234
kube_statefulset_status_current_revision,3234
kube_statefulset_status_replicas_available,3234
kube_statefulset_status_replicas,3234
kube_statefulset_replicas,3234
kube_statefulset_status_replicas_ready,3234
kube_statefulset_status_replicas_current,3234
newrelic.goldenmetrics.infra.kubernetes_statefulset.podsDesired,3127
newrelic.goldenmetrics.infra.kubernetes_statefulset.podsReady,3127
kube_persistentvolume_capacity_bytes,2578
kube_persistentvolume_created,2578
kube_persistentvolume_info,2573
newrelic.goldenmetrics.infra.kubernetes_persistentvolume.requestedStorageBytes,2513
newrelic.goldenmetrics.infra.kubernetes_persistentvolume.createdAt,2513
kube_persistentvolumeclaim_resource_requests_storage_bytes,2098
kube_persistentvolumeclaim_created,2098
kube_persistentvolumeclaim_status_phase,2098
kube_persistentvolumeclaim_info,2096
process_resident_memory_bytes,2089
go_threads,2089
go_goroutines,2089
newrelic.goldenmetrics.infra.kubernetes_persistentvolumeclaim.requestedStorageBytes,2045
newrelic.goldenmetrics.infra.kubernetes_persistentvolumeclaim.createdAt,2045
system.memory.utilization,1790
system.network.errors,1760
system.network.packets,1760
system.network.io,1760
system.cpu.load_average.5m,895
system.cpu.load_average.1m,895
system.cpu.load_average.15m,895
k8s.cluster.info,835
k8s.node.filesystem.capacity,537
k8s.node.memory.available,537
k8s.node.filesystem.usage,537
k8s.node.memory.working_set,537
k8s.node.cpu.time,528
newrelic.resourceConsumption.limitValue,491
newrelic.resourceConsumption.currentValue,491
newrelic.resourceConsumption.impact,491
kube_cronjob_spec_suspend,479
kube_cronjob_status_active,479
kube_cronjob_status_last_schedule_time,479
kube_cronjob_created,479
newrelic.goldenmetrics.infra.kubernetes_cronjob.lastScheduled,466
newrelic.goldenmetrics.infra.kubernetes_cronjob.isActive,466
newrelic.goldenmetrics.infra.kubernetes_cronjob.isSuspended,466
newrelic.goldenmetrics.infra.host.memoryUsage,413
newrelic.goldenmetrics.infra.host.storageUsage,413
newrelic.goldenmetrics.infra.host.cpuUsage,413
newrelic.goldenmetrics.infra.host.networkTrafficTx,406
newrelic.goldenmetrics.infra.host.networkTrafficRx,406
k8s.node.cpu.usage,357
kube_pod_container_status_waiting_reason,238
kube_service_status_load_balancer_ingress,180
````
#### Which issue this PR fixes
*(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)`
format, will close that issue when PR gets merged)*
- fixes #
#### Special notes for your reviewer:
#### Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove
unrelated fields.]
- [x] Chart Version bumped
- [x] Variables are documented in the README.md
- [x] Title of the PR starts with chart name (e.g. `[mychartname]`)
---------
Co-authored-by: Daniel Budziwojski <dbudziwojski@newrelic.com>1 parent 140ea9c commit 428d2af
12 files changed
Lines changed: 67 additions & 17 deletions
File tree
- charts/nr-k8s-otel-collector
- examples/k8s/rendered
- templates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
464 | 473 | | |
465 | 474 | | |
466 | 475 | | |
| |||
497 | 506 | | |
498 | 507 | | |
499 | 508 | | |
500 | | - | |
| 509 | + | |
501 | 510 | | |
502 | 511 | | |
503 | 512 | | |
| |||
659 | 668 | | |
660 | 669 | | |
661 | 670 | | |
| 671 | + | |
662 | 672 | | |
663 | 673 | | |
664 | 674 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| 441 | + | |
441 | 442 | | |
| 443 | + | |
442 | 444 | | |
443 | | - | |
| 445 | + | |
444 | 446 | | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
445 | 459 | | |
446 | 460 | | |
447 | 461 | | |
| |||
472 | 486 | | |
473 | 487 | | |
474 | 488 | | |
475 | | - | |
| 489 | + | |
476 | 490 | | |
477 | 491 | | |
478 | 492 | | |
| |||
497 | 511 | | |
498 | 512 | | |
499 | 513 | | |
500 | | - | |
| 514 | + | |
501 | 515 | | |
502 | 516 | | |
503 | 517 | | |
| |||
695 | 709 | | |
696 | 710 | | |
697 | 711 | | |
| 712 | + | |
698 | 713 | | |
699 | 714 | | |
700 | 715 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
0 commit comments