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

Error on exporting Metrics to Google Cloud #20919

Closed
radioactive11 opened this issue Apr 17, 2023 · 3 comments
Closed

Error on exporting Metrics to Google Cloud #20919

radioactive11 opened this issue Apr 17, 2023 · 3 comments
Labels
bug Something isn't working exporter/googlecloud needs triage New item requiring triage

Comments

@radioactive11
Copy link

radioactive11 commented Apr 17, 2023

Component(s)

exporter/googlecloud

What happened?

Description

There seems to be a problem with the metric exporter. On following the guide for exporting metrics to Google Cloud, I was facing the following error (attached in log output).

Steps to Reproduce

Expected Result

Actual Result

Collector version

0.75.0

Environment information

Environment

GKE

OpenTelemetry Collector configuration

apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
  name: otel
spec:
  image: otel/opentelemetry-collector-contrib:latest
  config: |
    receivers:
      otlp:
        protocols:
          grpc:
          http:
    processors:
    exporters:
      googlecloud:
        metric:
          create_service_timeseries: true
          use_insecure: true
          prefix: "eevee"
      logging:
        loglevel: debug
    service:
      pipelines:
        traces:
          receivers: [otlp]
          processors: []
          exporters: [googlecloud]
        metrics:
          receivers: [otlp]
          processors: []
          exporters: [googlecloud]

Log output

│ 2023-04-17T09:42:48.503Z    info    service/telemetry.go:90    Setting up own telemetry...                                                                                                                                                                                   │
│ 2023-04-17T09:42:48.503Z    info    service/telemetry.go:116    Serving Prometheus metrics    {"address": ":8888", "level": "Basic"}                                                                                                                                         │
│ Error: failed to build pipelines: failed to create "googlecloud" exporter for data type "metrics": no project set in config, or found with application default credentials                                                                                                   │
│ 2023/04/17 09:42:48 collector server run finished with error: failed to build pipelines: failed to create "googlecloud" exporter for data type "metrics": no project set in config, or found with application default credentials

Additional context

No response

@radioactive11 radioactive11 added bug Something isn't working needs triage New item requiring triage labels Apr 17, 2023
@github-actions
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@damemi
Copy link
Contributor

damemi commented Apr 17, 2023

Duplicate of GoogleCloudPlatform/opentelemetry-operator-sample#34, can we please close this issue and continue discussion in the GCP repo?

@radioactive11
Copy link
Author

Sure!
Closing this and continuing on GoogleCloudPlatform/opentelemetry-operator-sample#34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working exporter/googlecloud needs triage New item requiring triage
Projects
None yet
Development

No branches or pull requests

2 participants