Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[receiver/googlecloudmonitoringreceiver] Transform GCP Timeseries Data to OTel Metrics Conversion Pipeline #34677

Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
7b08cf8
Feat:
abhishek-at-cloudwerx Aug 13, 2024
534ccbe
Feat:
abhishek-at-cloudwerx Aug 13, 2024
7260457
Merge branch 'main' into googlecloudmonitoringreceiver-phase2
abhishek-at-cloudwerx Aug 14, 2024
fbea738
Fix:
abhishek-at-cloudwerx Aug 14, 2024
f6ca518
Refactor:
abhishek-at-cloudwerx Aug 16, 2024
7c9bbf4
Merge branch 'main' into googlecloudmonitoringreceiver-phase2
abhishek-at-cloudwerx Aug 20, 2024
3762de4
Refactor:
abhishek-at-cloudwerx Aug 20, 2024
9fde71a
Merge branch 'main' into googlecloudmonitoringreceiver-phase2
abhishek-at-cloudwerx Aug 21, 2024
4f86f3d
Merge branch 'main' into googlecloudmonitoringreceiver-phase2
abhishek-at-cloudwerx Aug 21, 2024
a4767a1
Fix:
abhishek-at-cloudwerx Aug 21, 2024
bfe78b7
Fix:
abhishek-at-cloudwerx Aug 21, 2024
55611cf
Merge branch 'main' into googlecloudmonitoringreceiver-phase2
abhishek-at-cloudwerx Aug 22, 2024
27714dc
Fix:
abhishek-at-cloudwerx Aug 22, 2024
993a72c
Fix:
abhishek-at-cloudwerx Aug 22, 2024
5d21d96
Merge branch 'main' into googlecloudmonitoringreceiver-phase2
abhishek-at-cloudwerx Aug 22, 2024
24fc659
Feat:
abhishek-at-cloudwerx Aug 23, 2024
3f2d886
Fix:
abhishek-at-cloudwerx Aug 23, 2024
44e67a2
Merge branch 'main' into googlecloudmonitoringreceiver-phase2
abhishek-at-cloudwerx Aug 23, 2024
370b576
Fix:
abhishek-at-cloudwerx Aug 27, 2024
eba276d
Merge branch 'main' into googlecloudmonitoringreceiver-phase2
abhishek-at-cloudwerx Aug 27, 2024
0e2ef74
Fix:
abhishek-at-cloudwerx Aug 27, 2024
8fb8745
Merge branch 'main' into googlecloudmonitoringreceiver-phase2
abhishek-at-cloudwerx Aug 28, 2024
067ddf0
Fix:
abhishek-at-cloudwerx Aug 28, 2024
df1f1e1
Merge branch 'main' into googlecloudmonitoringreceiver-phase2
abhishek-at-cloudwerx Sep 2, 2024
b878799
Merge branch 'main' into googlecloudmonitoringreceiver-phase2
abhishek-at-cloudwerx Sep 4, 2024
067124b
Refactor:
abhishek-at-cloudwerx Sep 4, 2024
5ba4881
Fix:
abhishek-at-cloudwerx Sep 5, 2024
7a969c9
Refactor:
abhishek-at-cloudwerx Sep 5, 2024
39cf4b2
Refactor:
abhishek-at-cloudwerx Sep 5, 2024
0917ba4
Fix:
abhishek-at-cloudwerx Sep 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .chloggen/googlecloudmonitoringreceiver-phase2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: googlecloudmonitoringreceiver

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Enhancing the Google Cloud monitoring receiver to establish a client connection, scrape GCP Cloud Metrics, and transform them into an OpenTelemetry compatible format for pipeline processing.

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [33762]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext: |
- Implements client connection to Google Cloud Monitoring API.
- Scrapes timeseries data based on configured metrics.
- Converts the data into OpenTelemetry format for use in the pipeline.

# If your change doesn't affect end users or the exported elements of any package,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: [user, api]
6 changes: 3 additions & 3 deletions receiver/googlecloudmonitoringreceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ The following configuration options are supported:
```yaml
receivers:
googlecloudmonitoring:
collection_interval: 120s
collection_interval: 2m # Can be specified in seconds (s), minutes (m), or hours (h)
project_id: my-project-id
metrics_list:
- metric_name: "compute.googleapis.com/instance/cpu/usage_time"
delay: 60s
delay: 1m # Can be specified in seconds (s), minutes (m), or hours (h)
- metric_name: "connectors.googleapis.com/flex/instance/cpu/usage_time"
delay: 60s
delay: 60s # Can be specified in seconds (s), minutes (m), or hours (h)
```

- `collection_interval` (Optional): The interval at which metrics are collected. Default is 60s.
Expand Down
28 changes: 24 additions & 4 deletions receiver/googlecloudmonitoringreceiver/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,28 @@ require (
go.opentelemetry.io/collector/pdata v1.13.0
go.opentelemetry.io/collector/receiver v0.107.0
go.uber.org/zap v1.27.0
google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f
)

require (
cloud.google.com/go/auth v0.8.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.3 // indirect
cloud.google.com/go/compute/metadata v0.5.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/google/s2a-go v0.1.8 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/gax-go/v2 v2.13.0 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/oauth2 v0.22.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/time v0.6.0 // indirect
google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf // indirect
)

require (
cloud.google.com/go/monitoring v1.20.4
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
Expand Down Expand Up @@ -49,12 +68,13 @@ require (
go.opentelemetry.io/otel/sdk v1.28.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.28.0 // indirect
go.opentelemetry.io/otel/trace v1.28.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/net v0.26.0 // indirect
go.uber.org/multierr v1.11.0
golang.org/x/net v0.27.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect
google.golang.org/api v0.191.0
google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf // indirect
google.golang.org/grpc v1.65.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
google.golang.org/protobuf v1.34.2
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading
Loading