-
2 年前
-
2 年前
RabbitMQ 监控信息采集并上报falcon
rabbitmq
上报逻辑 从rabbitmq-server的api接口读取相关数据,然后推送到falco-agent 汇报字段说明 key tag type note rabbitmq.messages_ready name(Queue名字) GAUGE 队列中处于等待被消费状态消息数 rabbitmq.messages_una…
-
2 年前
redis-dump 数据导出和redis-load 还原数据
运维技术 redis
一 、安装Ruby依赖 Centos 安装Ruby环境 yum -y install ruby ruby-devel yum -y install rubygems 添加taobao Ruby镜像 gem sources --add http://gems.ruby-china.org --removehttps://rubygems.org/ http://gems.ruby-chi…
-
2 年前
paramiko.ssh_exception.AuthenticationException: Authentication failed.
系统环境 centos7.2 python3.7 paramiko 2.11.0 报错如下,但是直接通过ssh是可以通过验证并连上服务器 Traceback (most recent call last): File "remote_ssh.py", line 19, in <module> ssh.connect(host,22,'root',pkey=k…
-
2 年前
Object of type QuerySet is not JSON serializable
python
在Django框架中,我们不能直接将QuerySet对象通过,不能直接将QuerySet当成json传递给其他函数或者类。 否则会报错:Object of type 'QuerySet' is not JSON serializable 解决方法 方法一: 将querySet对象进行序列化 from django.core import serializers gsobj = se…