Skip to content

Commit 222dca7

Browse files
committed
Minor readme fixes, disable sniffer loggin by default
1 parent 4b26abd commit 222dca7

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
Built-in metrics for external services HTTP calls! This gem is a Part of the [yabeda](https://github.com/yabeda-rb/yabeda) suite.
99

10+
Read [introduction article on dev.to](https://dev.to/dsalahutdinov/monitoring-external-services-with-prometheus-and-grafana-5eh6).
11+
1012
## Metrics
1113

1214
Works as the Puma plugin and provides following metrics:
@@ -63,7 +65,7 @@ After docker image builds and all the services get up, you can browse applicatio
6365

6466
Follow the [yabeda-external-http-requests](http://localhost:3000/d/OGd-oEXWz/yabeda-external-http-requests?orgId=1&refresh=5s) dashboard in Grafana.
6567
Finally, after a couple of minutes when data collected you will see the following:
66-
![Monitor external HTTP calls with Grafana](docs/http_requests_rate_by_host.png)
68+
![Monitor external HTTP calls with Grafana](docs/dashboard.png)
6769

6870
## Development with Docker
6971

docs/dashboard.png

731 KB
Loading
-453 KB
Binary file not shown.

lib/yabeda/http_requests.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
module Yabeda
99
# Common module
1010
module HttpRequests
11-
SNIFFER_STORAGE_SIZE = 1
11+
SNIFFER_STORAGE_SIZE = 0
1212

1313
Yabeda.configure do
1414
group :http
@@ -37,6 +37,7 @@ module HttpRequests
3737
c.enabled = true
3838
c.store = { capacity: SNIFFER_STORAGE_SIZE }
3939
c.middleware do |chain|
40+
chain.remove(Sniffer::Middleware::Logger)
4041
chain.add(Yabeda::HttpRequests::Sniffer)
4142
end
4243
end

0 commit comments

Comments
 (0)