From b2c0297d20e0d52c2c8ca7231b75bb632edb7336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A7=E6=A1=90?= Date: Fri, 28 Jul 2023 21:15:56 +0800 Subject: [PATCH] prometheus metrics #231 --- README.md | 24 ++---------------------- docs/metrics.md | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 22 deletions(-) create mode 100644 docs/metrics.md diff --git a/README.md b/README.md index e43abba..1ffdc6c 100644 --- a/README.md +++ b/README.md @@ -59,29 +59,9 @@ This driver allows Kubernetes to access LocalStorage on Linux node. NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE test-pvc Bound pvc-2b2c809f-33b5-437f-a4b8-61906c10a3e1 1Mi RWX pixiu-localstorage 5s ``` - -## Grafana Dashboard - -A Grafana Dashboard designed for metrics from Logstash-exporter on Kubernetes is available -at [localstorage-controller-dashboard](https://grafana.com/grafana/dashboards/19251-localstorage-controller-dashboard/). -This dashboard's JSON source is -at [localstorage_controller-dashboard.json](./docs/localstorage_controller-dashboard.json). - - - + ## Metrics - -Table of exported metrics: - -| Name | Type | Description | -|-----------------------------------------|-------|----------------------------------------------------------------------------------------| -| `localstorage_controller_volumes_total` | Gauge | HELP localstorage_controller_volume_size The size of each volume in localstorage | -| `localstorage_controller_volume_size` | Gauge | HELP localstorage_controller_volumes_total The total number of volumes in localstorage | - -## Prometheus - -The Prometheus configuration to scrape metrics from Logstash-exporter on Kubernetes is available -at [prometheus.yml](./docs/prometheus.yml). +- [metrics](./docs/metrics.md) ## Feature - Schedule with volume status diff --git a/docs/metrics.md b/docs/metrics.md new file mode 100644 index 0000000..eb95ff0 --- /dev/null +++ b/docs/metrics.md @@ -0,0 +1,22 @@ +## Grafana Dashboard + +A Grafana Dashboard designed for metrics from Logstash-exporter on Kubernetes is available +at [localstorage-controller-dashboard](https://grafana.com/grafana/dashboards/19251-localstorage-controller-dashboard/). +This dashboard's JSON source is +at [localstorage_controller-dashboard.json](./localstorage_controller-dashboard.json). + + + +## Metrics + +Table of exported metrics: + +| Name | Type | Description | +|-----------------------------------------|-------|----------------------------------------------------------------------------------------| +| `localstorage_controller_volumes_total` | Gauge | HELP localstorage_controller_volume_size The size of each volume in localstorage | +| `localstorage_controller_volume_size` | Gauge | HELP localstorage_controller_volumes_total The total number of volumes in localstorage | + +## Prometheus + +The Prometheus configuration to scrape metrics from Logstash-exporter on Kubernetes is available +at [prometheus.yml](./prometheus.yml). \ No newline at end of file