Skip to content

Commit 8220ed9

Browse files
Merge branch 'main' into log-endpoints
2 parents 746e8ab + cded871 commit 8220ed9

File tree

14 files changed

+298
-4
lines changed

14 files changed

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

Makefile.Common

+4-4
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,11 @@ CHANGED_GOLANG_SOURCES?=$(shell git diff main --name-only | grep -E '.*\.go$$' |
268268
.PHONY: for-affected-components
269269
for-affected-components:
270270
@echo "Checking for affected components..."
271-
@if [ -z '$(CHANGED_GOLANG_SOURCES)' ]; then \
271+
@if [ -z '$${CHANGED_GOLANG_SOURCES}' ]; then \
272272
echo "No go source changes detected in shippable code."; \
273273
else \
274274
cd $(SRC_ROOT); \
275-
DEPENDENT_PKGS=$$(echo $(CHANGED_GOLANG_SOURCES) | xargs sed -n 's|^package .* // import "\(.*\)"$$|\1|p' | uniq); \
275+
DEPENDENT_PKGS=$$(echo $${CHANGED_GOLANG_SOURCES} | xargs sed -n 's|^package .* // import "\(.*\)"$$|\1|p' | uniq); \
276276
if [ -z '$${DEPENDENT_PKGS}' ]; then \
277277
echo "No other package depends on the one being changed."; \
278278
else \
@@ -289,11 +289,11 @@ CHANGED_GOLANG_TESTS?=$(shell git diff main --name-only | grep -E '.*_test\.go$$
289289
.PHONY: run-changed-tests
290290
run-changed-tests:
291291
@echo "Checking for affected tests..."
292-
@if [ -z '$(CHANGED_GOLANG_TESTS)' ]; then \
292+
@if [ -z '$${CHANGED_GOLANG_TESTS}' ]; then \
293293
echo "No go test changes detected."; \
294294
else \
295295
cd $(SRC_ROOT); \
296-
AFFECTED_TEST_DIRS=$$(echo $(CHANGED_GOLANG_TESTS) | tr ' ' '\n' | xargs dirname | uniq); \
296+
AFFECTED_TEST_DIRS=$$(echo $${CHANGED_GOLANG_TESTS} | tr ' ' '\n' | xargs dirname | uniq); \
297297
if [ -z '$${AFFECTED_TEST_DIRS}' ]; then \
298298
echo "Failed to find the affected test directories."; \
299299
else \

processor/geoipprocessor/internal/provider/maxmindprovider/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# MaxMind GeoIP Provider
22

3+
> Use of MaxMind and other geolocation databases are subject to applicable licenses and terms governing the databases. Consult the database provider for the latest applicable terms.
4+
35
This package provides a MaxMind GeoIP provider for use with the OpenTelemetry GeoIP processor. It leverages the [geoip2-golang package](https://github.com/oschwald/geoip2-golang) to query geographical information associated with IP addresses from MaxMind databases. See recommended clients: https://dev.maxmind.com/geoip/docs/databases#api-clients
46

57
# Features

receiver/jmxreceiver/supported_jars.go

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ func oldFormatProperties(c *Config, j supportedJar) error {
3131
// If you change this variable name, please open an issue in opentelemetry-java-contrib
3232
// so that repository's release automation can be updated
3333
var jmxMetricsGathererVersions = map[string]supportedJar{
34+
"6c1d4c82d76f2826acf43981ef0b222f55eea841aebcc604a0daafbb2bddb93c": {
35+
version: "1.43.0-alpha",
36+
jar: "JMX metrics gatherer",
37+
},
3438
"e19041d478c2f3641cee499bae74baa66c97c193b0012369deeb587d5add958a": {
3539
version: "1.42.0-alpha",
3640
jar: "JMX metrics gatherer",

receiver/vcenterreceiver/documentation.md

+26
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,32 @@ The vSAN throughput of a virtual machine.
802802
| ---- | ----------- | ------ |
803803
| direction | The type of vSAN throughput. | Str: ``read``, ``write`` |
804804
805+
## Optional Metrics
806+
807+
The following metrics are not emitted by default. Each of them can be enabled by applying the following configuration:
808+
809+
```yaml
810+
metrics:
811+
<metric_name>:
812+
enabled: true
813+
```
814+
815+
### vcenter.host.memory.capacity
816+
817+
Total memory capacity of the host system.
818+
819+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
820+
| ---- | ----------- | ---------- | ----------------------- | --------- |
821+
| MiBy | Sum | Double | Cumulative | false |
822+
823+
### vcenter.vm.memory.granted
824+
825+
The amount of memory that is granted to a VM.
826+
827+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
828+
| ---- | ----------- | ---------- | ----------------------- | --------- |
829+
| MiBy | Sum | Int | Cumulative | false |
830+
805831
## Resource Attributes
806832
807833
| Name | Description | Values | Enabled |

receiver/vcenterreceiver/internal/metadata/generated_config.go

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

receiver/vcenterreceiver/internal/metadata/generated_config_test.go

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

receiver/vcenterreceiver/internal/metadata/generated_metrics.go

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

0 commit comments

Comments
 (0)