-
Notifications
You must be signed in to change notification settings - Fork 857
Add /_admin/metrics/v2
DocuBlock
#14324
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
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0734142
Add deprecation warning to old metrics endpoint
Simran-B dc1ca76
Add DocuBlock for /_admin/metrics/v2
Simran-B 125116b
Try to make plain curl examples shortable
Simran-B dbfd412
Strip whitespace from line
Simran-B 6b45c5d
Merge branch '3.8' of https://github.com/arangodb/arangodb into docum…
KVS85 d5658fb
Update get_admin_metrics_v2.md
KVS85 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add DocuBlock for /_admin/metrics/v2
- Loading branch information
commit dc1ca76cf9dcc98eba08393864a605a770bc2c29
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
Documentation/DocuBlocks/Rest/Administration/get_admin_metrics_v2.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
@startDocuBlock get_admin_metrics_v2 | ||
@brief return the current instance metrics | ||
|
||
@RESTHEADER{GET /_admin/metrics/v2, Read the metrics, getMetricsV2} | ||
|
||
@RESTQUERYPARAMETERS | ||
|
||
@RESTQUERYPARAM{serverId,string,optional} | ||
Returns metrics of the specified server. If no serverId is given, the asked | ||
server will reply. This parameter is only meaningful on Coordinators. | ||
|
||
@RESTDESCRIPTION | ||
Returns the instance's current metrics in Prometheus format. The | ||
returned document collects all instance metrics, which are measured | ||
at any given time and exposes them for collection by Prometheus. | ||
|
||
The document contains different metrics and metrics groups dependent | ||
on the role of the queried instance. All exported metrics are | ||
published with the prefix `arangodb_` to distinguish them from other | ||
collected data. | ||
|
||
The API then needs to be added to the Prometheus configuration file | ||
for collection. | ||
|
||
@RESTRETURNCODES | ||
|
||
@RESTRETURNCODE{200} | ||
Metrics were returned successfully. | ||
|
||
@RESTRETURNCODE{404} | ||
The metrics API may be disabled using `--server.export-metrics-api false` | ||
setting in the server. In this case, the result of the call indicates the API | ||
to be not found. | ||
|
||
@EXAMPLES | ||
|
||
@EXAMPLE_ARANGOSH_RUN{RestAdminMetricsV2} | ||
var url = "/_admin/metrics/v2"; | ||
var response = logCurlRequest('GET', url); | ||
|
||
assert(response.code === 200); | ||
|
||
logPlainResponse(response); | ||
@END_EXAMPLE_ARANGOSH_RUN | ||
@endDocuBlock |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.