首页 > 编程语言 >重新编译influxdb_exporter源码,构建镜像

重新编译influxdb_exporter源码,构建镜像

时间:2022-08-28 18:35:18浏览次数:57  
标签:0.9 exporter apps influxdb 源码 https

1.github

https://github.com/prometheus/influxdb_exporter

 

2.dockerfile

FROM golang:1.17
ENV GO111MODULE=on \
    GOPROXY="https://goproxy.cn,direct"
COPY influxdb_exporter-0.9.1 /apps/influxdb_exporter-0.9.1
WORKDIR /apps/influxdb_exporter-0.9.1
RUN make build
RUN cp /apps/influxdb_exporter-0.9.1/influxdb_exporter-0.9.1 /bin/influxdb_exporter
WORKDIR /apps/influxdb_exporter-0.9.1
EXPOSE      9122
ENTRYPOINT  [ "/bin/influxdb_exporter" ]

 

标签:0.9,exporter,apps,influxdb,源码,https
From: https://www.cnblogs.com/wdgde/p/16633324.html

相关文章

  • 重新编译kafka_exporter源码,构建镜像
    1.githubhttps://github.com/danielqsj/kafka_exporter 2.dockerfileFROMgolang:1.17ENVGO111MODULE=on\GOPROXY="https://goproxy.cn,direct"COPYkafka_......
  • 重新编译activemq_exporter源码,构建镜像
    1.githubhttps://github.com/prometheus/jmx_exporteractivemq使用的是jmx_exporter来监控,0.17.0版本才有jmx_prometheus_httpserver 2.dockerfileFROMopenjdk:alp......
  • 重新编译jmx_exporter源码,构建镜像
    1.githubhttps://github.com/prometheus/jmx_exporter 2.dockerfileFROMopenjdk:alpineCOPYjmx_exporter-parent-0.16.1/apps/jmx_exporter-parent-0.16.1WORKD......
  • 为什么Go源码中有些函数没有函数体?
    在Go源码中,有时候我们点开查看,会发现这样的东西:这些是没有函数体的,这是为什么呢?这些是runtime的,也就是实现不是用Go写的,这一类方法,有些用汇编写的,有一些用C写的,可......
  • Spring源码-自定义标签
    一、新建实体类publicclassUserimplementsSerializable{privateStringid;privateStringname;privateIntegerage;publicStringgetId(){ return......
  • spring源码具体细节 super setConfigLocations
      1首先先调用super父类构造方法 classPathXmlApplicaitonContext 初始化成员属性  依然掉父类构造方法 调用父类 资源处理器 当前系统需要运行所......
  • Spring源码01:环境搭建
    写在开始:这个系列会陆续更新我学习Spring源码的一些笔记与自己的理解,由于本人水平有限,难免对有些知识理解不到位,亦或者手误导致文中有不正确的地方,欢迎各位指正与探讨。......
  • 专业企业微信第三方平台源码免费领取企微魔盒创业版
    系统简介:企微魔盒是一款专业的企业微信第三方源码系统,可私有化部署到自己服务器,数据自己掌握。付费版自带多种丰富的模块,如会话存档,裂变宝,红包获客,互动雷达,互动红包,客户阶......
  • MySQL源码分析之SQL函数执行
    1.MySQL中执行一条SQL的总体流程2.SQL函数执行过程1.MySQL中执行一条SQL的总体流程一条包含函数的SQL语句,在mysql中会经过:客户端发送,服务器连接,语法解析,语句执行的......
  • Spring源码-加载BeanDefinition之一
    一、入口protectedConfigurableListableBeanFactoryobtainFreshBeanFactory(){ //初始化BeanFactory,并进行XML文件读取,并将得到的BeanFactory记录在当前实体的......