-
Notifications
You must be signed in to change notification settings - Fork 486
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
Nginx Instrumentation crd #1853
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool to see more auto-instrumentation support :)
Could you please share the link where the nginx instrumentation is hosted?
type Nginx struct { | ||
// Image is a container image with Nginx SDK and auto-instrumentation. | ||
// +optional | ||
Image string `json:"image,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there already image for nginx instrumentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah it's here #1852
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's the Nginx Otel module: https://github.com/open-telemetry/opentelemetry-cpp-contrib/blob/main/instrumentation/nginx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For Nginx autoinstrumentation, default image with the instrumentation libraries is the same as for Apache Httpd - autoinstrumentation-apache-httpd
The PR needs rebasing |
} | ||
if r.Spec.Nginx.Resources.Limits == nil { | ||
r.Spec.Nginx.Resources.Limits = corev1.ResourceList{ | ||
corev1.ResourceCPU: resource.MustParse("500m"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should extract these to a constant and reuse for others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
18b51fc
to
a865360
Compare
rebased, reopenning |
* Nginx Instrumentation crd * Nginx Instruemtnation crd * chloggen * typos * make generate crd * make bundle - crd * make bundle - versions * default resources * consts for resource settings * rename resource consts * rename resource consts
Instrumentation crd for Nginx autoinstrumentation
Aside of standard fields, it contains two more:
In a nutshell, Nginx instrumentation follows similar methods to Apache HTTPD instrumentation.