prometheus 监控jvm-tomcat 1.prometheus的配置- job_name: 'java01' #按照这个来分组 scrape_interval: 10s static_configs: - targets: ['192.168.1.44:6060'] labels: instance: jvm442.jmx-export...
centos7 的system 1.vim /etc/systemd/system/alertmanager.service[Unit]Description=AlertmanagerAfter=network-online.target[Service]Restart=on-failureExecStart=/usr/local/alertmanager-0.15.2.linux-am...
看kubelet的日志 + Kubeadm安装Kubernetes环境 1.通过journalctl看日志journalctl -xeu kubelet > a参考:https://www.cnblogs.com/ericnie/p/7749588.html转载于:https://www.cnblogs.com/hixiaowei/p/11606280.html
federate - Prometheus outside k8s cluster + 总体架构图 1.实验的架构2.k8s 集群外的Prometheus的配置文件[root@do1cloud03 prometheus]# cat prometheus.yml |egrep -v '#'global:alerting: alertmanagers: - static_configs: - targets:rule_...
centos7清楚journal日志 1.只保留1天的日志journalctl --vacuum-time=1d参考:https://blog.csdn.net/ithomer/article/details/90634579转载于:https://www.cnblogs.com/hixiaowei/p/11586246.html
蓝鲸智云安装proxy和p-agent过程记录 1.agent_setup_pro.sh: no such file or directory2.参考:https://bk.tencent.com/s-mart/community/question/2043.vim /data/install/globals.env 4.修改180s超时-->在节点管理那里修改成3600转载于:https://www...
python 调试技巧 1.以前都是用print来定位哪里报错,后面发现一个新的调试技巧import pdbfor i in range(nrows): if i < 20: content = table.row_values(i) print(content) pdb.set_trace() 转载于...
prometheus 的promsql的经典例子 1.多维度数据2.Prometheus的全局监控指标只需要定义一个全局的指标container_memory_usage_bytes,然后通过添加不同的维度数据来满足不同的业务需求3.Prometheus的prom SQL使用的模板1.统计不同运行环境中 webapp 容器内存使用总量:sum(container_memory_usage_bytes...
拿下id_rsa ssh配置公私钥远程登录Linux主机ssh-keygencat id_rsa.pub >>authorized_keyscat authorized_keys拿下id_rsahttps://blog.csdn.net/lynnyq/article/details/79109992转载于:https://www.cnblogs.com/h...
elasticsearch 7.1 401 Unauthorized 1.执行curl -XGET 'localhost:9200/_cat/indices?v&pretty' 报4012.修改配置xpack.security.enabled: false - true3.就可以了转载于:https://www.cnblogs.com/hixiaowei/p/11460723.html...
hbase数据导出和恢复 设置双master 1.备份TETST111hbase org.apache.hadoop.hbase.mapreduce.Export TEST111 /do1/hh2.drop 掉test111表 -- 只能drop,不能delete -- 坑3.重新创建表create table test111 (id varchar, firstname varchar, lastname varchar ...
修改umask后apache报错:because search permissions are missing on a component of the path, 0.修改umask后apache报错:because search permissions are missing on a component of the path,1.ls -lrth ./htdocs/rwx--------2.处理方法:chmod -R o+rxw ./htdocs转载于:https://www.cnblogs.com/hixiaowei/p/...
Hbase标准配置文件 1.可用配置文件<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="configuration.xsl"?><!--/** * * Licensed to the Apache Software Foundation (ASF) under one * or ...
开启phoenix命名空间的自动映射 1.在测试环境hbase全部集群的hbase-site.xml配置文件都加上这个配置,开启phoenix命名空间的自动映射<property> <name>phoenix.schema.isNamespaceMappingEnabled</name> <value>true</value><...
SQuirreL连接Phoenix报java.util.concurrent.TimeoutException 1.表象java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask.get(FutureTask.java:205) at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.awaitCo...
Hbase和Hadoop的内存参数调优 + 前端控制台 1.hadoop的内存配置调优mapred-site.xml的内存调整<property><name>mapreduce.map.memory.mb</name><value>1536</value></property><property><name>mapr...
利用pycharm 安装tushare(转) + dir(ts) 1.在pycharm里,有安装组件的方法,进入 File - Setting - Project:StockMarket - Project InterPreter,在右边点击“+”,进入搜索页面,搜索到就可以点击左下的Install Package进行安装。2.脚本的名称叫tushare.py,(get_hist_data)的时报错:AttributeError:'modul...
部署kubernetes-prometheus和用kubespray部署kubernetes后修改kubelet的 1.kubespray的配置文件/opt/kubespray/inventory/mycluster/group_vars/all/all.yml# kube_read_only_port: 102552.kubelet的配置文件vim /etc/kubernetes/kubelet-config.yamlreadOnlyPort: 102553.重启...
pandas - parse-date 1.pd.read_csv()函数中parse_dates()参数boolean. True -> 解析索引boolean. If True -> try parsing the index.如果是true,那就把索引解析成日期转载于:https://www.cnblogs.com/hixiaowei/p/11407059.html...