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

feat(metrics): Add metrics.users.disabled flag #132

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

tfadeyi
Copy link
Owner

@tfadeyi tfadeyi commented Nov 18, 2023

📋 Changes

  • Introduces the --metrics.users.disabled flag, to disable user metrics like the monthly_active_users.
  • Updates the helm chart to add the metrics.users.disabled.
  • Updates the helm chart docs.

@tfadeyi tfadeyi force-pushed the disable-user-metrics-flag branch from 411e6ef to ad06fdf Compare November 18, 2023 22:02
@tfadeyi tfadeyi force-pushed the disable-user-metrics-flag branch 11 times, most recently from 85a3fc8 to 801f948 Compare December 6, 2023 20:41
@@ -62,4 +62,8 @@ jobs:
with:
version: 'latest'
- name: Run chart-testing (install)
run: ct install --config chart-testing.yaml
run: ct install --config chart-testing.yaml --helm-extra-set-args '--set=exporter.tls.disabled=true --set=auth0.domain="${{ secrets.TEST_AUTH0_DOMAIN }}" --set=auth0.clientId="$CLIENT_ID" --set=auth0.clientSecret="$CLIENT_SECRET"'
Copy link
Contributor

Choose a reason for hiding this comment

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

You can also create ci/test-values.yaml in the root of the chart directory and chart-testing will use those when it installs. The format is just regular helm values, but only overrides from default values.yaml.

Copy link
Owner Author

Choose a reason for hiding this comment

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

If I had a ci/test-values.yaml is there a way I can populate the values in the yaml with the secrets in CI?
Maybe I could use envsubst, but I'm not 100% sure

Copy link
Contributor

@hobbsh hobbsh Dec 6, 2023

Choose a reason for hiding this comment

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

Oh I missed that bit - not unless you do some envsubst, sed, etc before the install step. The secrets would need to get written as a k8s secret and then referenced in the chart.

@tfadeyi tfadeyi force-pushed the disable-user-metrics-flag branch 2 times, most recently from d784085 to 2aac16a Compare December 6, 2023 21:25
Introduces the `--metrics.users.disabled` flag, to disable user metrics
like the monthly_active_users. It updates the helm chart.

Signed-off-by: oluwole fadeyi <[email protected]>
@tfadeyi tfadeyi force-pushed the disable-user-metrics-flag branch from 2aac16a to 12649d8 Compare December 6, 2023 21:32
@tfadeyi tfadeyi merged commit a02c72e into main Dec 6, 2023
5 checks passed
@tfadeyi tfadeyi deleted the disable-user-metrics-flag branch December 6, 2023 22:35
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.

2 participants