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 job variable to grafana dashboard #4330

Merged
merged 1 commit into from Jan 17, 2024
Merged

Add job variable to grafana dashboard #4330

merged 1 commit into from Jan 17, 2024

Conversation

capJavert
Copy link
Contributor

@capJavert capJavert commented Jan 16, 2024

Pull Request

Related issue

Fixes https://github.com/orgs/meilisearch/discussions/625#discussioncomment-8143282

What does this PR do?

"meilisearch" as job_name was hardcoded in the dashboard config so if user sets anything but "meilisearch" as job_name on prometheus side the dashboard does not work.

With this change dasboard will auto load the values from data source (much like instance variable) and show the correct data. This now also adds support for multiple meilisearch jobs in single dashboard.

See: https://github.com/orgs/meilisearch/discussions/625#discussioncomment-8143282

PR checklist

Please check if your PR fulfills the following requirements:

  • Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
  • Have you read the contributing guidelines?
  • Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!

meilisearch job_name was hardcoded in the dashboard config

so if user sets anything but meilisearch as job_name on

prometheus side the dashboard does not work

see: https://github.com/orgs/meilisearch/discussions/625#discussioncomment-8143282
Copy link
Member

@irevoire irevoire left a comment

Choose a reason for hiding this comment

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

I tested it, and it works and seems more versatile than what we have.
It's not breaking and doesn't impact the associated product discussion 👌

Thanks for your contribution @capJavert that's perfect I'm merging!

bors merge

Copy link
Contributor

meili-bors bot commented Jan 17, 2024

🕐 Waiting for PR status (Github check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

@irevoire irevoire added enhancement New feature or improvement experimental feature Related to an experimental feature labels Jan 17, 2024
@irevoire irevoire added this to the v1.7.0 milestone Jan 17, 2024
Copy link
Contributor

meili-bors bot commented Jan 17, 2024

@meili-bors meili-bors bot merged commit 262b20f into meilisearch:main Jan 17, 2024
10 checks passed
@capJavert capJavert deleted the grafana-dasboard-job-variable branch January 18, 2024 07:51
@meili-bot meili-bot added the v1.7.0 PRs/issues solved in v1.7.0 released on 2024-03-11 label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement experimental feature Related to an experimental feature v1.7.0 PRs/issues solved in v1.7.0 released on 2024-03-11
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants