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

Adding ama-metrics to customer control plane #639

Closed
wants to merge 28 commits into from

Conversation

sgeannina
Copy link
Contributor

@sgeannina sgeannina commented Oct 18, 2023

Pending changes:

  • Change address "replace" to use regex
  • Remove IP address from instance
  • Show Pod name
  • Filter the CPU and memory metrics for the components. Even if the cpu/memory metrics are present in the keep list, we don't want to expose these to customers.
  • Currently all targets are disabled (easier for testing). By default we need apiserver and etcd enabled.

New:
-- Remove scraping interval from settings and keep it to 30s
-- Remove prometheus collector health from ccp
-- Add prefix to all metrics: control-plane

Nina Segares and others added 28 commits August 4, 2023 16:37
* Adding missing config for prom collector health in control plane
* Cleanup and fixes from testing

---------

Co-authored-by: Nina Segares <[email protected]>
* Adding new sidecar to sync configmap changes

---------

Co-authored-by: Nina Segares <[email protected]>
* Enable health collector

* Removing sidecar from repo

---------

Co-authored-by: Nina Segares <[email protected]>
@@ -0,0 +1,182 @@
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/oss/go/microsoft/golang:1.19 as fluent-bit-builder
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll remove this file in the final PR

scrape_configs:
- job_name: cluster-autoscaler
scrape_interval: $$SCRAPE_INTERVAL$$
follow_redirects: false
Copy link
Contributor Author

@sgeannina sgeannina Oct 18, 2023

Choose a reason for hiding this comment

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

would these files be replaced by the new configmap @bragi92 ?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I'm currently working on copying these over into my branch and creating an image based on that. I will share a PR link when its ready.

regex: (.+)
- source_labels: [ __address__, __meta_kubernetes_pod_annotation_aks_prometheus_io_port ]
action: replace
separator: ":"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we need to replace the address with "regex: (.+?)(:\d+)?" but keeping it like this while we test in standalone

@github-actions
Copy link

This PR is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Copy link

github-actions bot commented Nov 6, 2023

This PR was closed because it has been stalled for 12 days with no activity.

@github-actions github-actions bot closed this Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants