prometheus-elasticache-sd

command module
v0.0.0-...-08bb83d Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

README

prometheus-elasticache-sd

Generate file_sd file of Prometheus for Amazon ElastiCache.

Usage

./prometheus-elasticache-sd --output.file=/path/to/elasticache_sd.json --refresh.interval=120

Metadata

The following meta labels are available on targets during relabeling:

  • __meta_elasticache_availability_zone: the availability zone in which the instance is running
  • __meta_elasticache_engine: the ElastiCache engine name
  • __meta_elasticache_engine_version: the ElastiCache engine version
  • __meta_elasticache_cluster_id: the ElastiCache cluster ID
  • __meta_elasticache_node_id: the ElastiCache node ID
  • __meta_elasticache_instance_state: the state of the ElastiCache instance
  • __meta_elasticache_instance_type: the type of the ElastiCache instance
  • __meta_elasticache_tag_<tagkey>: each tag value of the instance

Output example

[
    {
        "targets": [
            "elasticache-example-001.abcdef.0001.apne1.cache.amazonaws.com:6379"
        ],
        "labels": {
            "__address__": "elasticache-example-001.abcdef.0001.apne1.cache.amazonaws.com:6379",
            "__meta_elasticache_availability_zone": "ap-northeast-1a",
            "__meta_elasticache_cluster_id": "elasticache-example-001",
            "__meta_elasticache_endpoint_address": "elasticache-example-001.abcdef.0001.apne1.cache.amazonaws.com",
            "__meta_elasticache_endpoint_port": "6379",
            "__meta_elasticache_engine": "redis",
            "__meta_elasticache_engine_version": "2.8.24",
            "__meta_elasticache_instance_state": "available",
            "__meta_elasticache_instance_type": "cache.r3.large",
            "__meta_elasticache_node_id": "0001",
            "__meta_elasticache_tag_Environment": "development"
        }
    },
]

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