docker 配置普罗米修斯
作者:互联网
普罗米修斯官网下载镜像和运行容器:
[root@k8s-2 ~]# docker run -d \
> --name=prometheus \
> -p 9090:9090 \
> prom/prometheus
946b5de6604853a0668278194db20f58c26bc944b0566236531b84b2d2911ffe
[root@k8s-2 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
946b5de66048 prom/prometheus "/bin/prometheus --c…" 4 seconds ago Up 3 seconds 0.0.0.0:9090->9090/tcp, :::9090->9090/tcp prometheus
[root@k8s-2 ~]#ss -anlp|grep 9090
tcp LISTEN 0 128 *:9090 *:* users:(("docker-proxy",pid=6534,fd=4))
tcp LISTEN 0 128 [::]:9090 [::]:* users:(("docker-proxy",pid=6540,fd=4))
[root@k8s-2 ~]# wget 192.168.121.132:9090
--2021-04-27 23:35:57-- http://192.168.121.132:9090/
Connecting to 192.168.121.132:9090... connected.
HTTP request sent, awaiting response... 302 Found
Location: /graph [following]
--2021-04-27 23:35:57-- http://192.168.121.132:9090/graph
Reusing existing connection to 192.168.121.132:9090.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html.12’
[ <=> ] 2,303 --.-K/s in 0s
2021-04-27 23:35:57 (78.0 MB/s) - ‘index.html.12’ saved [2303]
标签:--,普罗米修斯,配置,9090,192.168,tcp,docker,121.132 来源: https://www.cnblogs.com/jamespeng/p/14713459.html