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

CP-25368, CP-25369, CP-25370, CP-25371: add aggregator to Helm chart #171

Open
wants to merge 1 commit into
base: feature/collector-shipper
Choose a base branch
from

Conversation

evan-cz
Copy link
Contributor

@evan-cz evan-cz commented Feb 27, 2025

By submitting a PR to this repository, you agree to the terms within the CloudZero Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.

Description

This adds the the aggregator to the helm chart.

References

Include any links supporting this change such as a:

  • GitHub Issue/PR number addressed or fixed
  • StackOverflow post
  • Support forum thread
  • Related pull requests/issues from other repos

If there are no references, simply delete this section.

Testing

To test, you'll need to specify a few values in an overrides file:

aggregator:
  enabled: true
  logging:
    level: trace
  image:
    tag: dev-214f55f01b92680014afc3b1957ba8a9e96cd56c
    pullPolicy: Always

The image tag will change from time to time, obviously, as we continue working on the code, but that one currently works well and has a few extra trace-level logs so it should be a bit easier to see activity. You also don't technically need to set the log level to trace, but it's nice to see the activity to verify that everything is communicating.

Once that's all up and running, I usually just do a kubectl -n my-namespace get pods, then look for the cz-agent-aggregator-... one (it's probably the first in the list. Once you have it, you can do something like kubectl -n my-namespace logs -f pods/cz-agent-aggregator-669789c7f8-5tdxg -c cz-agent-aggregator-collector to see the logs. You should be able to see metrics coming in from the agent.

After a while, you should also be able to do something like kubectl -n my-namespace exec cz-agent-aggregator-669789c7f8-5tdxg -- ls /cloudzero/data to see the metrics data, and of course you can copy that data out with something like kubectl -n my-namespace cp pods/cz-agent-aggregator-669789c7f8-5tdxg:/cloudzero/data/metric_....json.br data.json.br

Checklist

  • I have added documentation for new/changed functionality in this PR
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not main

@evan-cz evan-cz requested a review from a team as a code owner February 27, 2025 15:53
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.

1 participant