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

Add configuration for solomon exporter: specify host and some instance tags #258

Merged
merged 2 commits into from
May 18, 2024

Conversation

achulkov2
Copy link
Collaborator

@achulkov2 achulkov2 commented May 2, 2024

When the solomon_exporter section is not configured metrics are exported without any host-related labels, which isn't very convenient.

Tested locally that the sensors from curl localhost:<monitoring_port>/solomon/all are now enriched with the added attributes.

@achulkov2 achulkov2 requested a review from zlobober May 2, 2024 17:15
Makefile Outdated
@@ -33,7 +33,7 @@ else
DOCKER_BUILD_ARGS += --build-arg VERSION="$(OPERATOR_TAG)"
endif
DOCKER_BUILD_ARGS += --build-arg REVISION="$(shell git rev-parse HEAD)"
DOCKER_BUILD_ARGS += --build-arg BUILD_DATE="$(shell date --rfc-3339=seconds)"
DOCKER_BUILD_ARGS += --build-arg BUILD_DATE="$(shell date -Iseconds)"
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's move this to a separate PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok, moved here: #260.

Copy link
Contributor

@zlobober zlobober left a comment

Choose a reason for hiding this comment

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

Let's add a unit-test right as you described in the PR description - start a cluster, make a http request to /solomon/all, make sure hostnames are there.

@l0kix2 l0kix2 requested a review from zlobober May 17, 2024 15:31
@l0kix2
Copy link
Collaborator

l0kix2 commented May 17, 2024

LGTM, let's merge if @zlobober ok with the added test.

@l0kix2 l0kix2 merged commit e4ddb54 into main May 18, 2024
5 checks passed
@l0kix2 l0kix2 deleted the solomon-exporter-config branch May 18, 2024 10:26
leo-astorsky pushed a commit to leo-astorsky/yt-k8s-operator that referenced this pull request Aug 13, 2024
…e tags (ytsaurus#258)

* Add configuration for solomon exporter: specify host and some instance tags

* Address comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants