A Prometheus exporter for bandwagonhost cloud.
Mertrics api exposing bandwagonhost server information. mertrics example
Example
version=v0.1
wget https://github.com/weiqiang333/bandwagonhost_cloud_exporter/releases/download/${version}/bandwagonhost_cloud_exporter-linux-amd64-${version}.tar.gz
mkdir /usr/local/bandwagonhost_cloud_exporter
tar -zxf bandwagonhost_cloud_exporter-linux-amd64-${version}.tar.gz -C /usr/local/bandwagonhost_cloud_exporter
chmod +x /usr/local/bandwagonhost_cloud_exporter/bandwagonhost_cloud_exporter
/usr/local/bandwagonhost_cloud_exporter/bandwagonhost_cloud_exporter --config.file /usr/local/bandwagonhost_cloud_exporter/config/bandwagonhost_cloud_exporter.yaml
# Don't forget to modify your config file /usr/local/bandwagonhost_cloud_exporter/config/bandwagonhost_cloud_exporter.yaml
Flags
--config.file string exporter config file (default "./config/bandwagonhost_cloud_exporter.yaml")
--exporter.address string The address on which to expose the web interface and generated Prometheus metrics. (default ":9103")
Running bandwagonhost cloud exporter in containers.
Available from icyleaf engineers docker images.
- config prometheus.yml
scrape_configs:
- job_name: bandwagonhost_cloud
honor_timestamps: true
scrape_interval: 15m
scrape_timeout: 30s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- localhost:9103
- query prometheus. mertrics example
The following Dashboard template, can be imported into grafana to get an basic dashboard.