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

[Improvement] Add template to provide additional labels for ServiceMonitor #6006

Closed
3 of 4 tasks
sudohainguyen opened this issue Jan 22, 2024 · 2 comments
Closed
3 of 4 tasks

Comments

@sudohainguyen
Copy link
Contributor

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

What would you like to be improved?

extend the current servicemonitor template to add extra labels

How should we improve?

No response

Are you willing to submit PR?

  • Yes. I would be willing to submit a PR with guidance from the Kyuubi community to improve.
  • No. I cannot submit a PR at this time.
Copy link

Hello @sudohainguyen,
Thanks for finding the time to report the issue!
We really appreciate the community's efforts to improve Apache Kyuubi.

@yaooqinn
Copy link
Member

cc @pan3793 @zwangsheng

@sudohainguyen sudohainguyen changed the title [Improvement] Provide template to provide additional labels for ServiceMonitor [Improvement] Add template to provide additional labels for ServiceMonitor Jan 23, 2024
sudohainguyen added a commit to sudohainguyen/kyuubi that referenced this issue Jan 25, 2024
zhaohehuhu pushed a commit to zhaohehuhu/incubator-kyuubi that referenced this issue Feb 5, 2024
# 🔍 Description
## Issue References 🔗

This pull request fixes apache#6006

## Describe Your Solution 🔧

Add new value `additionalLabels` in `serviceMonitor` to support templating the labels so that Prometheus can discover it

## Types of changes 🔖

- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

#### Behavior Without This Pull Request ⚰️
Our Prometheus is based on `kube-prometheus-stack` chart, so it requires label `release: kube-prometheus-stack`
The current setup of kyuubi helm does not allow the ServiceMonitor can be discovered by Prome because it's not able to pass extra labels to it.

#### Behavior With This Pull Request 🎉
The MR enables templating extra labels

#### Related Unit Tests

---

# Checklist 📝

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes apache#6019 from sudohainguyen/helmchart.

Closes apache#6006

69a86c5 [Hai Nguyen] chore: simplify labels values
ed3fb0e [Hai Nguyen] [KYUUBI apache#6006] Support additional labels for service monitor

Authored-by: Hai Nguyen <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
zhaohehuhu pushed a commit to zhaohehuhu/incubator-kyuubi that referenced this issue Mar 21, 2024
# 🔍 Description
## Issue References 🔗

This pull request fixes apache#6006

## Describe Your Solution 🔧

Add new value `additionalLabels` in `serviceMonitor` to support templating the labels so that Prometheus can discover it

## Types of changes 🔖

- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

#### Behavior Without This Pull Request ⚰️
Our Prometheus is based on `kube-prometheus-stack` chart, so it requires label `release: kube-prometheus-stack`
The current setup of kyuubi helm does not allow the ServiceMonitor can be discovered by Prome because it's not able to pass extra labels to it.

#### Behavior With This Pull Request 🎉
The MR enables templating extra labels

#### Related Unit Tests

---

# Checklist 📝

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes apache#6019 from sudohainguyen/helmchart.

Closes apache#6006

69a86c5 [Hai Nguyen] chore: simplify labels values
ed3fb0e [Hai Nguyen] [KYUUBI apache#6006] Support additional labels for service monitor

Authored-by: Hai Nguyen <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
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 a pull request may close this issue.

2 participants