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

NSFS | NC |endpoint metrics should aggregated fork #7562

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

naveenpaul1
Copy link
Contributor

@naveenpaul1 naveenpaul1 commented Nov 6, 2023

Explain the changes

  1. Currently the endpoint_stats_collector just prints the metrics to log in standalone mode (no rpc_client).
  2. In addition, when combined with --forks, the metrics port does not work as expected and will just load balance each request to a different fork.
  3. NSFS Certificate doc updated

Issues: Fixed #xxx / Gap #xxx

  1. NSFS | NC | endpoint metrics should be exposed on prometheus and aggregated to parent of forks #7482

Testing Instructions:

  1. start nsfs with multiple forks and Prometheus port
  2. Hit Prometheus url and verify the values
  • Doc added/updated
  • Tests added

@nimrod-becker
Copy link
Contributor

@liranmauda @dannyzaken can you please review?

src/util/fork_utils.js Show resolved Hide resolved
src/server/system_services/stats_aggregator.js Outdated Show resolved Hide resolved
src/server/system_services/stats_aggregator.js Outdated Show resolved Hide resolved
docs/non_containerized_NSFS.md Outdated Show resolved Hide resolved
src/endpoint/endpoint.js Show resolved Hide resolved
@naveenpaul1 naveenpaul1 force-pushed the nsfs_metrics branch 6 times, most recently from 40d58be to 0138baa Compare November 28, 2023 17:10
@naveenpaul1 naveenpaul1 force-pushed the nsfs_metrics branch 3 times, most recently from fa315be to 616021a Compare November 30, 2023 05:42
@@ -452,7 +452,6 @@ async function add_account_config_file(data, accounts_path, access_keys_path, co
print_account_usage();
return;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

remove

Copy link
Contributor

@dannyzaken dannyzaken left a comment

Choose a reason for hiding this comment

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

Approving the PR.
since it's pretty large, I think we need more testing before merging, mainly to make sure that it does not affect prometheus reporting in Openshift\K8s

@naveenpaul1 naveenpaul1 force-pushed the nsfs_metrics branch 2 times, most recently from 4302979 to 8d222c8 Compare December 8, 2023 12:44
@naveenpaul1
Copy link
Contributor Author

Verified the Prometheus metrics in openshift cluster.

Screenshot from 2023-12-08 18-12-47

Signed-off-by: naveenpaul1 <napaul@redhat.com>
@naveenpaul1 naveenpaul1 merged commit 13878f4 into noobaa:master Dec 8, 2023
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants