Giter VIP home page Giter VIP logo

metrics-server-exporter's Introduction

This project is archived and no longer maintained. Metrics Server was never meant to be used for non-autoscaling purposes and this project was more like a proof of concept back in the time I was working with k8s < 1.18. Since k8s 1.18+ kubelets expose more accurate resource usage metrics on /metrics/resource endpoint, you can scrape this endpoint instead.

ci GitHub release (latest SemVer) Go Report Card License

metrics-server-exporter

Export metrics-server metrics to prometheus.

Metrics Server collects resource metrics from Kubelets and exposes them in Kubernetes apiserver through Metrics API for use by Horizontal Pod Autoscaler and Vertical Pod Autoscaler.

But why not use these metrics to create alerts with alertmanager or to visualize resource usage with grafana? Metrics-server-exporter aims to fill the gap between monitoring/alerting tools and metrics-server by exporting the data from the Metrics API to prometheus.

Exported metrics

metrics_server_exporter_node_resource_capacity{node="node1",resource="cpu"} 42000    # millicores
metrics_server_exporter_node_resource_capacity{node="node1",resource="memory"} 42000 # kilobyte
metrics_server_exporter_node_resource_usage{node="node1",resource="cpu"} 1000        # millicores
metrics_server_exporter_node_resource_usage{node="node1",resource="memory"} 1000     # kilobyte
metrics_server_exporter_pod_resource_usage{namespace="kube-system",pod="metrics-server-exporter-68f7c886bf-wj8h6",resource="cpu"} 42 # millicores
metrics_server_exporter_pod_resource_usage{namespace="kube-system",pod="metrics-server-exporter-68f7c886bf-wj8h6",resource="memory"} 42 # kilobyte

Deployment

prerequisites

  • metrics-server must be deployed and fully operational in your cluster.
  • prometheus to scrape the metrics-server-exporter metrics

installation

Simply apply the deployment.yaml from this repo. This will create a ClusterRole, a ClusterRoleBinding, a ServiceAccount and the Deployment for the metrics-server-exporter.

metrics-server-exporter's People

Contributors

ghouscht avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.