forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[receiver/couchdbreceiver] Fix couchdbreceiver not allowing user metr…
…ics configuration (open-telemetry#9728) * fix issue where receiver/couchdbreceiver did not allow user specified metrics * include issue in changelog entry * fix import order
- Loading branch information
1 parent
c68688b
commit 1aec8bd
Showing
6 changed files
with
104 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
62 changes: 62 additions & 0 deletions
62
receiver/couchdbreceiver/testdata/scraper/only_db_ops.json
This file contains 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,62 @@ | ||
{ | ||
"resourceMetrics": [ | ||
{ | ||
"resource": { | ||
"attributes": [ | ||
{ | ||
"key": "couchdb.node.name", | ||
"value": { | ||
"stringValue": "" | ||
} | ||
} | ||
] | ||
}, | ||
"scopeMetrics": [ | ||
{ | ||
"scope": { | ||
"name": "otelcol/couchdbreceiver" | ||
}, | ||
"metrics": [ | ||
{ | ||
"name": "couchdb.database.operations", | ||
"description": "The number of database operations.", | ||
"unit": "{operations}", | ||
"sum": { | ||
"dataPoints": [ | ||
{ | ||
"attributes": [ | ||
{ | ||
"key": "operation", | ||
"value": { | ||
"stringValue": "reads" | ||
} | ||
} | ||
], | ||
"startTimeUnixNano": "1651674345801839000", | ||
"timeUnixNano": "1651674345801933000", | ||
"asInt": "38" | ||
}, | ||
{ | ||
"attributes": [ | ||
{ | ||
"key": "operation", | ||
"value": { | ||
"stringValue": "writes" | ||
} | ||
} | ||
], | ||
"startTimeUnixNano": "1651674345801839000", | ||
"timeUnixNano": "1651674345801933000", | ||
"asInt": "39" | ||
} | ||
], | ||
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", | ||
"isMonotonic": true | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |