rds_exporter

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

README

CloudWatch Exporter

Build Status Go Report Card CLA assistant

An AWS CloudWatch exporter for Prometheus coded in Go, with multi-region and dynamic target support. Based on Technofy/cloudwatch_exporter.

How to configure

create config file

instances:
- region: us-east-1
  instance: rds-aurora1
  type: aurora_mysql
  aws_access_key: ACCESS-KEY-HERE
  aws_secret_key: SECRET-KEY-HERE
- region: us-east-1
  instance: rds-mysql57
  type: aurora_mysql
  aws_access_key: ACCESS-KEY-HERE
  aws_secret_key: SECRET-KEY-HERE

How to run

rds_exporter --config.file=path/to/config.yml --web.listen-address=127.0.0.1:9042

How to configure Prometheus

global:
  scrape_interval: 1m
  scrape_timeout: 10s
  evaluation_interval: 1m
scrape_configs:
- job_name: rds-basic
  honor_labels: true
  scrape_interval: 1m
  scrape_timeout: 55s
  metrics_path: /basic
  static_configs:
  - targets:
    - 127.0.0.1:9042
    labels:
      aws_region: us-east-1
      instance: rds-aurora1
  - targets:
    - 127.0.0.1:9042
    labels:
      aws_region: us-east-1
      instance: rds-mysql57
- job_name: rds-enhanced
  honor_labels: true
  scrape_interval: 10s
  scrape_timeout: 9s
  metrics_path: /enhanced
  static_configs:
  - targets:
    - 127.0.0.1:9042
    labels:
      aws_region: us-east-1
      instance: rds-aurora1
  - targets:
    - 127.0.0.1:9042
    labels:
      aws_region: us-east-1
      instance: rds-mysql57

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
generate
The following directive is necessary to make the package coherent: This program generates metrics.go.
The following directive is necessary to make the package coherent: This program generates metrics.go.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
generate
The following directive is necessary to make the package coherent: This program generates metrics.go.
The following directive is necessary to make the package coherent: This program generates metrics.go.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL