prometheus-swarm-sd

module
v0.0.0-...-69f2efa Latest Latest
Warning

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

Go to latest
Published: May 29, 2016 License: Apache-2.0

README

Prometheus SD plugin for Swarm

These codes contain a service discovery based on Prometheus 0.17.0 for Swarm v1.1.0 and later. The implementation code can be found in commits.

Prerequisite

Cause Swarm dosen't provide metrics by itself, a CAdvisor service should be running on every masters and nodes. The CAdvisor listening port should be 8070 by default.

Configuration

- job_name: service-swarm
  swarm_sd_configs:
  - masters:
    - 'http://swarm.example.com:8080'

    refresh_interval: 1s
    metrics_port: '8060'
  • refresh_interval instructs how often SD plugin retrieve the Swarm node informations.
  • metrics_port instructs which port the CAdvisor service is listening on.
  • The label policy configurations are the same as Kubernetes SD plugin.

Directories

Path Synopsis
cmd
prometheus command
The main package for the Prometheus server executeable.
The main package for the Prometheus server executeable.
promtool command
local
Package local contains the local time series storage used by Prometheus.
Package local contains the local time series storage used by Prometheus.
local/codable
Package codable provides types that implement encoding.BinaryMarshaler and encoding.BinaryUnmarshaler and functions that help to encode and decode primitives.
Package codable provides types that implement encoding.BinaryMarshaler and encoding.BinaryUnmarshaler and functions that help to encode and decode primitives.
local/index
Package index provides a number of indexes backed by persistent key-value stores.
Package index provides a number of indexes backed by persistent key-value stores.
util
cli
flock
Package flock provides portable file locking.
Package flock provides portable file locking.
web
ui

Jump to

Keyboard shortcuts

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