Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A Kubernetes custom metrics adapter for ackbar

License

NotificationsYou must be signed in to change notification settings

bespinian/ackbar-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A custom metrics adapter which makesackbar'spartitionToWorkerRatio available as an external metric in the metrics API of Kubernetes.

Deployment

kubectl apply -f k8s

Smoke test

Make a raw request to the Kubernetes metrics API.

kubectl get --raw"/apis/external.metrics.k8s.io/v1beta1/namespaces/default/partition-to-worker-ratio"

You should be seeing a metrics item per context in yourackbar instance.

{"kind":"ExternalMetricValueList","apiVersion":"external.metrics.k8s.io/v1beta1","metadata": {},"items": [    {"metricName":"partition-to-worker-ratio","metricLabels": {"context":"3c0d1a1d-2e58-4032-a7dd-cf93a3eef4d3"      },"timestamp":"2024-06-10T11:54:54Z","value":"3"    },    {"metricName":"partition-to-worker-ratio","metricLabels": {"context":"0d29016f-00a4-468d-a6b9-c03262cfca1c"      },"timestamp":"2024-06-10T11:54:54Z","value":"0"    }  ]}

About

A Kubernetes custom metrics adapter for ackbar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp