-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove dockerize in favor of Dockerfile, pid 1 fix
also change default prometheus port from 9090 to 9191 to not conflict with marathon-lb
- Loading branch information
Showing
6 changed files
with
35 additions
and
59 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 |
---|---|---|
@@ -1,12 +1,31 @@ | ||
FROM grafana/grafana:3.1.1 | ||
MAINTAINER Buoyant, Inc. <hello@buoyant.io> | ||
|
||
EXPOSE 3000 9191 | ||
|
||
RUN apt-get update && \ | ||
apt-get -y --no-install-recommends install curl | ||
apt-get -y --no-install-recommends install curl wget | ||
|
||
RUN mkdir -p /etc/grafana/dashboards | ||
RUN mkdir -p /etc/prometheus | ||
|
||
# prometheus setup | ||
|
||
RUN wget https://github.com/prometheus/prometheus/releases/download/v1.4.1/prometheus-1.4.1.linux-amd64.tar.gz | ||
RUN tar -xf /prometheus-1.4.1.linux-amd64.tar.gz | ||
|
||
RUN cp /prometheus-1.4.1.linux-amd64/prometheus /bin/ | ||
RUN cp /prometheus-1.4.1.linux-amd64/promtool /bin/ | ||
RUN cp -a /prometheus-1.4.1.linux-amd64/console_libraries /etc/prometheus/ | ||
RUN cp -a /prometheus-1.4.1.linux-amd64/consoles /etc/prometheus/ | ||
|
||
RUN rm -rf /prometheus-1.4.1.linux-amd64* | ||
|
||
COPY . / | ||
COPY etc/grafana/dashboards/linkerd-viz-dashboard.json /usr/share/grafana/public/dashboards/home.json | ||
# linkerd-viz setup | ||
|
||
EXPOSE 3000 9090 | ||
COPY linkerd-viz /linkerd-viz | ||
COPY */prometheus-*.yml /etc/prometheus/ | ||
COPY linkerd-viz-dashboard.json /etc/grafana/dashboards/linkerd-viz-dashboard.json | ||
COPY linkerd-viz-dashboard.json /usr/share/grafana/public/dashboards/home.json | ||
|
||
ENTRYPOINT [ "/linkerd-viz" ] |
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
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