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): simplify custom application metrics #2716

Merged
merged 21 commits into from Dec 22, 2022

Conversation

sumo-drosiek
Copy link
Contributor

@sumo-drosiek sumo-drosiek commented Dec 20, 2022

Description
  • auto-generate list of endpoints for telegraf configuration
  • use sumologic.metrics.serviceMonitors to keep our serviceMonitors configuration
  • left additionalServiceMonitors empty, so customer doesn't need to copy anything

Checklist
  • Changelog updated
Testing performed
  • Redeploy fluentd and fluentd-events pods
  • Confirm events, logs, and metrics are coming in

@github-actions github-actions bot added the documentation documentation label Dec 20, 2022
@sumo-drosiek sumo-drosiek changed the title docs(metrics): add document about collecting custom application metrics docs(metrics): simplify custom application metrics Dec 20, 2022
@sumo-drosiek sumo-drosiek force-pushed the drosiek-user-custom-metrics branch 2 times, most recently from e1ac9e3 to 875fd43 Compare December 20, 2022 13:15
@sumo-drosiek sumo-drosiek added this to the v3.0 milestone Dec 20, 2022
@sumo-drosiek sumo-drosiek marked this pull request as ready for review December 20, 2022 13:27
@sumo-drosiek sumo-drosiek requested a review from a team as a code owner December 20, 2022 13:27
@sumo-drosiek sumo-drosiek changed the title docs(metrics): simplify custom application metrics feat(metrics): simplify custom application metrics Dec 20, 2022
Copy link
Contributor

@swiatekm-sumo swiatekm-sumo left a comment

Choose a reason for hiding this comment

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

Can you also add one or two template tests to check if metric.remotewrites works correctly with both our ServiceMonitors and the additional ones?

docs/collecting-application-metrics.md Outdated Show resolved Hide resolved
docs/collecting-application-metrics.md Outdated Show resolved Hide resolved
@sumo-drosiek
Copy link
Contributor Author

Can you also add one or two template tests to check if metric.remotewrites works correctly with both our ServiceMonitors and the additional ones?

@swiatekm-sumo I assume you were meaning metrics.serviceMonitors

@@ -0,0 +1,15 @@
kube-prometheus-stack:
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nicer if this was a Go test instead, we could avoid the output templates and just check if the servicemonitor names in the list are right.

@sumo-drosiek sumo-drosiek force-pushed the drosiek-user-custom-metrics branch 2 times, most recently from 0630627 to dbbc48a Compare December 21, 2022 13:49
sumo-drosiek and others added 12 commits December 22, 2022 09:52
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Co-authored-by: Mikołaj Świątek <mswiatek@sumologic.com>
Co-authored-by: Mikołaj Świątek <mswiatek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
sumo-drosiek and others added 8 commits December 22, 2022 10:08
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Co-authored-by: Andrzej Stencel <astencel@sumologic.com>
…true

Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Co-authored-by: Andrzej Stencel <astencel@sumologic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants