googlecloudplatform / opentelemetry-operator-sample Goto Github PK
View Code? Open in Web Editor NEWToolbox of recipes, samples, and guides for using the OpenTelemetry Operator on Google Cloud
License: Apache License 2.0
Toolbox of recipes, samples, and guides for using the OpenTelemetry Operator on Google Cloud
License: Apache License 2.0
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.
0.75.0
GKE
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]
│ 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
Also, please consider adding recipes for exporting metrics to Google Cloud.
Thank You!
I appreciate if someone can share example that works on .net
Similar to GoogleCloudPlatform/opentelemetry-collector-builder-sample#18, we should generate the table of contents for the main readme and subdirectory readmes in the sample-apps and recipes folders. This generation should be verified in a presubmit for new PRs
This is a problem in GKE Autopilot cluster version 1.25.6-gke.1000
.
I follow the guide from https://github.com/GoogleCloudPlatform/opentelemetry-operator-sample#prerequisites.
I installed cert-manager
and OpenTelemetry Operator.
I can't start collector, here is the error:
$ kubectl apply -f collector-config.yaml
Error from server (InternalError): error when creating "collector-config.yaml": Internal error occurred: failed calling webhook "mopentelemetrycollector.kb.io": failed to call webhook: Post "https://opentelemetry-operator-webhook-service.opentelemetry-operator-system.svc:443/mutate-opentelemetry-io-v1alpha1-opentelemetrycollector?timeout=10s": context deadline exceeded
For the samples, recipes, and even basic install, it would be nice to have diagrams so users can visualize the end state of each one.
I have followed this but there is no place to assign the serviceaccount otel-collector to the config. In the example, it's just annotating the namespace. I get permission denied in my deployment.
adding serviceAccount: "otel-collector"
doesn't help.
2022/10/21 13:41:11 failed to export to Google Cloud Trace: rpc error: code = PermissionDenied desc = The caller does not have permission
I also changed the role to admin
and no luck.
Add a recipe to build on the basic resource detection recipe using multiple sidecar collectors that report to a centralized collector service for exporting. Demonstrate auto-instrumentation across multiple namespaces and languages (#19)
This lets users see the contents of logged spans (e.g. attributes)
Locations:
Come up with a test/CI plan for making sure our recipes work on GKE (and with other GCP components)
Use a combination of the existing samples to provide a walkthrough for deploying a multi-lingual sample, for example using the NodeJS client and Java server. Add a recipe to auto-instrument an app like this
Need a basic Go project following at least the client/server model of the other apps. This could be extended to show manual instrumentation or used in demos with auto-instrumentation (once it is available for Go)
Let me know what I should do once i've installed one. It should probably link to the recipes and tell me to try one out. Or it could assume users are using the "base" example, and show how to look at that applications' spans in the collector logs.
It currently says: "Once the Collector restarts, you should see traces from your application". In the cloud trace example: https://github.com/GoogleCloudPlatform/opentelemetry-operator-sample/tree/main/recipes/cloud-trace
We should link to console.cloud.google.com/traces/list.
Do you have any predictions for auto instrumentation with GO using GKE/ASM?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.