Skip to content

Conversation

@rafaelroquetto
Copy link
Contributor

PR Description

The Beyla configuration for network and application filters rely on the block label for the attribute name, i.e.

            filters {
              network "k8s.src.owner.name" {
                match = "*"
              }
            }

however, attribute names such as "k8s.src.owner.name" are not valid label identifiers, rendering the above config unparsable by the alloy config syntax.

This PR changes the code so that attributes need to be explicitly specified using the attr field:

	filters {
		network {
			attr = "k8s.src.owner.name"
			match = "*"
		}

		network {
			attr = "k8s.src.owner.name2"
			match = "*"
		}
	}

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@rafaelroquetto rafaelroquetto requested review from a team and clayton-cornell as code owners March 11, 2025 22:52
@rafaelroquetto rafaelroquetto requested a review from marctc March 11, 2025 22:52
@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2025

💻 Deploy preview deleted.

@clayton-cornell clayton-cornell added the type/docs Docs Squad label across all Grafana Labs repos label Mar 11, 2025
@clayton-cornell
Copy link
Contributor

No doc changes or suggestions

Copy link
Contributor

@wildum wildum left a comment

Choose a reason for hiding this comment

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

LGTM, tests should be updated. It would be nice to have more examples in the doc also but can be done via another PR

@rafaelroquetto
Copy link
Contributor Author

@wildum thanks, I will track the request for improved examples at grafana/beyla#1736 so that it does not fall in the limbo.

@rafaelroquetto rafaelroquetto merged commit 5b5752a into main Mar 12, 2025
35 checks passed
@rafaelroquetto rafaelroquetto deleted the beyla_attr_fix branch March 12, 2025 00:38
dehaansa pushed a commit that referenced this pull request Mar 13, 2025
@dehaansa dehaansa mentioned this pull request Mar 13, 2025
dehaansa added a commit that referenced this pull request Mar 13, 2025
* remotecfg: Fix errNotModified causing incorrect last_load metric and printing invalid error logs (#2977)

Fixing behavior of errNotModified and remotecfg_last_load_successful metric. This also prevents invalid error log messages from being printed.

(cherry picked from commit 7350cac)

* Fix attribute name in Beyla configuration. (#2966)

(cherry picked from commit 5b5752a)

* fix: Update `prometheus.exporter.postgresql` to work properly with postgres 17 (#2972)

* Add support for postgres17 in prometheus.exporter.postgres

* Update changelog

* Update docs/sources/reference/components/prometheus/prometheus.exporter.postgres.md

Co-authored-by: Clayton Cornell <[email protected]>

---------

Co-authored-by: Clayton Cornell <[email protected]>
(cherry picked from commit 3f52ee7)

* Update changelog

---------

Co-authored-by: Zachary Sistrunk <[email protected]>
Co-authored-by: Rafael Roquetto <[email protected]>
towolf pushed a commit to towolf/alloy that referenced this pull request Apr 2, 2025
towolf pushed a commit to towolf/alloy that referenced this pull request Apr 2, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age type/docs Docs Squad label across all Grafana Labs repos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants