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 b2c0297 commit 26b1787
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ 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
```

## Metrics
- [metrics](./docs/metrics.md)

Expand Down
5 changes: 2 additions & 3 deletions docs/metrics.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Grafana Dashboard
# localstorage_controller_volumes metrics

## 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
Expand All @@ -8,7 +9,6 @@ at [localstorage_controller-dashboard.json](./localstorage_controller-dashboard.
<img src="./localstorage_controller.png" style="width: 60%; height: 60%" />

## Metrics

Table of exported metrics:

| Name | Type | Description |
Expand All @@ -17,6 +17,5 @@ Table of exported metrics:
| `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 26b1787

Please sign in to comment.