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

[receiver/lightprometheus] OTL-2117: Limit resource attributes #3042

Merged
merged 1 commit into from
May 1, 2023

Conversation

dmitryax
Copy link
Contributor

@dmitryax dmitryax commented May 1, 2023

Limit resource attributes added by the lightprometheus receiver by default and make them configurable.

Make enabling/disabling particular attributes possible and disable the following attributes by default:

  • net.host.name:
  • net.host.port:
  • http.scheme:

To enable them back the attributes add the following configuration:

resource_attributes:
  net.host.name:
    enabled: true
  net.host.port:
    enabled: true
  http.scheme:
    enabled: true

The configuration interface is aligned with receivers created by the mdatagen tool

@dmitryax dmitryax requested review from a team as code owners May 1, 2023 18:46
@dmitryax dmitryax force-pushed the make-lightprom-attrs-configurable branch 2 times, most recently from 42e5de1 to 17a00f6 Compare May 1, 2023 18:49
@atoulme
Copy link
Contributor

atoulme commented May 1, 2023

Linting issues - looks like they predate your changes, sorry. Please apply fixes.

Limit resource attributes added by the lightprometheus receiver by default and make them configurable. 

Make enabling/disabling particular attributes possible and disable the following attributes by default:
- net.host.name:
- net.host.port:
- http.scheme:

To enable them back the attributes add the following configuration:

```yaml
resource_attributes:
  net.host.name:
    enabled: true
  net.host.port:
    enabled: true
  http.scheme:
    enabled: true
```
@dmitryax dmitryax force-pushed the make-lightprom-attrs-configurable branch from 17a00f6 to f34755a Compare May 1, 2023 20:31
Copy link
Contributor

@rmfitzpatrick rmfitzpatrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, though we really need a readme

@dmitryax dmitryax merged commit 50b3675 into signalfx:main May 1, 2023
@dmitryax dmitryax deleted the make-lightprom-attrs-configurable branch May 1, 2023 22:01
@dmitryax
Copy link
Contributor Author

dmitryax commented May 1, 2023

@rmfitzpatrick, added readme, PTAL #3049

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.

3 participants