Skip to content

Commit d72bbd2

Browse files
[receiver/mongodbatlas] Adds additional disk & process metrics (#36694)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Adds additional disk and process metrics to flesh out available monitoring metrics from the API. No new API calls were needed as we were already getting this data already. <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes #36525 <!--Describe what testing was performed and which tests were added.--> #### Testing New tests generated and ran. <!--Describe the documentation added.--> #### Documentation New documentation generated. <!--Please delete paragraphs that you did not use before submitting.--> --------- Co-authored-by: schmikei <[email protected]>
1 parent b6238cf commit d72bbd2

10 files changed

+506
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: mongodbatlasreceiver
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: "Adds additional metrics to the MongoDB Atlas receiver"
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [36525]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext: |
19+
Adds a number of new default disabled metrics to the MongoDB Atlas receiver. These metrics are:
20+
- mongodbatlas.disk.partition.queue.depth
21+
- mongodbatlas.disk.partition.throughput
22+
- mongodbatlas.process.cache.ratio
23+
24+
# If your change doesn't affect end users or the exported elements of any package,
25+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
26+
# Optional: The change log or logs in which this entry should be included.
27+
# e.g. '[user]' or '[user, api]'
28+
# Include 'user' if the change is relevant to end users.
29+
# Include 'api' if there is a change to a library API.
30+
# Default: '[user]'
31+
change_logs: []

receiver/mongodbatlasreceiver/documentation.md

+54-2
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ Aggregate of MongoDB Metrics DOCUMENT_METRICS_UPDATED, DOCUMENT_METRICS_DELETED,
424424
425425
DB Operation Rates
426426
427-
Aggregate of MongoDB Metrics OPCOUNTER_GETMORE, OPERATIONS_SCAN_AND_ORDER, OPCOUNTER_UPDATE, OPCOUNTER_REPL_UPDATE, OPCOUNTER_CMD, OPCOUNTER_DELETE, OPCOUNTER_REPL_DELETE, OPCOUNTER_REPL_CMD, OPCOUNTER_QUERY, OPCOUNTER_REPL_INSERT, OPCOUNTER_INSERT
427+
Aggregate of MongoDB Metrics OPCOUNTER_GETMORE, OPERATIONS_SCAN_AND_ORDER, OPCOUNTER_UPDATE, OPCOUNTER_REPL_UPDATE, OPCOUNTER_CMD, OPCOUNTER_DELETE, OPCOUNTER_REPL_DELETE, OPCOUNTER_REPL_CMD, OPCOUNTER_QUERY, OPCOUNTER_REPL_INSERT, OPCOUNTER_INSERT, OPCOUNTER_TTL_DELETED
428428
429429
| Unit | Metric Type | Value Type |
430430
| ---- | ----------- | ---------- |
@@ -434,7 +434,7 @@ Aggregate of MongoDB Metrics OPCOUNTER_GETMORE, OPERATIONS_SCAN_AND_ORDER, OPCOU
434434
435435
| Name | Description | Values |
436436
| ---- | ----------- | ------ |
437-
| operation | Type of database operation | Str: ``cmd``, ``query``, ``update``, ``delete``, ``getmore``, ``insert``, ``scan_and_order`` |
437+
| operation | Type of database operation | Str: ``cmd``, ``query``, ``update``, ``delete``, ``getmore``, ``insert``, ``scan_and_order``, ``ttl_deleted`` |
438438
| cluster_role | Whether process is acting as replica or primary | Str: ``primary``, ``replica`` |
439439
440440
### mongodbatlas.process.db.operations.time
@@ -933,6 +933,58 @@ Aggregate of MongoDB Metrics MAX_SWAP_USAGE_FREE, MAX_SWAP_USAGE_USED
933933
| ---- | ----------- | ------ |
934934
| memory_state | Memory usage type | Str: ``resident``, ``virtual``, ``mapped``, ``computed``, ``shared``, ``free``, ``used`` |
935935
936+
## Optional Metrics
937+
938+
The following metrics are not emitted by default. Each of them can be enabled by applying the following configuration:
939+
940+
```yaml
941+
metrics:
942+
<metric_name>:
943+
enabled: true
944+
```
945+
946+
### mongodbatlas.disk.partition.queue.depth
947+
948+
Disk queue depth
949+
950+
Aggregate of MongoDB Metrics DISK_QUEUE_DEPTH
951+
952+
| Unit | Metric Type | Value Type |
953+
| ---- | ----------- | ---------- |
954+
| 1 | Gauge | Double |
955+
956+
### mongodbatlas.disk.partition.throughput
957+
958+
Disk throughput
959+
960+
Aggregate of MongoDB Metrics DISK_PARTITION_THROUGHPUT_READ, DISK_PARTITION_THROUGHPUT_WRITE
961+
962+
| Unit | Metric Type | Value Type |
963+
| ---- | ----------- | ---------- |
964+
| By/s | Gauge | Double |
965+
966+
#### Attributes
967+
968+
| Name | Description | Values |
969+
| ---- | ----------- | ------ |
970+
| disk_direction | Measurement type for disk operation | Str: ``read``, ``write``, ``total`` |
971+
972+
### mongodbatlas.process.cache.ratio
973+
974+
Cache ratios represented as (%)
975+
976+
Aggregate of MongoDB Metrics CACHE_FILL_RATIO, DIRTY_FILL_RATIO
977+
978+
| Unit | Metric Type | Value Type |
979+
| ---- | ----------- | ---------- |
980+
| % | Gauge | Double |
981+
982+
#### Attributes
983+
984+
| Name | Description | Values |
985+
| ---- | ----------- | ------ |
986+
| cache_ratio_type | Cache ratio type | Str: ``cache_fill``, ``dirty_fill`` |
987+
936988
## Resource Attributes
937989
938990
| Name | Description | Values | Enabled |

receiver/mongodbatlasreceiver/internal/metadata/generated_config.go

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/mongodbatlasreceiver/internal/metadata/generated_config_test.go

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)