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

Support to get the metric data from a prometheus metric api with basic auth enabled #3737

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zhifanggao
Copy link
Contributor

support to get the metrics data from prometheus metric api with basic auth enabled

the configmap of volcano-scheduler can be like this:

actions: "enqueue, allocate, backfill"
tiers:
- plugins:
  - name: priority
  - name: conformance
  - name: usage
    enablePredicate: false
    arguments:
      usage.weight: 50
      cpu.weight: 1
      memory.weight: 1
      thresholds:
        cpu: 80
        mem: 70
- plugins:
  - name: overcommit
  - name: drf
    enablePreemptable: false
  - name: predicates
  - name: proportion
  - name: nodeorder
  - name: binpack
  - name: gang
metrics:
  type: prometheus
  address: http://xxx:9090/
  basicauth: true
  username: yy
  password: zz
  interval: 30s

@volcano-sh-bot volcano-sh-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 19, 2024
@Monokaix
Copy link
Member

Hi,can you also update the usage design doc first?

@lowang-bh
Copy link
Member

relative PR #2961

@zhifanggao
Copy link
Contributor Author

relative PR #2961

👍, I will check the PR.

Signed-off-by: zhifanggao <[email protected]>
@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign monokaix
You can assign the PR to them by writing /assign @monokaix in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@zhifanggao
Copy link
Contributor Author

Hi,can you also update the usage design doc first?

changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants