forked from caoyingjunz/csi-driver-localstorage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41c9d76
commit b10b4c9
Showing
4 changed files
with
14 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,11 @@ | |
[![License][license-image]][license-url] | ||
|
||
## Overview | ||
|
||
This driver allows Kubernetes to access LocalStorage on Linux node. | ||
|
||
## Getting Started | ||
|
||
### Installation | ||
|
||
- 选择运行 `localstorage` 的 `kubernetes` 节点 | ||
```shell | ||
kubectl label node <node-name> storage.caoyingjunz.io/node= | ||
|
@@ -80,28 +78,27 @@ Table of exported metrics: | |
| `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 | | ||
|
||
## Feature | ||
## Prometheus | ||
|
||
The Prometheus configuration to scrape metrics from Logstash-exporter on Kubernetes is available | ||
at [prometheus.yml](./docs/prometheus.yml). | ||
|
||
|
||
## Feature | ||
- Schedule with volume status | ||
- Volume metrics | ||
|
||
## 学习分享 | ||
|
||
- [go-learning](https://github.com/caoyingjunz/go-learning) | ||
|
||
## 沟通交流 | ||
|
||
- 搜索微信号 `yingjuncz`, 备注(ls), 验证通过会加入群聊 | ||
- [bilibili](https://space.bilibili.com/3493104248162809?spm_id_from=333.1007.0.0) 技术分享 | ||
|
||
Copyright 2019 caoyingjun ([email protected]) Apache License 2.0 | ||
|
||
[build-url]: https://github.com/caoyingjunz/csi-driver-localstorage/actions/workflows/ci.yml/badge.svg | ||
|
||
[release-image]: https://img.shields.io/badge/release-download-orange.svg | ||
|
||
[release-url]: https://www.apache.org/licenses/LICENSE-2.0.html | ||
|
||
[license-image]: https://img.shields.io/badge/license-Apache%202-4EB1BA.svg | ||
|
||
[license-url]: https://www.apache.org/licenses/LICENSE-2.0.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
global: | ||
scrape_interval: 10s # 采样周期 | ||
evaluation_interval: 10s # 告警规则计算周期 | ||
|
||
scrape_configs: | ||
- job_name: 'localstorage_controller' | ||
static_configs: | ||
- targets: [ '<pixiu-ls-controller>:10259' ] # 10259 is metrics port |