瀏覽代碼

add grafana images to show some dashboard examples (#161)

erenJag 5 年之前
父節點
當前提交
50d7c4ce96
共有 4 個文件被更改,包括 17 次插入5 次删除
  1. 二進制
      docs/assets/images/grafana_details.png
  2. 二進制
      docs/assets/images/grafana_insight.png
  3. 二進制
      docs/assets/images/grafana_overview.png
  4. 17 5
      docs/observability/prometheus.md

二進制
docs/assets/images/grafana_details.png


二進制
docs/assets/images/grafana_insight.png


二進制
docs/assets/images/grafana_overview.png


+ 17 - 5
docs/observability/prometheus.md

@@ -9,7 +9,9 @@ The goal of this endpoint, besides the usual resources consumption monitoring, a
 
 All the counters are "since {{crowdsec.name}} start".
 
-### Scenarios
+### Metrics details
+
+#### Scenarios
 
  - `cs_buckets` : number of scenario that currently exist
  - `cs_bucket_created_total` : total number of instantiation of each scenario 
@@ -29,7 +31,7 @@ cs_bucket_poured_total{name="crowdsecurity/http-scan-uniques_404",source="/var/l
 </details>
 
 
-### Parsers
+#### Parsers
  - `cs_node_hits_total` : how many time an event from a specific source was processed by a parser node :
 
 
@@ -64,10 +66,20 @@ cs_node_hits_ko_total{name="crowdsecurity/http-logs",source="/var/log/nginx/erro
  - `cs_parser_hits_ko_total` : how many times an event from a source was unsuccessfully parsed
 
 
-### Acquisition
+#### Acquisition
 
  - `cs_reader_hits_total` : how many events were read from a specific source
 
-### Info
+#### Info
+
+ - `cs_info` : Information about {{crowdsec.name}} (software version)
+
+### Exploitation with prometheus server & grafana
+
+Those metrics can be scaped by [prometheus server](https://prometheus.io/docs/introduction/overview/#architecture) and visualized with [grafana](https://grafana.com/). Here is some dashboards screenshots :
+
+![Overview](../assets/images/grafana_overview.png)
+
+![Insight](../assets/images/grafana_insight.png)
 
- - `cs_info` : Information about {{crowdsec.name}} (software version)
+![Details](../assets/images/grafana_details.png)