Skip to content

Commit 9c33d36

Browse files
committed
Wrapped up mongodb telegraf metrics
1 parent d1eb7d4 commit 9c33d36

File tree

14 files changed

+535
-123
lines changed

14 files changed

+535
-123
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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: mongodbreceiver
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Added new mongodb metrics to acheive parity with Telegraf
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: [37227]
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+
20+
# If your change doesn't affect end users or the exported elements of any package,
21+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22+
# Optional: The change log or logs in which this entry should be included.
23+
# e.g. '[user]' or '[user, api]'
24+
# Include 'user' if the change is relevant to end users.
25+
# Include 'api' if there is a change to a library API.
26+
# Default: '[user]'
27+
change_logs: []

receiver/mongodbreceiver/documentation.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ The number of write operations currently being processed.
2828
| ---- | ----------- | ---------- | ----------------------- | --------- |
2929
| {writes} | Sum | Int | Cumulative | false |
3030
31+
### mongodb.cache.dirty.percent
32+
33+
The percentage of WiredTiger cache that is dirty.
34+
35+
| Unit | Metric Type | Value Type |
36+
| ---- | ----------- | ---------- |
37+
| 1 | Gauge | Double |
38+
3139
### mongodb.cache.operations
3240
3341
The number of cache operations of the instance.
@@ -42,6 +50,14 @@ The number of cache operations of the instance.
4250
| ---- | ----------- | ------ |
4351
| type | The result of a cache request. | Str: ``hit``, ``miss`` |
4452
53+
### mongodb.cache.used.percent
54+
55+
The percentage of WiredTiger cache in use.
56+
57+
| Unit | Metric Type | Value Type |
58+
| ---- | ----------- | ---------- |
59+
| 1 | Gauge | Double |
60+
4561
### mongodb.collection.count
4662
4763
The number of collections.
@@ -284,6 +300,14 @@ The total time spent performing operations.
284300
| ---- | ----------- | ------ |
285301
| operation | The MongoDB operation being counted. | Str: ``insert``, ``query``, ``update``, ``delete``, ``getmore``, ``command`` |
286302
303+
### mongodb.page_faults
304+
305+
The number of page faults.
306+
307+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
308+
| ---- | ----------- | ---------- | ----------------------- | --------- |
309+
| {faults} | Sum | Int | Cumulative | true |
310+
287311
### mongodb.queries_per_sec
288312
289313
The number of queries executed per second.
@@ -366,6 +390,14 @@ The number of updates executed per second.
366390
| ---- | ----------- | ---------- |
367391
| {update}/s | Gauge | Double |
368392
393+
### mongodb.wtcache.bytes.read
394+
395+
The number of bytes read into the WiredTiger cache.
396+
397+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
398+
| ---- | ----------- | ---------- | ----------------------- | --------- |
399+
| By | Sum | Int | Cumulative | true |
400+
369401
## Optional Metrics
370402
371403
The following metrics are not emitted by default. Each of them can be enabled by applying the following configuration:

receiver/mongodbreceiver/internal/metadata/generated_config.go

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/mongodbreceiver/internal/metadata/generated_config_test.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)