Sign inSign up

shikaiwei/tiprometheus

By shikaiwei

Updated over 6 years ago

base on tipromethueus master batch code.

Image
0

936

shikaiwei/tiprometheus repository overview

Release Node

20200428.RELEASE

  • The base image changed from centos:centos7 to busybox:latest

20200424.RELEASE

Tips

  • The 'RELEASE' tags is stable version
  • The code will use the default config file which is in /opt/conf.toml but it is not stored in the image. As a result, you should map your config file into the docker when it's up.

Example

docker-compose.yml

version: '2'
services:
  tiprometheus:
    image: shikaiwei/tiprometheus:20200428.RELEASE
    restart: always
    ports:
    - 12350:12350
    volumes:
    #The default path of config file is "/opt/conf.toml"
    - /usr/local/tipromethuse-docker/conf/conf.toml:/opt/conf.toml

conf.toml

[dev]
    AdapterListen = "127.0.0.1:12350"
    PDHost = "10.0.0.221:2000"
    TimeInterval = 5
    AdapterEnableTLS = false
    TiKVEnableTLS = false

[default]
    AdapterListen = ":12350"
    PDHost = "10.0.0.221:2000"
    TimeInterval = 5
    AdapterEnableTLS = false
    AdapterCACertificate = "/path/to/certs/ca.pem"
    AdapterServerCertificate = "/path/to/certs/adapter.pem"
    AdapterServerKey = "/path/to/certs/adapter.key"
    TiKVEnableTLS = false
    TiKVCACertificate = "/path/to/certs/ca.pem"
    TiKVClientCertificate = "/path/to/certs/client.pem"
    TiKVClientKey = "/path/to/certs/client.key"

prometheus.yml

tips: The configuration below is the part of remote write and remote read of the Prometheus configuration

remote_write:
  - url: 'http://tiprometheus:12350/write'

remote_read:
  - url: 'http://tiprometheus:12350/read'
    read_recent: false

Tag summary

Content type

Image

Digest

Size

12.3 MB

Last updated

over 6 years ago

docker pull shikaiwei/tiprometheus:20200428.RELEASE