Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review the librarys #47

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
1ec8e72
Update README.md
yunlzheng May 4, 2018
d2a2569
Update SUMMARY.md
yunlzheng May 4, 2018
b1e9f75
merge change
yunlzheng May 4, 2018
d62d3ae
refactor what is prometheus exporter
yunlzheng May 5, 2018
41d5b83
refactor ch4 structure
yunlzheng May 5, 2018
6362c80
refactor ch4 structure
yunlzheng May 5, 2018
45f1d83
refactor client java
yunlzheng May 5, 2018
9ee6480
add client java sample
yunlzheng May 6, 2018
4303824
Update client_library_java.md
yunlzheng May 6, 2018
d0df816
add client java example
yunlzheng May 7, 2018
f039a62
merge
yunlzheng May 7, 2018
3c5e391
fixed markdown style
yunlzheng May 7, 2018
2dc9eda
add code style
yunlzheng May 7, 2018
4971906
Update client_library_java.md
yunlzheng May 7, 2018
242572b
refactor custom app support prometheus
yunlzheng May 8, 2018
394c905
update standalone prometheus sample
yunlzheng May 9, 2018
7925e39
Merge branch 'master' of github.com:yunlzheng/prometheus-book
yunlzheng May 9, 2018
b7317fb
add grafana to standalone demo
yunlzheng May 9, 2018
9a86225
refactor grafana sumary
yunlzheng May 9, 2018
5a2dc7d
add grafana example
yunlzheng May 12, 2018
bf2fc14
refatcor grafana summary
yunlzheng May 12, 2018
6093b95
update summary info
yunlzheng May 12, 2018
ca8b064
add use grafana panel and prometheus query editor
yunlzheng May 13, 2018
7ef9624
update README
yunlzheng May 13, 2018
f83bde9
Update grafana-panels.md
yunlzheng May 13, 2018
19fc7ec
refactor struct
yunlzheng May 13, 2018
3f37a76
update grafana panel
yunlzheng May 14, 2018
1f2893d
grafan graph panel usage with prometheus
yunlzheng May 14, 2018
251bae9
Update use_graph_panel.md
yunlzheng May 14, 2018
3d8debb
add grafan usage of prometheus metrics type
yunlzheng May 15, 2018
df0f4c4
grafana heatmap panel usage
yunlzheng May 15, 2018
0ce62aa
rename
yunlzheng May 15, 2018
7d18562
add singlestat panel
yunlzheng May 15, 2018
cd48c2d
update grafana dashboard example
yunlzheng May 15, 2018
2c53a9b
add ingress to prometheus demo
yunlzheng May 16, 2018
8e58004
add prometheus deployment readme.md
yunlzheng May 16, 2018
9d80bb7
add grafana table panel
yunlzheng May 16, 2018
0a2945c
update grafana usage dashboard
yunlzheng May 16, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ _book
npm-debug.log
**/**/.vagrant
*.pdf
examples/localhost
examples/localhost
127 changes: 67 additions & 60 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,69 +4,76 @@ Prometheus操作指南:云原生监控之道

## Part I - Prometheus基础

* [第1章 天降奇兵](./chapter0/README.md)
* [Prometheus简介](./sources/why-monitor.md)
* [初识Prometheus](./sources/prometheus-quick-start.md)
* [任务和实例](./sources/prometheus-job-and-instance.md)
* [Prometheus核心组件](./sources/prometheus-architecture-and-components.md)
* [小结](./chapter0/SUMMARY.md)
* [第2章 探索PromQL](./chapter2/README.md)
* [理解时间序列](./sources/what-is-prometheus-metrics-and-labels.md)
* [Metrics类型](./sources/prometheus-metrics-types.md)
* [初识PromQL](./sources/prometheus-query-language.md)
* [PromQL操作符](./sources/prometheus-promql-operators-v2.md)
* [PromQL聚合操作](./sources/prometheus-aggr-ops.md)
* [PromQL内置函数](./sources/prometheus-promql-functions.md)
* [在HTTP API中使用PromQL](./sources/prometheus-promql-with-http-api.md)
* [最佳实践:4个黄金指标和USE方法](./sources/prometheus-promql-best-praticase.md)
* [小结](./chapter2/SUMMARY.md)
* [第3章 Prometheus告警处理](./chapter3/README.md)
* [Prometheus告警简介](./sources/prometheus-alert-manager-overview.md)
* [自定义Prometheus告警规则](./sources/prometheus-alert-rule.md)
* [部署AlertManager](./sources/install-alert-manager.md)
* [基于Label的动态告警处理](./sources/alert-manager-routes.md)
* [内置告警接收器Receiver](./sources/alert-manager-with-smtp.md)
* [使用Webhook扩展Alertmanager](./sources/alert-manager-extension-with-webhook.md)
* [屏蔽告警通知](./sources/alert-manager-inhibit.md)
* [使用Recoding Rules优化性能](./sources/prometheus-recoding-rules.md)
* [小结](./chapter3/SUMMARY.md)
* [第1章 天降奇兵](./quickstart/README.md)
* [Prometheus简介](./quickstart/why-monitor.md)
* [初识Prometheus](./quickstart/prometheus-quick-start.md)
* [任务和实例](./quickstart/prometheus-job-and-instance.md)
* [Prometheus核心组件](./quickstart/prometheus-architecture-and-components.md)
* [小结](./quickstart/SUMMARY.md)
* [第2章 探索PromQL](./promql/README.md)
* [理解时间序列](./promql/what-is-prometheus-metrics-and-labels.md)
* [Metrics类型](./promql/prometheus-metrics-types.md)
* [初识PromQL](./promql/prometheus-query-language.md)
* [PromQL操作符](./promql/prometheus-promql-operators-v2.md)
* [PromQL聚合操作](./promql/prometheus-aggr-ops.md)
* [PromQL内置函数](./promql/prometheus-promql-functions.md)
* [在HTTP API中使用PromQL](./promql/prometheus-promql-with-http-api.md)
* [最佳实践:4个黄金指标和USE方法](./promql/prometheus-promql-best-praticase.md)
* [小结](./promql/SUMMARY.md)
* [第3章 Prometheus告警处理](./alert/README.md)
* [Prometheus告警简介](./alert/prometheus-alert-manager-overview.md)
* [自定义Prometheus告警规则](./alert/prometheus-alert-rule.md)
* [部署AlertManager](./alert/install-alert-manager.md)
* [基于Label的动态告警处理](./alert/alert-manager-routes.md)
* [内置告警接收器Receiver](./alert/alert-manager-with-smtp.md)
* [使用Webhook扩展Alertmanager](./alert/alert-manager-extension-with-webhook.md)
* [屏蔽告警通知](./alert/alert-manager-inhibit.md)
* [使用Recoding Rules优化性能](./alert/prometheus-recoding-rules.md)
* [小结](./alert/SUMMARY.md)

## Part II - Prometheus进阶

* [第4章 使用Exporter](./chapter5/README.md)
* [Exporter是什么](./sources/what-is-prometheus-exporter.md)
* [监控容器运行状态](./sources/use-prometheus-monitor-container.md)
* [监控MySQL运行状态](./sources/use-promethues-monitor-mysql.md)
* [使用Blackbox进行黑盒监控](./sources/install_blackbox_exporter.md)
* [扩展Prometheus](./sources/custom_metrics_with_java_sdk.md)
* [在Spring Boot中集成Prometheus](./sources/custom_app_support_prometheus.md)
* [小结](./chapter5/SUMMARY.md)
* [第5章 可视化一切](./chapter4/README.md)
* [Grafana简介](./sources/grafana-intro.md)
* [第6章 集群与高可用](./chapter7/READMD.md)
* [本地存储](./sources/prometheus-local-storage.md)
* [远程存储](./sources/prometheus-remote-storage.md)
* [联邦集群](./sources/scale-prometheus-with-federation.md)
* [Prometheus高可用](./sources/prometheus-and-high-availability.md)
* [Alertmanager高可用](./sources/alertmanager-high-availability.md)
* [总结](./chapter4/SUMMARY.md)
* [第7章 Prometheus服务发现](./chapter6/README.md)
* [Prometheus与服务发现](./sources/why-need-service-discovery.md)
* [基于文件的服务发现](./sources/service-discovery-with-file.md)
* [基于Consul的服务发现](./sources/service-discovery-with-consul.md)
* [服务发现与Relabel](./sources/service-discovery-with-relabel.md)
* [小结](./chapter6/SUMMARY.md)
* [第4章 Exporter详解](./exporter/README.md)
* [Exporter是什么](./exporter/what-is-prometheus-exporter.md)
* [常用Exporter](./exporter/commonly-eporter-usage.md)
* [容器监控:cAdvisor](./exporter/use-prometheus-monitor-container.md)
* [监控MySQL运行状态:MySQLD Exporter](./exporter/use-promethues-monitor-mysql.md)
* [网络探测:Blackbox Exporter](./exporter/install_blackbox_exporter.md)
* [使用Java自定义Exporter](./exporter/custom_exporter_with_java.md)
* [使用client_java](./exporter/client_library_java.md)
* [在Sring Boot中集成](./exporter/custom_app_support_prometheus.md)
* [小结](./exporter/SUMMARY.md)
* [第5章 可视化一切](./grafana/README.md)
* [Grafana简介](./grafana/grafana-intro.md)
* [使用Panel可视化监控数据](./grafana/grafana-panels.md)
* [变化趋势:Graph](./grafana/use_graph_panel.md)
* [当前状态:SingleStat](./grafana/use_singlestat_panel.md)
* [分布统计:使用Heatmap](./grafana/use_heatmap_panel.md)
* [小结](./grafana/SUMMARY.md)
* [第6章 集群与高可用](./ha/READMD.md)
* [本地存储](./ha/prometheus-local-storage.md)
* [远程存储](./ha/prometheus-remote-storage.md)
* [联邦集群](./ha/scale-prometheus-with-federation.md)
* [Prometheus高可用](./ha/prometheus-and-high-availability.md)
* [Alertmanager高可用](./ha/alertmanager-high-availability.md)
* [总结](./ha/SUMMARY.md)
* [第7章 Prometheus服务发现](./sd/README.md)
* [Prometheus与服务发现](./sd/why-need-service-discovery.md)
* [基于文件的服务发现](./sd/service-discovery-with-file.md)
* [基于Consul的服务发现](./sd/service-discovery-with-consul.md)
* [服务发现与Relabel](./sd/service-discovery-with-relabel.md)
* [小结](./sd/SUMMARY.md)

## Part III - Prometheus实战

* [第8章 使用Prometheus监控Kubernetes集群](./chapter8/READMD.md)
* [初识Kubernetes](./sources/kubernetes-with-minikube.md)
* [Prometheus与Kubernetes](./sources/prometheus-with-kubernetes.md)
* [部署Prometheus](./sources/deploy-prometheus-in-kubernetes.md)
* [Kubernetes下的服务发现](./sources/service-discovery-with-kubernetes.md)
* [应用容器监控](./sources/use-prometheus-monitor-containers-in-k8s.md)
* [监控集群基础设施](./sources/use-promethues-monitor-node-in-k8s.md)
* [监控集群状态](./sources/use-prometheus-monitor-k8s-cluster-state.md)
* [使用Grafana创建可视化仪表盘](./sources/use-grafana-in-k8s.md)
* [第9章 使用Prometheus监控Rancher集群](./chapter10/README.md)
* [参考资料](./REFERENCES.md)
* [第8章 使用Prometheus监控Kubernetes集群](./kubernetes/READMD.md)
* [初识Kubernetes](./kubernetes/kubernetes-with-minikube.md)
* [Prometheus与Kubernetes](./kubernetes/prometheus-with-kubernetes.md)
* [部署Prometheus](./kubernetes/deploy-prometheus-in-kubernetes.md)
* [Kubernetes下的服务发现](./kubernetes/service-discovery-with-kubernetes.md)
* [应用容器监控](./kubernetes/use-prometheus-monitor-containers-in-k8s.md)
* [监控集群基础设施](./kubernetes/use-promethues-monitor-node-in-k8s.md)
* [监控集群状态](./kubernetes/use-prometheus-monitor-k8s-cluster-state.md)
* [使用Grafana创建可视化仪表盘](./kubernetes/use-grafana-in-k8s.md)
* [第9章 使用Prometheus监控Rancher集群](./rancher/README.md)
* [参考资料](./REFERENCES.md)
151 changes: 77 additions & 74 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,86 +4,89 @@

## Part I - Prometheus基础

* [第1章 天降奇兵](./chapter0/README.md)
* [Prometheus简介](./sources/why-monitor.md)
* [初识Prometheus](./sources/prometheus-quick-start.md)
* [任务和实例](./sources/prometheus-job-and-instance.md)
* [Prometheus核心组件](./sources/prometheus-architecture-and-components.md)
* [小结](./chapter0/SUMMARY.md)
* [第2章 探索PromQL](./chapter2/README.md)
* [理解时间序列](./sources/what-is-prometheus-metrics-and-labels.md)
* [Metrics类型](./sources/prometheus-metrics-types.md)
* [初识PromQL](./sources/prometheus-query-language.md)
* [PromQL操作符](./sources/prometheus-promql-operators-v2.md)
* [PromQL聚合操作](./sources/prometheus-aggr-ops.md)
* [PromQL内置函数](./sources/prometheus-promql-functions.md)
* [在HTTP API中使用PromQL](./sources/prometheus-promql-with-http-api.md)
* [最佳实践:4个黄金指标和USE方法](./sources/prometheus-promql-best-praticase.md)
* [小结](./chapter2/SUMMARY.md)
* [第3章 Prometheus告警处理](./chapter3/README.md)
* [Prometheus告警简介](./sources/prometheus-alert-manager-overview.md)
* [自定义Prometheus告警规则](./sources/prometheus-alert-rule.md)
* [部署AlertManager](./sources/install-alert-manager.md)
* [基于Label的动态告警处理](./sources/alert-manager-routes.md)
* [内置告警接收器Receiver](./sources/alert-manager-with-smtp.md)
* [使用Webhook扩展Alertmanager](./sources/alert-manager-extension-with-webhook.md)
* [屏蔽告警通知](./sources/alert-manager-inhibit.md)
* [使用Recoding Rules优化性能](./sources/prometheus-recoding-rules.md)
* [小结](./chapter3/SUMMARY.md)
* [第1章 天降奇兵](./quickstart/README.md)
* [Prometheus简介](./quickstart/why-monitor.md)
* [初识Prometheus](./quickstart/prometheus-quick-start.md)
* [任务和实例](./quickstart/prometheus-job-and-instance.md)
* [Prometheus核心组件](./quickstart/prometheus-architecture-and-components.md)
* [小结](./quickstart/SUMMARY.md)
* [第2章 探索PromQL](./promql/README.md)
* [理解时间序列](./promql/what-is-prometheus-metrics-and-labels.md)
* [Metrics类型](./promql/prometheus-metrics-types.md)
* [初识PromQL](./promql/prometheus-query-language.md)
* [PromQL操作符](./promql/prometheus-promql-operators-v2.md)
* [PromQL聚合操作](./promql/prometheus-aggr-ops.md)
* [PromQL内置函数](./promql/prometheus-promql-functions.md)
* [在HTTP API中使用PromQL](./promql/prometheus-promql-with-http-api.md)
* [最佳实践:4个黄金指标和USE方法](./promql/prometheus-promql-best-praticase.md)
* [小结](./promql/SUMMARY.md)
* [第3章 Prometheus告警处理](./alert/README.md)
* [Prometheus告警简介](./alert/prometheus-alert-manager-overview.md)
* [自定义Prometheus告警规则](./alert/prometheus-alert-rule.md)
* [部署AlertManager](./alert/install-alert-manager.md)
* [基于Label的动态告警处理](./alert/alert-manager-routes.md)
* [内置告警接收器Receiver](./alert/alert-manager-with-smtp.md)
* [使用Webhook扩展Alertmanager](./alert/alert-manager-extension-with-webhook.md)
* [屏蔽告警通知](./alert/alert-manager-inhibit.md)
* [使用Recoding Rules优化性能](./alert/prometheus-recoding-rules.md)
* [小结](./alert/SUMMARY.md)

## Part II - Prometheus进阶

* [第4章 使用Exporter](./chapter5/README.md)
* [Exporter是什么](./sources/what-is-prometheus-exporter.md)
* [监控容器运行状态](./sources/use-prometheus-monitor-container.md)
* [监控MySQL运行状态](./sources/use-promethues-monitor-mysql.md)
* [使用Blackbox进行黑盒监控](./sources/install_blackbox_exporter.md)
* [扩展Prometheus](./sources/custom_metrics_with_java_sdk.md)
* [在Spring Boot中集成Prometheus](./sources/custom_app_support_prometheus.md)
* [小结](./chapter5/SUMMARY.md)
* [第5章 可视化一切](./chapter4/README.md)
* [Grafana简介](./sources/grafana-intro.md)
* 安装Grafana
* 使用Prometheus数据源
* 创建监控Dashboard
* 自定义Panel
* 标签
* 表格
* 注解
* 使用模板
* Repeat Panel
* [第4章 Exporter详解](./exporter/README.md)
* [Exporter是什么](./exporter/what-is-prometheus-exporter.md)
* [常用Exporter](./exporter/commonly-eporter-usage.md)
* [容器监控:cAdvisor](./exporter/use-prometheus-monitor-container.md)
* [监控MySQL运行状态:MySQLD Exporter](./exporter/use-promethues-monitor-mysql.md)
* [网络探测:Blackbox Exporter](./exporter/install_blackbox_exporter.md)
* [使用Java自定义Exporter](./exporter/custom_exporter_with_java.md)
* [使用client_java](./exporter/client_library_java.md)
* [在Sring Boot中集成](./exporter/custom_app_support_prometheus.md)
* [小结](./exporter/SUMMARY.md)
* [第5章 可视化一切](./grafana/README.md)
* [Grafana简介](./grafana/grafana-intro.md)
* [使用Panel可视化监控数据](./grafana/grafana-panels.md)
* [变化趋势:Graph Panel](./grafana/use_graph_panel.md)
* [分布统计:Heatmap Panel](./grafana/use_heatmap_panel.md)
* [当前状态:SingleStat Panel](./grafana/use_singlestat_panel.md)
* [表格:Tabel Panel](./grafana/use_table_panel.md)
* 使用注解
* 动态面板
* 动态参数
* 动态Panel
* 动态Row
* 共享Dashboard
* 时间范围
* SingleStat面板
* [小结](./chapter5/SUMMARY.md)
* [第6章 集群与高可用](./chapter7/READMD.md)
* [本地存储](./sources/prometheus-local-storage.md)
* [远程存储](./sources/prometheus-remote-storage.md)
* [联邦集群](./sources/scale-prometheus-with-federation.md)
* [Prometheus高可用](./sources/prometheus-and-high-availability.md)
* [Alertmanager高可用](./sources/alertmanager-high-availability.md)
* [总结](./chapter4/SUMMARY.md)
* [第7章 Prometheus服务发现](./chapter6/README.md)
* [Prometheus与服务发现](./sources/why-need-service-discovery.md)
* [基于文件的服务发现](./sources/service-discovery-with-file.md)
* [基于Consul的服务发现](./sources/service-discovery-with-consul.md)
* [服务发现与Relabel](./sources/service-discovery-with-relabel.md)
* [小结](./chapter6/SUMMARY.md)
* 告警
* 团队与权限管理
* [小结](./grafana/SUMMARY.md)
* [第6章 集群与高可用](./ha/READMD.md)
* [本地存储](./ha/prometheus-local-storage.md)
* [远程存储](./ha/prometheus-remote-storage.md)
* [联邦集群](./ha/scale-prometheus-with-federation.md)
* [Prometheus高可用](./ha/prometheus-and-high-availability.md)
* [Alertmanager高可用](./ha/alertmanager-high-availability.md)
* [总结](./ha/SUMMARY.md)
* [第7章 Prometheus服务发现](./sd/README.md)
* [Prometheus与服务发现](./sd/why-need-service-discovery.md)
* [基于文件的服务发现](./sd/service-discovery-with-file.md)
* [基于Consul的服务发现](./sd/service-discovery-with-consul.md)
* [服务发现与Relabel](./sd/service-discovery-with-relabel.md)
* [小结](./sd/SUMMARY.md)

## Part III - Prometheus实战

* [第8章 使用Prometheus监控Kubernetes集群](./chapter8/READMD.md)
* [初识Kubernetes](./sources/kubernetes-with-minikube.md)
* [Prometheus与Kubernetes](./sources/prometheus-with-kubernetes.md)
* [部署Prometheus](./sources/deploy-prometheus-in-kubernetes.md)
* [Kubernetes下的服务发现](./sources/service-discovery-with-kubernetes.md)
* [应用容器监控](./sources/use-prometheus-monitor-containers-in-k8s.md)
* [监控集群基础设施](./sources/use-promethues-monitor-node-in-k8s.md)
* [监控集群状态](./sources/use-prometheus-monitor-k8s-cluster-state.md)
* [使用Grafana创建可视化仪表盘](./sources/use-grafana-in-k8s.md)
* [第8章 使用Prometheus监控Kubernetes集群](./kubernetes/READMD.md)
* [初识Kubernetes](./kubernetes/kubernetes-with-minikube.md)
* [Prometheus与Kubernetes](./kubernetes/prometheus-with-kubernetes.md)
* [部署Prometheus](./kubernetes/deploy-prometheus-in-kubernetes.md)
* [Kubernetes下的服务发现](./kubernetes/service-discovery-with-kubernetes.md)
* [应用容器监控](./kubernetes/use-prometheus-monitor-containers-in-k8s.md)
* [监控集群基础设施](./kubernetes/use-promethues-monitor-node-in-k8s.md)
* [监控集群状态](./kubernetes/use-prometheus-monitor-k8s-cluster-state.md)
* [使用Grafana创建可视化仪表盘](./kubernetes/use-grafana-in-k8s.md)
* Prometheus Vs Heapster
* 基于Prometheus实现应用的弹性伸缩
* 使用Prometheus Opertor管理Prometheus
* 基于Prometheus实现应用的弹性伸缩
* 使用Opertor管理Prometheus
* 总结
* [第9章 使用Prometheus监控Rancher集群](./chapter10/README.md)
* [参考资料](./REFERENCES.md)
* [第9章 使用Prometheus监控Rancher集群](./rancher/README.md)
* [参考资料](./REFERENCES.md)
5 changes: 5 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
TODO:

Relabeling:
* metric_relabel_configs: Metric relabeling is applied to samples as the last step before ingestion
* alert_relabel_configs:Alert relabeling is applied to alerts before they are sent to the Alertmanager
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion chapter2/prometheus-query-language.md

This file was deleted.

1 change: 0 additions & 1 deletion chapter9/README.md

This file was deleted.

Loading