会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
風£飛
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
···
18
下一页
2023年9月7日
SQLAlchemy模块
摘要: 1、执行原生SQL from sqlalchemy import create_engine, text # 创建engine对象 engine = create_engine("sqlite:///demo.db", echo=False) with engine.connect() as con
阅读全文
posted @ 2023-09-07 15:56 風£飛
阅读(52)
评论(0)
推荐(0)
2023年9月1日
Jinja2模块生成html
摘要: 1、html模板,文件名为:template.html <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>Title</t
阅读全文
posted @ 2023-09-01 15:04 風£飛
阅读(174)
评论(0)
推荐(0)
2023年8月28日
Python查询Prometheus API
摘要: #!/bin/python # -*- coding: utf-8 -*- import pandas as pd import requests, time, re def getcolumn(status, x): if float(status) < 80: return "正常" # eli
阅读全文
posted @ 2023-08-28 17:25 風£飛
阅读(159)
评论(0)
推荐(0)
2023年8月23日
K8S pod挂载存储卷
摘要: 1、hostpath方式 # hostpath挂载方式 apiVersion: apps/v1 kind: Deployment metadata: labels: app: grafana name: grafana spec: selector: matchLabels: app: grafan
阅读全文
posted @ 2023-08-23 16:34 風£飛
阅读(117)
评论(0)
推荐(0)
2023年8月21日
K8S部署
摘要: 一、Kubeadm部署k8s单master集群1、配置hosts cat >> /etc/hosts << EOF 192.168.140.129 master 192.168.140.130 node1 192.168.140.131 node2 185.199.109.133 raw.githu
阅读全文
posted @ 2023-08-21 15:49 風£飛
阅读(455)
评论(0)
推荐(1)
2023年8月18日
Python optparse模块
摘要: #!/usr/bin/python3.8 # -*- coding:utf-8 -*- # __author__ = 'Qiushi Huang' import optparse # sys.argv的功能类似 # python ftp_client.py -h 192.168.22.33 -p 8
阅读全文
posted @ 2023-08-18 09:12 風£飛
阅读(23)
评论(0)
推荐(0)
2023年8月16日
使用grafana展示SQLite数据库表中的数据
摘要: 1、环境准备 yum -y install epel-release yum -y install sqlite sqlite-devel yum -y install python-pip pip install --upgrade setuptools yum list available py
阅读全文
posted @ 2023-08-16 13:02 風£飛
阅读(650)
评论(0)
推荐(0)
2023年7月19日
Loki部署
摘要: 一、安装grafana [root@loki ~]# yum install -y https://dl.grafana.com/enterprise/release/grafana-enterprise-10.0.0-1.x86_64.rpm二、安装loki[root@loki ~]# wget
阅读全文
posted @ 2023-07-19 14:03 風£飛
阅读(466)
评论(0)
推荐(0)
2023年6月14日
URL检测脚本
摘要: #!/usr/bin/python3.8 # -*- coding:UTF-8 -*- import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from concurren
阅读全文
posted @ 2023-06-14 15:59 風£飛
阅读(58)
评论(0)
推荐(0)
2023年3月16日
Zabbix webhook配置
摘要: 5.x版本脚本 var Wechat = { token: null, to: null, message: null, parse_mode: null, sendMessage: function() { var params = { msgtype: "markdown", chat_id:
阅读全文
posted @ 2023-03-16 14:56 風£飛
阅读(175)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
18
下一页
公告