-
Notifications
You must be signed in to change notification settings - Fork 245
[nr-k8s-otel-collector] make collector observability resource attributes configurable #2133
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -827,6 +827,11 @@ data: | |
| endpoint: {{ include "nrKubernetesOtel.endpoint" . }} | ||
| headers: | ||
| api-key: ${env:NR_LICENSE_KEY} | ||
| resource: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we stamp the cluster name through a traditional processor in a pipeline instead? This leaves the door open to stamping other attributes from processors like |
||
| k8s.cluster.name: {{ include "newrelic.common.cluster" . }} | ||
| {{- range $k, $v := .Values.collectorObservability.resource }} | ||
| {{ $k }}: {{ $v }} | ||
| {{- end }} | ||
| {{- end }} | ||
| pipelines: | ||
| {{- include "nrKubernetesOtel.daemonset.configMap.extraConfig.pipelines" . | nindent 8 }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -804,6 +804,11 @@ data: | |
| endpoint: {{ include "nrKubernetesOtel.endpoint" . }} | ||
| headers: | ||
| api-key: ${env:NR_LICENSE_KEY} | ||
| resource: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same thing here. |
||
| k8s.cluster.name: {{ include "newrelic.common.cluster" . }} | ||
| {{- range $k, $v := .Values.collectorObservability.resource }} | ||
| {{ $k }}: {{ $v }} | ||
| {{- end }} | ||
| {{- end }} | ||
| pipelines: | ||
| {{- include "nrKubernetesOtel.deployment.configMap.extraConfig.pipelines" . | nindent 8 }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -332,9 +332,18 @@ collectorObservability: | |
| # -- (bool) Specifies whether the collector reports its own metrics | ||
| # @default -- `false` | ||
| enabled: false | ||
| # -- Specifies the interval at which the collector reports its metrics (in milliseconds) | ||
| # @default -- `60000` | ||
| scrapeIntervalMs: 60000 | ||
| # -- Specifies the interval at which the collector reports its metrics (in seconds) | ||
| # @default -- `60` | ||
| scrapeIntervalSeconds: 60 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This value should probably remain as |
||
| # -- Additional resource attributes to attach to its internal metrics. | ||
| # k8s.cluster.name is automatically populated from the cluster value. | ||
| # Useful for adding attributes such as env to distinguish between environments | ||
| # in multi-cluster deployments. | ||
| # Example: | ||
| # resource: | ||
| # env: production | ||
| # @default -- `{}` | ||
| resource: {} | ||
|
|
||
| # -- (bool) Send only the [metrics required](https://github.com/newrelic/helm-charts/tree/master/charts/nr-k8s-otel-collector/docs/metrics-lowDataMode.md) to light up the NR kubernetes UI | ||
| # @default -- `true` | ||
|
|
||
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.
You don't need to bump this version anymore, our CICD process will do so on release.