经验首页 前端设计 程序设计 Java相关 移动开发 数据库/运维 软件/图像 大数据/云计算 其他经验
当前位置:技术经验 » 程序设计 » Docker » 查看文章
docker 安装prometheus
来源:cnblogs  作者:changjiangLi  时间:2019/10/11 8:42:05  对本文有异议

 

 

 使用到的命令:

  1. [root@lgswork ~]# docker search prometheus
  2. NAME DESCRIPTION STARS OFFICIAL AUTOMATED
  3. prom/prometheus 851 [OK]
  4. functions/prometheus prometheus 9 [OK]
  5. basi/prometheus-swarm A sample image that can be used as a base fo 8 [OK]
  6. bitnami/prometheus Bitnami Docker Image for Prometheus 8 [OK]
  7. infinityworks/prometheus-rancher-exporter Exposes Service/Stack/Host status from the R 7 [OK]
  8. linuxtips/prometheus_alpine Image to run Prometheus on Alpine Linux. #VA… 7 [OK]
  9. rycus86/prometheus Prometheus monitoring - prometheus.io 3 [OK]
  10. lloesche/prometheus-dcos Prometheus on DC/OS 2 [OK]
  11. openshift/prometheus Prometheus images for OpenShift 2
  12. vampouille/prometheus_rancher_metadata Expose rancher metadata 'create_index' field 1 [OK]
  13. alxrem/prometheus-logstash-exporter Prometheus exporter for metrics provided by 1 [OK]
  14. wehkamp/prometheus-cloudflare-exporter Prometheus Cloudflare exporter 1
  15. ibmcom/prometheus Docker Image for IBM Cloud Private-CE (Commu 1
  16. ansibleplaybookbundle/prometheus-apb An APB that deploys Prometheus 1 [OK]
  17. itwye/prometheus_client prometheus client for application create met 0 [OK]
  18. indicatorprotocol/prometheus-indicator-controller Prometheus indicator controller for Kubernet 0
  19. camptocamp/prometheus-server-rules-conf Docker image for Prometheus recording rules 0 [OK]
  20. camptocamp/prometheus-server-conf Image for prometheus-server-conf 0 [OK]
  21. mthenw/prometheus-ecs-discovery https://github.com/teralytics/prometheus-ecs… 0 [OK]
  22. bzon/prometheus-msteams Prometheus Alerts for Microsoft Teams 0
  23. carlosedp/prometheus Prometheus images for ARM/ARM64 0
  24. solsson/prometheus-exporter-apache https://github.com/prometheus/prometheus/wik… 0 [OK]
  25. camptocamp/prometheus-config-merger Merge multiple yaml snippets into one, and r 0 [OK]
  26. camptocamp/prometheus-rancher-metadata-conf rancher-metadata confd prometheus template 0 [OK]
  27. braedon/prometheus-es-exporter Elasticsearch query Prometheus exporter 0 [OK]
  28. [root@lgswork ~]# docker pull prometheus
  29. Using default tag: latest
  30. Error response from daemon: pull access denied for prometheus, repository does not exist or may require 'docker login'
  31. [root@lgswork ~]# docker pull quay.io/prometheus/prometheus
  32. Using default tag: latest
  33. latest: Pulling from prometheus/prometheus
  34. 8e674ad76dce: Pull complete
  35. e77d2419d1c2: Pull complete
  36. 404121236cc3: Pull complete
  37. 9177a3dd2b55: Pull complete
  38. 322a0ba168eb: Pull complete
  39. a6d55ecbc9e1: Pull complete
  40. bd9aab1d6b43: Pull complete
  41. afbd972630e5: Pull complete
  42. 1196a163e012: Pull complete
  43. Digest: sha256:2ff2d910742194d5e57e555e4b2314620bb8d444ab4a7711a2bfe2b1840092d7
  44. Status: Downloaded newer image for quay.io/prometheus/prometheus:latest
  45. [root@lgswork ~]# docker images
  46. REPOSITORY TAG IMAGE ID CREATED SIZE
  47. quay.io/prometheus/prometheus latest a3d30ee5b98b 5 days ago 128MB
  48. 192.168.21.76:5000/jiang-erauke 0.0.1-SNAPSHOT e99705190391 2 months ago 659MB
  49. jdk1.8 latest a09b9868214b 2 months ago 598MB
  50. 192.168.21.76:5000/jdk1.8 latest a09b9868214b 2 months ago 598MB
  51. zookeeper 3.5 13681ca86f62 2 months ago 225MB
  52. gogs/gogs latest 544dcfc7bef8 3 months ago 100MB
  53. mysql 5.7 a1aa4f76fab9 4 months ago 373MB
  54. mongo latest 5976dac61f4f 4 months ago 411MB
  55. docker latest af42f41a7d73 5 months ago 171MB
  56. rancher/server latest d4fb2bbe38af 5 months ago 1.09GB
  57. centos/mysql-57-centos7 latest e35b3f7a4ea0 6 months ago 452MB
  58. foxiswho/rocketmq server-4.3.2 6741b897d310 6 months ago 383MB
  59. centos 7 9f38484d220f 6 months ago 202MB
搜索下载 查看

执行命令安装

  1. [root@lgswork ~]# docker run --name prometheus -d -p 9098:9090 quay.io/prometheus/prometheus
  2. 4c15a14b686be30fd765693143834b55ab07980a09fb625c335c54258d348b0b
  3. [root@lgswork ~]#

 

 

Docker 管理 prometheus

  1. [root@lgswork ~]# docker ps | grep prometheus
  2. 1cc32417503f quay.io/prometheus/prometheus "/bin/prometheus --c…" About a minute ago Up About a minute 127.0.0.1:9098->9090/tcp prometheus
  3. [root@lgswork ~]#
View Code

运行 docker start prometheus 启动服务

运行 docker stats prometheus 查看 prometheus 状态

运行 docker stop prometheus 停止服务

 

原文链接:http://www.cnblogs.com/ideajiang/p/11649361.html

 友情链接:直通硅谷  点职佳  北美留学生论坛

本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728

W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。
关于我们  |  意见建议  |  捐助我们  |  报错有奖  |  广告合作、友情链接(目前9元/月)请联系QQ:27243702 沸活量
皖ICP备17017327号-2 皖公网安备34020702000426号