https://github.com/xh4n3/unet_exporter
Prometheus exporter for unet
https://github.com/xh4n3/unet_exporter
automation bandwidth prometheus-exporter
Last synced: 9 months ago
JSON representation
Prometheus exporter for unet
- Host: GitHub
- URL: https://github.com/xh4n3/unet_exporter
- Owner: xh4n3
- Created: 2016-11-23T13:37:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-27T09:02:09.000Z (about 9 years ago)
- Last Synced: 2025-01-03T23:43:30.645Z (over 1 year ago)
- Topics: automation, bandwidth, prometheus-exporter
- Language: Go
- Size: 1.41 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# unet_exporter
Prometheus Exporter for UCloud ShareBandwidth Package
### Dockerfile Usage
```
FROM xh4n3/unet_exporter
COPY config.yml config.yml
```
### Passing PRIVATE_KEY and PUBLIC_KEY via env
Pass PUBLIC_KEY and PUBLIC_KEY by `-e`, which will overrides keys in config file.
### Prometheus
```
ALERT ShareBandwidthTooHigh
IF 100 * total_bandwidth_usage / current_bandwidth < 85
FOR 3m
ANNOTATIONS {
summary = "ShareBandwidthTooHigh {{$labels.instance}} {{$labels.shareBandwidth}}",
description = "{{$labels.instance}} - {{$labels.shareBandwidth}} will decrease bandwidth.",
}
ALERT ShareBandwidthTooLow
IF total_bandwidth_usage > current_bandwidth
FOR 3m
ANNOTATIONS {
summary = "ShareBandwidthTooLow {{$labels.shareBandwidth}} {{$labels.instance}}",
description = "{{$labels.instance}} - {{$labels.shareBandwidth}} will increase bandwidth.",
}
```