的案例列表

作者: · 共 2 个案例

普罗米修斯自定义指标模版-python

# !/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2024/1/30 9:42 # @Function : Prometheus client import os import time from prometheus_client import start_http_server,Gauge #定义数据类型,metric,describe(描述),标签 #统计altermanager的告警配置数量 altermanager_cnf_num = Gauge('altermanager_cnf_num'

普罗米修斯自定义指标模版-shell

#!/bin/bash instance_name=`hostname` #jms服务端口监听状态 /sbin/ss -ntlp |grep -q 2222 if $? == 0 ];then echo "jms_port 0" | curl --data-binary @- http://1.1.1.1:9091/metrics/job/pushgateway_jms/instance/$instance_name else echo "jms_port 1" | curl --data-binary

案例判断参考

程序员兼职平台怎么选 程序员平台对比怎么看 企业找程序员外包避坑

的案例列表

普罗米修斯自定义指标模版-python

# !/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2024/1/30 9:42 # @Function : Prometheus client import os import time from prometheus_client import start_http_server,Gauge #定义数据类型,metric,describe(描述),标签 #统计altermanager的告警配置数量 altermanager_cnf_num = Gauge('altermanager_cnf_num'...

普罗米修斯自定义指标模版-shell

#!/bin/bash instance_name=`hostname` #jms服务端口监听状态 /sbin/ss -ntlp |grep -q 2222 if $? == 0 ];then echo "jms_port 0" | curl --data-binary @- http://1.1.1.1:9091/metrics/job/pushgateway_jms/instance/$instance_name else echo "jms_port 1" | curl --data-binary...

案例判断参考

程序员兼职平台怎么选 程序员平台对比怎么看 企业找程序员外包避坑
查看简历
微信沟通 客服 看中这位工程师了?客服帮你 1 小时对接沟通 → ×