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 support for serverAPIPath #1197

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SubatomicHero
Copy link

I have added a new config value for the Prometheus Scaler, serverAPIPath. This is to support hosted Prometheus vendors who do not expose Prometheus on /api/v1/query by default

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO)

@SubatomicHero SubatomicHero requested a review from a team as a code owner July 25, 2023 10:10
@netlify
Copy link

netlify bot commented Jul 25, 2023

Deploy Preview for keda ready!

Name Link
🔨 Latest commit 501b01a
🔍 Latest deploy log https://app.netlify.com/sites/keda/deploys/64bf9f7e6fa2f200073f71a3
😎 Deploy Preview https://deploy-preview-1197--keda.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions
Copy link

Thank you for your contribution! 🙏 We will review your PR as soon as possible.

🏖️ Over the summer, the response time will be longer than usual due to maintainers taking time off so please bear with us.

While you are waiting, make sure to:

  • Add your contribution to all applicable KEDA versions
  • GitHub checks are passing
  • Is the DCO check failing? Here is how you can fix DCO issues

Learn more about:

@@ -32,6 +33,7 @@ triggers:
**Parameter list:**

- `serverAddress` - Address of Prometheus server. If using VictoriaMetrics cluster version, set full URL to Prometheus querying API, e.g. `http://<vmselect>:8481/select/0/prometheus`
- `serverAPIPath` - API path to query the Prometheus Server. On Grafana Cloud, this would be `/api/prom`. (Default: `/api/v1/query`)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- `serverAPIPath` - API path to query the Prometheus Server. On Grafana Cloud, this would be `/api/prom`. (Default: `/api/v1/query`)
- `serverAPIPath` - API path to query the Prometheus Server. (Default: "/api/v1/query", Optional, ex: On Grafana Cloud, this would be `/api/prom`)

Copy link
Member

Choose a reason for hiding this comment

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

I have updated a bit the style to follow the style guide 😄

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 this pull request may close these issues.

2 participants