Skip to content

mururu/prometheus-td-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prometheus-td-adapter

This allow Prometheus to use Treasure Data as long-term storage.

https://prometheus.io/docs/operating/integrations/#remote-endpoints-and-storage

Build

dep is required for dependency management.

$ make deps
$ make

Usage

$ ./prometheus-td-adapter -td.apikey=yourapikey -td.db=yourdb -td.table=yourtable

You can pass the td related parameters via environment variables: TD_APIKEY, TD_DB and TD_TABLE.

For other options, see ./prometheus-td-adapter -h.

Prometheus Configuration

remote_write:
  - url: "http://localhost:9201/write"

Data Model

Metrics is stored in Treasure Data as below.

  • time: timestamp
  • value: metric value
  • name: metric name
  • label_*: labels (automatically prefixed by "label_")

Example

{
  "time": 1508050569,
  "value": 802713.0,
  "name": "node_network_transmit_packets",
  "label_job": "prometheus",
  "label_instance": "localhost:9100",
  "label_device": "lo0"
}

TODO

  • READ

About

Prometheus remote storage adapter for Treasure Data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published