Welcome to Hexo! This is your very first post. Check documentation for more info. If
more >>
Distance
Welcome to Hexo! This is your very first post. Check documentation for more info. If
more >>1 | git clone https://github.com/redhatxl/k8s-prometheus-grafana.git |
1 |
|
1 | node-exporter.yaml |
1 | kubectl create -f node-exporter.yaml |
1 | rbac-setup.yaml |
1 | kubectl create -f rbac-setup.yaml |
1 | configmap.yaml |
1 | kubectl create -f configmap.yaml |
1 | prometheus.deploy.yml |
1 | kubectl create -f prometheus.deploy.yml |
1 | prometheus.svc.yml |
1 | kubectl create -f prometheus.svc.yml |
1 | grafana-deploy.yaml |
1 | kubectl appply -f grafana-deploy.yaml |
1 | grafana-svc.yaml |
1 | kubectl apply -f grafana-svc.yaml |
1 | grafana-ing.yaml |
1 | kubectl apply -f grafana-ing.yaml |
http://node-ip:31672/metrics (一般是主节点)
本地实例 http://192.168.0.3:31672/metricshttp://node-ip:30003/target (一般是主节点)
本地实例 http://192.168.0.3:30003/targetskubectl get pods -n kube-system -o wide
http://node-ip:30738/
本地实例 http://192.168.0.2:30738/创建prometheus的监控配置
http://192.168.0.2:30738/datasources/new
name: 随便
type: prometheus
url: http://prometheus:9090 [本实例使用](https://grafana.com/dashboards/315)模板
http://192.168.0.2:30738/dashboard/new?editview=import&orgId=11 | { |
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true