-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from citahub/release/v0.6.0
Release v0.6.0
- Loading branch information
Showing
18 changed files
with
159 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,7 @@ server/grafana_data/ | |
server/prometheus_data/ | ||
.vscode/ | ||
.build-version | ||
test/dummy/* | ||
test/dummy/* | ||
.env | ||
grafana.db | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[submodule "agent/rabbitmq_exporter/rabbitmq_exporter.git"] | ||
path = agent/rabbitmq_exporter/rabbitmq_exporter.git | ||
url = https://github.com/kbudde/rabbitmq_exporter.git | ||
branch = v1.0.0-RC4 | ||
[submodule "agent/cita_exporter/cita-cli.git"] | ||
path = agent/cita_exporter/cita-cli.git | ||
url = https://github.com/citahub/cita-cli.git | ||
branch = master | ||
[submodule "agent/process_exporter/process-exporter.git"] | ||
path = agent/process_exporter/process-exporter.git | ||
url = https://github.com/ncabatoff/process-exporter.git | ||
branch = master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.5.0 | ||
0.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
FROM ubuntu:18.04 | ||
# compile cita-cli with musl | ||
FROM rust:1.48 AS builder | ||
WORKDIR /build | ||
RUN curl -o musl-1.1.19.tar.gz https://www.musl-libc.org/releases/musl-1.1.19.tar.gz \ | ||
&& tar -xzvf musl-1.1.19.tar.gz \ | ||
&& cd musl-1.1.19/ \ | ||
&& ./configure && make && make install \ | ||
&& ln -sf /usr/local/musl/bin/musl-gcc /usr/local/bin/musl-gcc | ||
COPY ./cita-cli.git /build/cita-cli.git | ||
WORKDIR /build/cita-cli.git/cita-cli | ||
RUN rustup target add x86_64-unknown-linux-musl \ | ||
&& RUSTFLAGS='-A deprecated' cargo install --target x86_64-unknown-linux-musl --path . | ||
|
||
# build the citamon/agent-cita-exporter docker image | ||
FROM ubuntu:18.04 AS final | ||
COPY --from=builder /usr/local/cargo/bin/cita-cli /bin/cita-cli | ||
RUN chmod +x /bin/cita-cli | ||
WORKDIR /config | ||
ADD . /config | ||
COPY ./cita_monitor_agent.py ./requirements.txt /config/ | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
python3 \ | ||
python3-pip \ | ||
libcurl4-openssl-dev \ | ||
&& apt-get clean \ | ||
&& apt-get autoclean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
&& apt-get install -y python3 python3-pip libcurl4-openssl-dev \ | ||
&& apt-get clean \ | ||
&& apt-get autoclean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN pip3 install -r requirements.txt | ||
RUN mv cita-cli /bin/cita-cli && chmod +x /bin/cita-cli | ||
ENV PORT=1923 | ||
CMD "python3" "cita_monitor_agent.py" "$NODE_IP_PORT" "$PORT" "$NODE_DIR" | ||
|
Binary file not shown.
Submodule cita-cli.git
added at
199129
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
version: "3" | ||
services: | ||
|
||
citamon_agent_host_exporter: | ||
image: prom/node-exporter:v0.18.0 | ||
hostname: host_exporter | ||
container_name: citamon_agent_host_exporter | ||
volumes: | ||
- /proc:/host/proc | ||
- /sys:/host/sys | ||
- /:/host/rootfs | ||
- /etc/localtime:/etc/localtime | ||
command: "--path.procfs='/host/proc' --path.sysfs='/host/sys' --path.rootfs='/host/rootfs'" | ||
networks: | ||
- citamon-agent-net | ||
|
||
citamon_agent_process_exporter: | ||
build: | ||
context: ./process_exporter/process-exporter.git | ||
dockerfile: Dockerfile | ||
image: citamon/agent-process-exporter:0.4.0 | ||
hostname: process_exporter | ||
container_name: citamon_agent_process_exporter | ||
volumes: | ||
- /proc:/host/proc | ||
- ./process_exporter/config:/config | ||
- /etc/localtime:/etc/localtime | ||
command: "--procfs /host/proc --config.path /config/process_list.yml" | ||
networks: | ||
- citamon-agent-net | ||
|
||
citamon_agent_rabbitmq_exporter: | ||
build: | ||
context: ./rabbitmq_exporter/rabbitmq_exporter.git | ||
dockerfile: Dockerfile | ||
image: citamon/agent-rabbitmq-exporter:1.0.0-RC | ||
hostname: rabbitmq_exporter | ||
container_name: citamon_agent_rabbitmq_exporter | ||
network_mode: "host" | ||
volumes: | ||
- /etc/localtime:/etc/localtime | ||
environment: | ||
- "RABBIT_CAPABILITIES=bert,no_sort" | ||
|
||
citamon_agent_cita_exporter: | ||
build: | ||
context: ./cita_exporter | ||
dockerfile: Dockerfile | ||
image: citamon/agent-cita-exporter:20.2.2 | ||
hostname: ${HOSTNAME} | ||
container_name: citamon_agent_cita_exporter_${NODE_IP}_${NODE_PORT} | ||
pid: "host" | ||
volumes: | ||
- ${NODE_DIR}:${NODE_DIR}:ro | ||
- ${SOFT_PATH}:${SOFT_PATH}:ro | ||
- /etc/localtime:/etc/localtime | ||
environment: | ||
- NODE_IP_PORT=${NODE_IP}:${NODE_PORT} | ||
- NODE_DIR | ||
networks: | ||
- citamon-agent-net | ||
|
||
citamon_agent_proxy_exporter: | ||
image: nginx:1.16.0 | ||
hostname: proxy_exporter | ||
container_name: citamon_agent_proxy_exporter | ||
ports: | ||
- "1920:80" | ||
volumes: | ||
- ./nginx.template:/etc/nginx/conf.d/nginx.template | ||
environment: | ||
- NGINX_HOST=${NODE_IP} | ||
- NGINX_PORT=80 | ||
command: /bin/bash -c "envsubst < /etc/nginx/conf.d/nginx.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'" | ||
networks: | ||
- citamon-agent-net | ||
|
||
networks: | ||
citamon-agent-net: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Submodule process-exporter.git
added at
84b1fe
Submodule rabbitmq_exporter.git
added at
5c6995
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM grafana/grafana:5.4.2 | ||
FROM grafana/grafana:5.4.3 | ||
|
||
USER root | ||
|
||
|