Permalink
Browse files

Remove golden binaries - replace with curl

  • Loading branch information...
alexellis committed Sep 24, 2016
1 parent 26868cc commit d90900a0607e6caee895faf35a1a5fe2118aee48
Showing with 51 additions and 1,824 deletions.
  1. +16 −7 prometheus/Dockerfile
  2. +35 −0 prometheus/README.md
  3. +0 −58 prometheus/README.txt
  4. +0 −148 prometheus/console_libraries/menu.lib
  5. +0 −133 prometheus/console_libraries/prom.lib
  6. +0 −45 prometheus/consoles/aws_elasticache.html
  7. +0 −46 prometheus/consoles/aws_elb.html
  8. +0 −83 prometheus/consoles/aws_redshift-cluster.html
  9. +0 −28 prometheus/consoles/aws_redshift.html
  10. +0 −52 prometheus/consoles/blackbox.html
  11. +0 −77 prometheus/consoles/cassandra.html
  12. +0 −19 prometheus/consoles/cloudwatch.html
  13. +0 −58 prometheus/consoles/haproxy-backend.html
  14. +0 −29 prometheus/consoles/haproxy-backends.html
  15. +0 −45 prometheus/consoles/haproxy-frontend.html
  16. +0 −25 prometheus/consoles/haproxy-frontends.html
  17. +0 −84 prometheus/consoles/haproxy.html
  18. +0 −48 prometheus/consoles/index.html
  19. +0 −60 prometheus/consoles/node-cpu.html
  20. +0 −76 prometheus/consoles/node-disk.html
  21. +0 −121 prometheus/consoles/node-overview.html
  22. +0 −34 prometheus/consoles/node.html
  23. +0 −125 prometheus/consoles/prometheus-overview.html
  24. +0 −35 prometheus/consoles/prometheus.html
  25. +0 −36 prometheus/consoles/snmp-overview.html
  26. +0 −41 prometheus/consoles/snmp.html
  27. BIN prometheus/data/84/ff970888a54318.db
  28. +0 −1 prometheus/data/VERSION
  29. BIN prometheus/data/a3/99144ce35b4d41.db
  30. 0 prometheus/data/archived_fingerprint_to_metric/000001.log
  31. +0 −1 prometheus/data/archived_fingerprint_to_metric/CURRENT
  32. 0 prometheus/data/archived_fingerprint_to_metric/LOCK
  33. +0 −8 prometheus/data/archived_fingerprint_to_metric/LOG
  34. BIN prometheus/data/archived_fingerprint_to_metric/MANIFEST-000000
  35. 0 prometheus/data/archived_fingerprint_to_timerange/000001.log
  36. +0 −1 prometheus/data/archived_fingerprint_to_timerange/CURRENT
  37. 0 prometheus/data/archived_fingerprint_to_timerange/LOCK
  38. +0 −8 prometheus/data/archived_fingerprint_to_timerange/LOG
  39. BIN prometheus/data/archived_fingerprint_to_timerange/MANIFEST-000000
  40. BIN prometheus/data/e8/a4eb2ac4af83af.db
  41. BIN prometheus/data/heads.db
  42. BIN prometheus/data/labelname_to_labelvalues/000001.log
  43. +0 −1 prometheus/data/labelname_to_labelvalues/CURRENT
  44. 0 prometheus/data/labelname_to_labelvalues/LOCK
  45. +0 −8 prometheus/data/labelname_to_labelvalues/LOG
  46. BIN prometheus/data/labelname_to_labelvalues/MANIFEST-000000
  47. BIN prometheus/data/labelpair_to_fingerprints/000001.log
  48. +0 −1 prometheus/data/labelpair_to_fingerprints/CURRENT
  49. 0 prometheus/data/labelpair_to_fingerprints/LOCK
  50. +0 −8 prometheus/data/labelpair_to_fingerprints/LOG
  51. BIN prometheus/data/labelpair_to_fingerprints/MANIFEST-000000
  52. BIN prometheus/data/mappings.db
  53. +0 −201 prometheus/license/LICENSE
  54. +0 −73 prometheus/license/NOTICE
  55. BIN prometheus/prometheus
  56. BIN prometheus/promtool
View
@@ -1,20 +1,29 @@
FROM armbuild/debian
FROM resin/rpi-raspbian:latest
MAINTAINER "Ajeet Singh Raina" <ajeetraina@gmail.com>
RUN apt-get update && apt-get install -qy curl ca-certificates
WORKDIR /root/
RUN mkdir /root/prometheus
RUN curl -sSLO https://s3-eu-west-1.amazonaws.com/downloads.robustperception.io/prometheus/prometheus-linux-arm-nightly.tar.gz && \
tar -xvf prometheus-linux-arm-nightly.tar.gz -C /root/prometheus/ --strip-components=1 && \
rm prometheus-linux-arm-nightly.tar.gz
workdir /root/prometheus
RUN mkdir -p /usr/share/prometheus
RUN mkdir -p /etc/prometheus
COPY prometheus /bin/prometheus
COPY promtool /bin/promtool
COPY console_libraries/ /usr/share/prometheus/console_libraries/
COPY consoles/ /usr/share/prometheus/consoles/
RUN mv ./prometheus /usr/bin/
RUN mv ./promtool /usr/bin/
RUN mv ./console_libraries /usr/share/prometheus/
RUN mv ./consoles /usr/share/prometheus/
RUN ln -s /usr/share/prometheus/console_libraries /etc/prometheus/
EXPOSE 9090
VOLUME [ "/prometheus" ]
WORKDIR /prometheus
ENTRYPOINT [ "/bin/prometheus" ]
ENTRYPOINT [ "/usr/bin/prometheus" ]
CMD ["-config.file=/etc/prometheus/prometheus.yml", \
"-storage.local.path=/prometheus", \
"-web.console.libraries=/usr/share/prometheus/console_libraries", \
View
@@ -0,0 +1,35 @@
# A Dockerized Prometheus Image for Raspberry Pi 2/3
Prometheus is a systems and service monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts if some condition is observed to be true.
In case you are Raspberry Pi user and want to try it, check this out !
Features
-------------
Prometheus's main features are:
- a multi-dimensional data model (time series identified by metric name and key/value pairs)
- a flexible query language to leverage this dimensionality
- no reliance on distributed storage; single server nodes are autonomous
- time series collection happens via a pull model over HTTP
- pushing time series is supported via an intermediary gateway
- targets are discovered via service discovery or static configuration
- multiple modes of graphing and dashboarding support
To learn more, refer : https://prometheus.io/docs/introduction/overview/
Tested Platform
--------------------
Raspberry Pi 2/3
How to run this Docker Image?
----------------------------------------
```sh
$ docker build -t prometheus-armv7 .
$ docker run -d --net=host -v `pwd`/prometheus.yml:/etc/prometheus/prometheus.yml prometheus-armv7
```
View
@@ -1,58 +0,0 @@
How to build this Image
pi@raspberrypi:~/ajeetraina-promo/prometheus $ sudo docker build -t ajeetraina/prometheus-armh7 .
Sending build context to Docker daemon 38.24 MB
Step 1 : FROM armbuild/debian
---> e9bcf72ae729
Step 2 : MAINTAINER "Ajeet Singh Raina" <ajeetraina@gmail.com>
---> Using cache
---> 11b8679a8d5c
Step 3 : RUN mkdir -p /usr/share/prometheus
---> Using cache
---> 7fa309215658
Step 4 : RUN mkdir -p /etc/prometheus
---> Running in 2af07c9db599
---> 94812db69c0e
Removing intermediate container 2af07c9db599
Step 5 : COPY prometheus /bin/prometheus
---> 2d96afcecbfe
Removing intermediate container cccca8fc4f0b
Step 6 : COPY promtool /bin/promtool
---> c5cc25eb5bf9
Removing intermediate container d7127ed1c738
Step 7 : COPY console_libraries/ /usr/share/prometheus/console_libraries/
---> 39892edbb891
Removing intermediate container f1afed03c63c
Step 8 : COPY consoles/ /usr/share/prometheus/consoles/
---> f3ea7107a312
Removing intermediate container a11651587ced
Step 9 : RUN ln -s /usr/share/prometheus/console_libraries /etc/prometheus/
---> Running in 7df4665e99e7
---> a852aef97e35
Removing intermediate container 7df4665e99e7
Step 10 : EXPOSE 9090
---> Running in b7c7c289702e
---> 8a5bec400745
Removing intermediate container b7c7c289702e
Step 11 : VOLUME /prometheus
---> Running in f62d9a1ea743
---> 519f33a7360e
Removing intermediate container f62d9a1ea743
Step 12 : WORKDIR /prometheus
---> Running in 96010ea43ab3
---> 8e9027385551
Removing intermediate container 96010ea43ab3
Step 13 : ENTRYPOINT /bin/prometheus
---> Running in 8ab5e125de5e
---> 019fe0c11545
Removing intermediate container 8ab5e125de5e
Step 14 : CMD -config.file=/etc/prometheus/prometheus.yml -storage.local.path=/prometheus -web.console.libraries=/usr/share/prometheus/console_libraries -web.console.templates=/usr/share/prometheus/consoles
---> Running in 8cfcc9d3216c
---> a2193c756fd5
Removing intermediate container 8cfcc9d3216c
Successfully built a2193c756fd5
pi@raspberrypi:~/ajeetraina-promo/prometheus $
@@ -1,148 +0,0 @@
{{/* vim: set ft=html: */}}
{{/* Navbar, should be passed . */}}
{{ define "navbar" }}
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ pathPrefix }}/">Prometheus</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="{{ pathPrefix }}/alerts">Alerts</a></li>
<li><a href="https://www.pagerduty.com/">PagerDuty</a></li>
</div>
</ul>
</div>
</nav>
{{ end }}
{{/* LHS menu, should be passed . */}}
{{ define "menu" }}
<div class="prom_lhs_menu">
<ul>
{{ template "_menuItem" (args . "index.html" "Overview") }}
{{ if query "up{job='haproxy'}" }}
{{ template "_menuItem" (args . "haproxy.html" "HAProxy") }}
{{ if match "^haproxy" .Path }}
<ul>
{{ template "_menuItem" (args . "haproxy-frontends.html" "Frontends") }}
{{ if .Params.frontend }}
<li>
<ul>
<li>
<a href="haproxy-frontend.html?frontend={{ .Params.frontend }}">{{ .Params.frontend }}</a></li>
</ul>
</li>
{{ end }}
{{ template "_menuItem" (args . "haproxy-backends.html" "Backends") }}
{{ if .Params.backend }}
<li>
<ul>
<li>
<a href="haproxy-backend.html?backend={{ .Params.backend }}">{{ .Params.backend }}</a></li>
</ul>
</li>
{{ end }}
</ul>
{{ end }}
{{ end }}
{{ if query "up{job='cassandra'}" }}
{{ template "_menuItem" (args . "cassandra.html" "Cassandra") }}
{{ end }}
{{ if query "up{job='blackbox'}" }}
{{ template "_menuItem" (args . "blackbox.html" "Blackbox") }}
{{ end }}
{{ if query "up{job='node'}" }}
{{ template "_menuItem" (args . "node.html" "Node") }}
{{ if match "^node" .Path }}
{{ if .Params.instance }}
<ul>
<li {{ if eq .Path "node-overview.html" }}class="prom_lhs_menu_selected"{{ end }}>
<a href="node-overview.html?instance={{ .Params.instance }}">{{ reReplaceAll "(.*?://)([^:/]+?)(:\\d+)?/.*" "$2" .Params.instance }}</a>
</li>
<ul>
<li {{ if eq .Path "node-cpu.html" }}class="prom_lhs_menu_selected"{{ end }}>
<a href="node-cpu.html?instance={{ .Params.instance }}">CPU</a>
</li>
<li {{ if eq .Path "node-disk.html" }}class="prom_lhs_menu_selected"{{ end }}>
<a href="node-disk.html?instance={{ .Params.instance }}">Disk</a>
</li>
</ul>
</ul>
{{ end }}
{{ end }}
{{ end }}
{{ if query "up{job='prometheus'}" }}
{{ template "_menuItem" (args . "prometheus.html" "Prometheus") }}
{{ if match "^prometheus" .Path }}
{{ if .Params.instance }}
<ul>
<li {{ if eq .Path "prometheus-overview.html" }}class="prom_lhs_menu_selected"{{ end }}>
<a href="prometheus-overview.html?instance={{ .Params.instance }}">{{.Params.instance }}</a>
</li>
</ul>
{{ end }}
{{ end }}
{{ end }}
{{ if query "up{job='snmp'}" }}
{{ template "_menuItem" (args . "snmp.html" "SNMP") }}
{{ if match "^snmp" .Path }}
{{ if .Params.instance }}
<ul>
<li {{ if eq .Path "snmp-overview.html" }}class="prom_lhs_menu_selected"{{ end }}>
<a href="snmp-overview.html?instance={{ .Params.instance }}">{{.Params.instance }}</a>
</li>
</ul>
{{ end }}
{{ end }}
{{ end }}
{{ if query "up{job='cloudwatch'}" }}
{{ template "_menuItem" (args . "cloudwatch.html" "CloudWatch") }}
{{ end }}
{{ if query "aws_elasticache_cpuutilization_average{job='aws_elasticache'}" }}
{{ template "_menuItem" (args . "aws_elasticache.html" "ElastiCache") }}
{{ end }}
{{ if query "aws_elb_healthy_host_count_average{job='aws_elb'}" }}
{{ template "_menuItem" (args . "aws_elb.html" "ELB") }}
{{ end }}
{{ if query "aws_redshift_health_status_average{job='aws_redshift'}" }}
{{ template "_menuItem" (args . "aws_redshift.html" "Redshift") }}
{{ if and (eq "aws_redshift-cluster.html" .Path) .Params.cluster_identifier }}
<ul>
<li class="prom_lhs_menu_selected">
{{ reReplaceAll "^(.{8}).{8,}(.{8})$" "$1...$2" .Params.cluster_identifier }}
</li>
</ul>
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}
{{/* Helper, pass (args . path name) */}}
{{ define "_menuItem" }}
<li {{ if eq .arg0.Path .arg1 }} class="prom_lhs_menu_selected" {{ end }}><a href="{{ .arg1 }}">{{ .arg2 }}</a></li>
{{ end }}
Oops, something went wrong.

0 comments on commit d90900a

Please sign in to comment.