File tree Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -77,5 +77,28 @@ services:
77
77
command :
78
78
- --statsd.mapping-config=/statsd/statsd.conf
79
79
80
+ prometheus :
81
+ image : prom/prometheus
82
+ profiles :
83
+ - metrics
84
+ volumes :
85
+ - ./etc/prometheus.yaml:/etc/prometheus/prometheus.yml
86
+ - prometheus_data:/prometheus
87
+ ports :
88
+ - 9090:9090
89
+
90
+ grafana :
91
+ image : grafana/grafana
92
+ profiles :
93
+ - metrics
94
+ volumes :
95
+ - grafana_data:/var/lib/grafana
96
+ ports :
97
+ - 3000:3000
98
+ depends_on :
99
+ - prometheus
100
+
80
101
volumes :
81
102
controllerdata :
103
+ prometheus_data :
104
+ grafana_data :
Original file line number Diff line number Diff line change
1
+
2
+ global :
3
+ scrape_interval : 15s
4
+ evaluation_interval : 20s
5
+
6
+ scrape_configs :
7
+ - job_name : " sentry_controller_metrics"
8
+ metrics_path : " /metrics"
9
+ scrape_interval : 10s
10
+ static_configs :
11
+ - targets : ["statsd-exporter:9102"]
12
+ labels :
13
+ app : ' sentry_controller'
Original file line number Diff line number Diff line change @@ -17,3 +17,9 @@ mappings:
17
17
name: "gunicorn_request_duration"
18
18
labels:
19
19
app: "$1"
20
+ - match: "*.gunicorn.log.*"
21
+ help: "gunicorn rate of log"
22
+ name: "gunicorn_log_rate"
23
+ labels:
24
+ app: "$1"
25
+ level: "$2"
You can’t perform that action at this time.
0 commit comments