prometheus

module
v0.0.0-...-fe88ad2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2017 License: Apache-2.0

README

Summary

Auto downsample version of prometheus. It just for some one who want to save long term data in prometheus.

Introduction

  • Fork from prometheusv1.5.2.
  • Add auto downsample feature by modify promql a little bit and storage a little bit more.
  • Just run without problems for now, no union test (also may break exist test).
  • Origin retention is useless now, won't drop any data, just downsample to the next retention level.
  • A small problem while use with grafana(should set "null connected" if your query step set smaller than retention level's interval), some step get a zerosample because of after downsaple gap is larger and step is decided by the defined retention, should be dev a new plugin for this version prometheus.

Usage

  • Change retention in storage/local/retentions.go, see func init().
  • Build and run it the same way as prometheus.

Other

  • Any problem please feel free to contact me here or Email: qinguoan2007@hotmail.com.
  • Last update: 2017-06-28 with a lot of bugfix.

Directories

Path Synopsis
cmd
prometheus
The main package for the Prometheus server executable.
The main package for the Prometheus server executable.
dns
ec2
gce
documentation
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.
remote
Package remote is a generated protocol buffer package.
Package remote is a generated protocol buffer package.
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