autoscaling-file-sd

command module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2017 License: Apache-2.0 Imports: 19 Imported by: 0

README

Go Report Card

Jimdo / autoscaling-file-sd

This repository contains a small daemon periodically pulling members of an autoscaling-group in AWS and writing a file-sd configuration for Prometheus.

Usage

# autoscaling-file-sd --help
Usage of autoscaling-file-sd:
  -a, --autoscaling-group-name="": Name of the AutoScalingGroup to fetch instances from
  -i, --interval=30s: Interval to poll for changes in the ASG
      --port=0: Port to register in SRV record
  -p, --publish-to="file://discover.json": Where to write the discovery file
      --version[=false]: Print version and exit

Currently two write targets for the discovery file are supported:

  • file:// for local files (examples: file://discovery.json file:///home/myuser/discovery.json)
  • s3:// for Amazon S3 (example: s3://mybucket/path/discovery.json)

Example output file

# cat discover.json | jq
[
  {
    "targets": [
      "10.8.3.39:9102",
      "10.8.3.85:9102",
      "10.8.4.131:9102"
    ]
  }
]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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