akyriako / cloudeye-exporter

A custom Prometheus exporter to obtain metric data from Cloud Eye Service of Open Telekom Cloud, convert them in Prometheus format and publish an endpoint so they are periodically scraped by Prometheus.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cloudeye-exporter

A custom Prometheus exporter that collects metrics from Open Telekom Cloud CloudEye service.

Usage

 ./cloudeye-exporter  -config=clouds.yml -debug 

The default port is 8087, default config file location is ./clouds.yml. If you want to enable debug mode and have more verbose logging use the flag -debug. After you run the exporter you can open http://localhost:8087/metrics?services=SYS.VPC,SYS.ELB in your browser and observe the exported metrics.

Help

Usage of ./cloudeye-exporter:
  -config string
        path to the cloud configuration file (default "./clouds.yml")
  -debug 
        provide extensive logging for debug purposes.
 

Example of config file(clouds.yml)

The respective auth_url endpoints per region can be get found at Identity and Access Management (IAM) endpoint list.

global:
  prefix: "opentelekomcloud"
  scrape_batch_size: 10

auth:
  auth_url: "https://iam.eu-XX.otc.t-systems.com/v3"
  project_name: "{project_name}"
  access_key: "{access_key}"
  secret_key: "{secret_key}"
  region: "{region}"

CCE Installation

Consult the instructions in README.md.

About

A custom Prometheus exporter to obtain metric data from Cloud Eye Service of Open Telekom Cloud, convert them in Prometheus format and publish an endpoint so they are periodically scraped by Prometheus.

License:Apache License 2.0


Languages

Language:Go 84.6%Language:Smarty 13.6%Language:Shell 1.8%