prometheus_exporter 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d3374059942d70d2bbebe1de9cb3769dc8ff562bef3c4c79aff97023d2a1b45
|
4
|
+
data.tar.gz: 9903e75d79d6f92b014835e99793dd8979d464acef9ff1d82b91c0fe056ec1a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c93a68aaf72d3ece28914b93c097ad3659397a5cd147d6917cd9c9cc72cea2f939e836b696f24dd30963c1deed0234a4e088a8cdfdb62df50f0a768c06e8cb4a
|
7
|
+
data.tar.gz: f88f72c5ed0d34f26deeac798ea3d5397379d3e6f4ffdf2205f5b7cf1f44a84a346c07ed4bfb059a12ca3a92fcc96c3b816b63c090b949f1ec203e97615008f8
|
@@ -109,7 +109,8 @@ module PrometheusExporter::Server
|
|
109
109
|
|
110
110
|
def get_rss
|
111
111
|
@pagesize ||= `getconf PAGESIZE`.to_i rescue 4096
|
112
|
-
|
112
|
+
@pid ||= Process.pid
|
113
|
+
File.read("/proc/#{@pid}/statm").split(' ')[1].to_i * @pagesize rescue 0
|
113
114
|
end
|
114
115
|
|
115
116
|
def add_gauge(name, help, value)
|