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

[prometheus.operator.probes] Add namespace label with the namespace of the probe object #1058

Closed

Conversation

ToonTijtgat2
Copy link
Contributor

@ToonTijtgat2 ToonTijtgat2 commented Jun 17, 2024

PR Description

Add namespace label with the namespace of the probe object in the static config to align with prometheus setup.
Prometheus automatically adds the namespace label, and since this is standard practice and we rely on this label for some dashboards and rules, we'd like to align the prometheus setup and alloy setup.

Which issue(s) this PR fixes

Fixes #1049

Notes to the Reviewer

PR Checklist

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

@ToonTijtgat2
Copy link
Contributor Author

@thampiotr Thanks for running the tests, I adapted the code a little according to the results. Can you try again?
Thanks

@ToonTijtgat2
Copy link
Contributor Author

@thampiotr Thanks for running the tests again, for the failing results on this one, I'm not sure what the issues are or how to solve them.

@ToonTijtgat2
Copy link
Contributor Author

@thampiotr Noticed that the probe config tests are not successful, so added the expectation of a label with name namespace and value default.

@ToonTijtgat2
Copy link
Contributor Author

@thampiotr I changed the labelset from an array of sets to one object.

@ToonTijtgat2
Copy link
Contributor Author

@thampiotr, Is there something else for the moment I can do? (not sure how the full PR flow works)
Thanks for checking

@ToonTijtgat2
Copy link
Contributor Author

@thampiotr Adapted the test to have one list instead of a list in a list

@thampiotr
Copy link
Contributor

@ToonTijtgat2 you should be able to run most of the tests locally with make test, there are also some contribution docs in the repository you may find helpful. I intend to take a closer review once we have tests passing.

@CLAassistant
Copy link

CLAassistant commented Jun 27, 2024

CLA assistant check
All committers have signed the CLA.

@ToonTijtgat2
Copy link
Contributor Author

@thampiotr it seems that all tests passed now, what do we have to do now to complete this PR?

I saw that by accident I did one of the commits with an unknown user. I don't know if this is a problem about the cla?
I updated the fork a few moments ago to fetch the latest changes.
But according to me this PR seems to look good now.

Thanks for checking.

FYI, I try to run the tests locally but for a reason I get the following all the time.
image

Caleb-Hurshman and others added 24 commits July 3, 2024 08:50
* add rsa config options, docs

* update exporter, tests

* reword auth requirement info

* field doc tweaks

* add var replace notes

* fix placeholder values

* rebase main, fix conflicts

* style example config replacements

* move require

* tidy

* revert Changelog formatting

* remove *
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…rafana#1026)

Bumps [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](Azure/azure-sdk-for-go@sdk/internal/v1.5.1...sdk/azcore/v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* remove explicit chown step that made docker image bigger

* remove chmod
…rafana#1093)

Bumps [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) from 1.5.1 to 1.7.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](Azure/azure-sdk-for-go@sdk/internal/v1.5.1...sdk/azcore/v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…vements (grafana#1081)

* add severity and description to alerts

* fix alert lib

* reset config change

* job not multi template, including filter on metric queries

* revert config change

* changing running instances count query to alloy_component_controller_running_components

* group by instance

* fallback to use by()

* refrain from using instance label
…afana#1069)

Bumps [go.opentelemetry.io/collector/config/confighttp](https://github.com/open-telemetry/opentelemetry-collector) from 0.100.1-0.20240509190532-c555005fcc80 to 0.102.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-collector/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CHANGELOG-API.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-collector/commits/v0.102.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/collector/config/confighttp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…afana#1111)

Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](aquasecurity/trivy-action@595be6a...7c2007b)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…#1018)

* Docs: add 'Tuning max_shards' section in Prometheus remote write doc

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Link section

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Link section

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Remove test label selector from query

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Apply suggestions from code review

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Co-authored-by: Jennifer Villa <jvilla2013@gmail.com>

* Re-iterate based on feedback

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Renamed 'replica' to 'instance'

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Explain why there's a max_shards cap

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Apply suggestions from code review

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>

---------

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Co-authored-by: Jennifer Villa <jvilla2013@gmail.com>
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Bumps [github.com/hashicorp/go-retryablehttp](https://github.com/hashicorp/go-retryablehttp) from 0.7.4 to 0.7.7.
- [Changelog](https://github.com/hashicorp/go-retryablehttp/blob/main/CHANGELOG.md)
- [Commits](hashicorp/go-retryablehttp@v0.7.4...v0.7.7)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-retryablehttp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
ckit v0.0.0-20240624165704-36f3407a8eaa uses
the atomic Uint64 wrappers which align
better in 32b systems, like armv7hf. Tested
to work on a armv7hf instance, when compiled
from source.

Co-authored-by: Robert Fratto <robertfratto@gmail.com>
Co-authored-by: Mischa Thompson <mischabear@gmail.com>
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
…1150)

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
@ToonTijtgat2
Copy link
Contributor Author

Opened a new PR since this one is going all wrong. #1186

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[prometheus.operator.probes] add namespace label