Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
180 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Override for Makefile | ||
[{Makefile, makefile, GNUmakefile}] | ||
indent_style = tab | ||
indent_size = 4 |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
VERSION=1.0.0 | ||
|
||
cd ~/git/prometheus-proxy | ||
|
||
docker build -f ./docker/base.df -t=pambrose/prometheus-base:$VERSION . | ||
docker build -f ./docker/proxy.df -t=pambrose/prometheus-proxy:$VERSION . | ||
docker build -f ./docker/agent.df -t=pambrose/prometheus-agent:$VERSION . |
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,9 @@ | ||
FROM pambrose/prometheus-proxy:1.0.0 | ||
MAINTAINER Paul Ambrose "pambrose@mac.com" | ||
|
||
EXPOSE 8081 | ||
|
||
ENTRYPOINT ["/prometheus-proxy/bin/proxy.sh", \ | ||
"--metrics", "8081", \ | ||
"--grpc", "50051"] | ||
|
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,10 @@ | ||
FROM frolvlad/alpine-oraclejdk8:latest | ||
MAINTAINER Paul Ambrose "pambrose@mac.com" | ||
|
||
COPY ./target/bin /prometheus-proxy | ||
COPY ./target/classes /prometheus-proxy | ||
COPY ./target/lib /prometheus-proxy | ||
COPY ./logback/docker-logback.xml /prometheus-proxy/logback/logback.xml | ||
|
||
CMD ["bash"] | ||
|
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,19 +1,13 @@ | ||
FROM java:8 | ||
FROM pambrose/prometheus-proxy:1.0.0 | ||
MAINTAINER Paul Ambrose "pambrose@mac.com" | ||
|
||
RUN apt-get update | ||
RUN apt-get -y install maven | ||
RUN apt-get -y install git | ||
RUN apt-get -y install make | ||
RUN apt-get -y install docker | ||
RUN apt-get -y install --no-install-recommends apt-utils | ||
RUN apt-get -y clean | ||
EXPOSE 8080 | ||
EXPOSE 8081 | ||
EXPOSE 50051 | ||
|
||
RUN mvn --version | ||
ENTRYPOINT ["/prometheus-proxy/bin/proxy.sh", \ | ||
"--port", "8080", \ | ||
"--metrics", "8081", \ | ||
"--grpc", "50051"] | ||
|
||
RUN mkdir /git | ||
RUN cd /git && git clone https://github.com/pambrose/prometheus-proxy.git | ||
RUN cd /git/prometheus-proxy && make build | ||
|
||
WORKDIR /git/haptava-system | ||
|
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,18 @@ | ||
<configuration scan="true" scanPeriod="30 seconds"> | ||
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern> | ||
%d{HH:mm:ss.SSS} %-5level [%file:%line] - %msg [%thread]%n | ||
</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<logger name="io.grpc.internal" level="WARN"/> | ||
<logger name="spark.http.matching" level="WARN"/> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
|
||
</configuration> |
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