Skip to content

Commit

Permalink
prometheus metrics caoyingjunz#231
Browse files Browse the repository at this point in the history
  • Loading branch information
aide-cloud committed Jul 30, 2023
1 parent 0c45c14 commit b2c0297
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
24 changes: 2 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

<img src="./docs/localstorage_controller.png" style="width: 60%; height: 60%" />


## 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
Expand Down
22 changes: 22 additions & 0 deletions docs/metrics.md
Original file line number Diff line number Diff line change
@@ -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).

<img src="./localstorage_controller.png" style="width: 60%; height: 60%" />

## 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).

0 comments on commit b2c0297

Please sign in to comment.