E5B9 make statistics available in metrics API no matter what by jsteemann · Pull Request #14702 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

make statistics available in metrics API no matter what #14702

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

Merged
merged 2 commits into from
Aug 27, 2021

Conversation

jsteemann
Copy link
Contributor

Scope & Purpose

Follow-up to APM-106.

Previously, if --server.statistics was set to false, the metrics API
did not return any values provided by the StatisticsFeature, as the
statistics were turned off completely. This prevented the metrics API
from returning some useful process statistics (e.g. memory usage, number
of threads etc.).
This change now enables these process statistics as well as a few others
in metrics regardless of the setting of --server.statistics.

This was already the case in 3.8 and devel, but 3.7 still behaved
slightly differently.

For 3.8 and devel no changes are required, but there will be an additional
test added for these versions.

  • 💩 Bugfix (requires CHANGELOG entry)
  • 🍕 New feature (requires CHANGELOG entry, feature documentation and release notes)
  • 🔥 Performance improvement
  • 🔨 Refactoring/simplification
  • 📖 CHANGELOG entry made

Backports:

  • No backports required

Related Information

  • GitHub issue / Jira ticket number: APM-106

Testing & Verification

  • The behavior in this PR was manually tested
  • This PR adds tests that were used to verify all changes:
    • Added new integration tests (server_parameters)

Previously, if `--server.statistics` was set to `false`, the metrics API
did not return any values provided by the StatisticsFeature, as the
statistics were turned off completely. This prevented the metrics API
from returning some useful process statistics (e.g. memory usage, number
of threads etc.).
This change now enables these process statistics as well as a few others
in metrics regardless of the setting of `--server.statistics`.

This was already the case in 3.8 and devel, but 3.7 still behaved
slightly differently
@jsteemann jsteemann added this to the 3.7 milestone Aug 26, 2021
@jsteemann jsteemann requested a review from cpjulia August 26, 2021 11:44
@KVS85 KVS85 added 3 API HTTP / Driver API related 3 Metrics labels Aug 26, 2021
Copy link
Contributor
@cpjulia cpjulia left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -43,13 +45,16 @@
#include "Statistics/RequestStatistics.h"
#include "Statistics/ServerStatistics.h"
#include "Statistics/StatisticsWorker.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

is this header still in use here?

Copy link
Contributor

Choose a reason for hiding this comment

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

#include "Statistics/StatisticsWorker.h"

@KVS85 KVS85 merged commit a9f55eb into 3.7 Aug 27, 2021
@KVS85 KVS85 deleted the bug-fix-3.7/apm-106-follow-up branch August 27, 2021 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 API HTTP / Driver API related 3 Metrics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0