Skip to content

Disable opencensus.resourcetype attribute in cluster_receiver #914

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

Merged

Conversation

dmitryax
Copy link
Contributor

@dmitryax dmitryax commented Sep 6, 2023

Disable a redundant opencensus.resourcetype resource attribute in k8s_cluster receiver. The attribute will be removed from the receiver upstream anyway, but this will happen in a deprecation process, so we need to put this config in the receiver to avoid throwing deprecation warnings.

This change doe not affect Splunk Observability users, because it has been already disabled in the signalfx exporter default translation rules.

This can be a breaking change for Splunk Platform users relying on this attribute. If required, it can added back by configuring an additional resource processor the following way:

clusterReceiver:
  config:
    processors:
      resource/add_opencensus_resourcetype:
        attributes:
        - action: insert
          key: opencensus.resourcetype
          value: k8s
    service:
      pipelines:
        metrics:
          processors: 
            - memory_limiter
            - batch
            - resource
            - resource/k8s_cluster
            - resource/add_opencensus_resourcetype

@dmitryax dmitryax requested review from a team as code owners September 6, 2023 18:41
@dmitryax dmitryax force-pushed the remove-redundant-cluster-receiver-attribute branch 3 times, most recently from b690e9c to 3e7b184 Compare September 6, 2023 18:47
@dmitryax dmitryax force-pushed the remove-redundant-cluster-receiver-attribute branch from 6b2f248 to 8278797 Compare September 6, 2023 19:37
Disable a redundant `opencensus.resourcetype` resource attribute in k8s_cluster receiver. The attribute will be removed from the receiver upstream anyway, but this will happen in a deprecation process, so we need to put this config in the receiver to avoid throwing deprecation warnings.

This change doe not affect Splunk Observability users, because it has been already disabled in the signalfx exporter default translation rules.

This can be a breaking change for Splunk Platform users relying on this attribute. If required, it can added back by configuring an additional `resource` processor.

```
clusterReceiver:
  config:
    processors:
      resource/add_opencensus_resourcetype:
        attributes:
        - action: insert
          key: opencensus.resourcetype
          value: k8s
    service:
      pipelines:
        metrics:
          processors: 
            - memory_limiter
            - batch
            - resource
            - resource/k8s_cluster
            - resource/add_opencensus_resourcetype
```
@dmitryax dmitryax force-pushed the remove-redundant-cluster-receiver-attribute branch from 8278797 to 6d07948 Compare September 6, 2023 19:43
@dmitryax dmitryax merged commit e343b34 into signalfx:main Sep 6, 2023
@dmitryax dmitryax deleted the remove-redundant-cluster-receiver-attribute branch September 6, 2023 20:01
dmitryax added a commit to dmitryax/splunk-otel-collector-chart that referenced this pull request Sep 6, 2023
This change disables signalfx exporter default translations the clusterReceiver deploymentto avoid wasting CPU cycles. Removing of `opencensus.resourcetype` attribute was the only translation applicable to k8s_cluster receiver metrics. After it the attribute was disabled on the receiver side in signalfx#914, the default translations are not needed anymore.

This can be a breaking change for Splunk Observability users who use the deprecated `translation_rules` option in signalfx exporter in clusterReceiver. The option has been deprecated for more than half a year, so we should encourage users to not use it anymore.
dmitryax added a commit that referenced this pull request Sep 6, 2023
This change disables signalfx exporter default translations the clusterReceiver deploymentto avoid wasting CPU cycles. Removing of `opencensus.resourcetype` attribute was the only translation applicable to k8s_cluster receiver metrics. After it the attribute was disabled on the receiver side in #914, the default translations are not needed anymore.

This can be a breaking change for Splunk Observability users who use the deprecated `translation_rules` option in signalfx exporter in clusterReceiver. The option has been deprecated for more than half a year, so we should encourage users to not use it anymore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants