heapster采集k8s数据进入influxdb,es,opentsdb

#参考:
https://github.com/kubernetes/heapster/blob/master/docs/sink-configuration.md

# 下载heapster:v1.1.0容器,k8s集群版本是1.1.17,elasticsearch集群版本是1.7.5
# heapster采集k8s集群的信息存储到es中

docker run -d --name heapster-1.1.0-es-1.7.5 172.18.1.226:5000/heapster:v1.1.0 
        --source="kubernetes:http://172.18.1.226:9326?inClusterConfig=false&kubeletHttps=true&kubeletPort=10250&useServiceAccount=true&auth="
        --sink="elasticsearch:?nodes=http://172.18.1.231:9200&nodes=http://172.18.1.230:9200&"
        
# 下载heapster:v1.1.0容器,k8s集群是1.1.17,influxdb版本是0.10.3
# heapster采集k8s集群的信息存储到influxdb中
docker run -d --name heapster-1.1.0-influxdb-0.10.3 172.18.1.226:5000/heapster:v1.1.0  \
        --source="kubernetes:http://172.18.1.226:9326?inClusterConfig=false&kubeletHttps=true&kubeletPort=10250&useServiceAccount=true&auth=" \
        --sink="influxdb:http://172.18.1.235:8086/"

# 下载heapster:v1.10容器,k8s集群是1.1.17,opentsdb版本是2.2.1
# heapster采集k8s集群的信息存储到opentsdb中
docker run -d --name heapster_1.1.0-opentsdb_2.2.1 172.18.1.226:5000/heapster:v1.1.0  \
        --source="kubernetes:http://172.18.1.226:9326?inClusterConfig=false&kubeletHttps=true&kubeletPort=10250&useServiceAccount=true&auth=" \
        --sink="opentsdb:http://172.18.1.217:14242/"
        
        docker run -d --name heapster-1.1.0-influxdb-0.13.0 132.121.95.126:5000/heapster:v1.1.0 --source="kubernetes:http://132.121.95.116:9326?inClusterConfig=false&kubeletHttps=true&kubeletPort=10250&useServiceAccount=true&auth=" --sink="influxdb:http://132.121.95.92:8086/?withfields=true"

docker run -d --name heapster-1.1.0-elasticsearch-1.7.5 132.121.95.126:5000/heapster:v1.1.0 --source="kubernetes:http://132.121.95.116:9326?inClusterConfig=false&kubeletHttps=true&kubeletPort=10250&useServiceAccount=true&auth="     --sink="elasticsearch:?nodes=http://132.121.95.125:9200&nodes=http://132.121.95.86:9200&nodes=http://132.121.95.86:9200"

docker run -d --name heapster-1.2-influxdb-0.13 heapster:v1.2.0 --source="kubernetes:http://172.18.1.115:9326?inClusterConfig=false&kubeletHttps=true&kubeletPort=10250&useServiceAccount=true&auth=" --sink="influxdb:http://172.18.1.115:8086/?withfields=true"

你可能感兴趣的:(heapster采集k8s数据进入influxdb,es,opentsdb)