Skip to content

[cloud] Add Upcloud as cloud entity#2789

Closed
paulojmdias wants to merge 2 commits into
open-telemetry:mainfrom
paulojmdias:feat/upcloud
Closed

[cloud] Add Upcloud as cloud entity#2789
paulojmdias wants to merge 2 commits into
open-telemetry:mainfrom
paulojmdias:feat/upcloud

Conversation

@paulojmdias
Copy link
Copy Markdown
Member

@paulojmdias paulojmdias commented Sep 21, 2025

Relates to: open-telemetry/opentelemetry-collector-contrib#42802

Changes

This PR introduces new cloud.provider and cloud.platform values for Upcloud (upcloud) and Upcloud Compute (upcloud_compute).
These additions align with the new Upcloud resource detection processor in the Collector and ensure consistent attribute naming across all resources.

Merge requirement checklist

  • CONTRIBUTING.md guidelines followed.
  • Change log entry added, according to the guidelines in When to add a changelog entry.
    • If your PR does not need a change log, start the PR title with [chore]
  • Links to the prototypes or existing instrumentations (when adding or changing conventions)

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
@paulojmdias paulojmdias requested review from a team as code owners September 21, 2025 21:47
@github-actions github-actions Bot added enhancement New feature or request area:cloud labels Sep 21, 2025
atoulme pushed a commit to open-telemetry/opentelemetry-collector-contrib that referenced this pull request Oct 4, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

This PR adds support for resource detection in Upcloud.

I'm proposing to be a code owner for this detector 🙌

Semantic Conventions PR:
open-telemetry/semantic-conventions#2789

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #42801

<!--Describe what testing was performed and which tests were added.-->
#### Testing

Tests added and also tested on an Upcloud instance, as we can see the
output below.

```sh
2025-09-21T21:37:02.682Z	info	service@v0.135.1-0.20250911155607-37a3ace6274c/service.go:205	Starting otelcontribcol...	{"resource": {"service.instance.id": "208133c3-f741-4f28-bdbd-ecafbddcf0ef", "service.name": "otelcontribcol", "service.version": "0.135.0-dev"}, "Version": "0.135.0-dev", "NumCPU": 1}
2025-09-21T21:37:02.682Z	info	extensions/extensions.go:41	Starting extensions...	{"resource": {"service.instance.id": "208133c3-f741-4f28-bdbd-ecafbddcf0ef", "service.name": "otelcontribcol", "service.version": "0.135.0-dev"}}
2025-09-21T21:37:02.683Z	info	internal/resourcedetection.go:137	began detecting resource information	{"resource": {"service.instance.id": "208133c3-f741-4f28-bdbd-ecafbddcf0ef", "service.name": "otelcontribcol", "service.version": "0.135.0-dev"}, "otelcol.component.id": "resourcedetection", "otelcol.component.kind": "processor", "otelcol.pipeline.id": "metrics", "otelcol.signal": "metrics"}
2025-09-21T21:37:02.684Z	info	internal/resourcedetection.go:188	detected resource information	{"resource": {"service.instance.id": "208133c3-f741-4f28-bdbd-ecafbddcf0ef", "service.name": "otelcontribcol", "service.version": "0.135.0-dev"}, "otelcol.component.id": "resourcedetection", "otelcol.component.kind": "processor", "otelcol.pipeline.id": "metrics", "otelcol.signal": "metrics", "resource": {"cloud.provider":"upcloud","cloud.region":"es-mad1","host.id":"00133099-f1fd-4ed2-b1c7-d027eb43a8f5","host.name":"ubuntu-1cpu-1gb-es-mad1"}}
2025-09-21T21:37:02.684Z	info	service@v0.135.1-0.20250911155607-37a3ace6274c/service.go:228	Everything is ready. Begin running and processing data.	{"resource": {"service.instance.id": "208133c3-f741-4f28-bdbd-ecafbddcf0ef", "service.name": "otelcontribcol", "service.version": "0.135.0-dev"}}
2025-09-21T21:37:03.685Z	info	Metrics	{"resource": {"service.instance.id": "208133c3-f741-4f28-bdbd-ecafbddcf0ef", "service.name": "otelcontribcol", "service.version": "0.135.0-dev"}, "otelcol.component.id": "debug", "otelcol.component.kind": "exporter", "otelcol.signal": "metrics", "resource metrics": 3, "metrics": 5, "data points": 17}
2025-09-21T21:37:03.685Z	info	ResourceMetrics #0
Resource SchemaURL: https://opentelemetry.io/schemas/1.9.0
Resource attributes:
     -> cloud.provider: Str(upcloud)
     -> cloud.region: Str(es-mad1)
     -> host.id: Str(00133099-f1fd-4ed2-b1c7-d027eb43a8f5)
     -> host.name: Str(ubuntu-1cpu-1gb-es-mad1)
```

<!--Describe the documentation added.-->
#### Documentation

Updated the README.md with this new detector.

<!--Please delete paragraphs that you did not use before submitting.-->

---------

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 7, 2025

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions Bot added the Stale label Oct 7, 2025
@paulojmdias
Copy link
Copy Markdown
Member Author

/label -stale

@github-actions github-actions Bot removed the Stale label Oct 8, 2025
@github-actions
Copy link
Copy Markdown

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions Bot added the Stale label Oct 23, 2025
@paulojmdias
Copy link
Copy Markdown
Member Author

/label -stale

@github-actions github-actions Bot removed the Stale label Oct 24, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 8, 2025

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions Bot added the Stale label Nov 8, 2025
@paulojmdias
Copy link
Copy Markdown
Member Author

/label -stale

@github-actions github-actions Bot removed the Stale label Nov 10, 2025
…to feat/upcloud

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
@github-actions
Copy link
Copy Markdown

This PR contains changes to area(s) that do not have an active SIG/project and will be auto-closed:

  • cloud

Such changes may be rejected or put on hold until a new SIG/project is established.

Please refer to the Semantic Convention Areas
document to see the current active SIGs and also to learn how to kick start a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant