mission_control-servers 0.0.5 → 0.1.1

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: a9b5f10aa6013bc3e88fa2c485380e5c6f24fc5b7e555d64582b5c0a3dfb59bb
4
- data.tar.gz: fd6779e67c6cdf1e023b7ddb52d31a2a069428c5b27be243c8cc1fa28704d36f
3
+ metadata.gz: 9e260e5cc3de9e7b0faf2f5a3c07caddfc398802dbdc95a695e667639c39c394
4
+ data.tar.gz: 4092d62a7d16bc73d69f504b6c72df2f9360193dd6aec8fd5cd12862c1951d22
5
5
  SHA512:
6
- metadata.gz: 822505e428ecf4571f58dd6d8e5cd96d107d187705e4469c15148446ba049d3a8ec12d828d5b38b7872c38836206ed530a0057603c2d6ebe856495f00a9de005
7
- data.tar.gz: 41aac3efc78e03b5ca8b72b0b165e51fb6ee91aa2af07a8ee1e1ba39b4b9ad7586a5d5e0d628c04b31cf220373d7f3ac6f05be93fea5ceff2ba30da5a1748b8e
6
+ metadata.gz: 55073a06bcfb54e72896f64b1633b9983e394d2cf4f727eb95fa6131b9c32c42f78bd683c1ce27cb81d04f3af956e9e6dab5dd58c0b2ef5b780ef51356714e3c
7
+ data.tar.gz: 0ce16cfdce72db053874a5cfa6bed60e785f1a1fb49a8b7ab75dd6facdc9b648ad9765370392b5788aa5d52c2335dc914dd9cb2b6f1ead8fc5f68fcf5bc3b98d
data/README.md CHANGED
@@ -74,6 +74,10 @@ class AdminConstraint
74
74
  end
75
75
  ```
76
76
 
77
+ ## Demo
78
+
79
+ You can see a demo of the application at [https://dashboard.railsenv.com/](https://dashboard.railsenv.com/)
80
+
77
81
  ## Screenshots
78
82
 
79
83
  Simple Installation
@@ -22,15 +22,10 @@ module MissionControl::Servers
22
22
  #!/bin/bash
23
23
 
24
24
  endpoint="#{project_ingress_url(@project.token)}"
25
- cpu_usage=$(
26
- top -bn1 | \
27
- grep "Cpu(s)" | \
28
- sed "s/.*, *\\([0-9.]*\\)%* id.*/\\1/" | \
29
- awk '{print 100 - $1}'
30
- )
25
+ cpu_usage=$(vmstat 1 5 | awk 'NR==4 {print 100 - $15}')
31
26
  mem_used=$(free -m | awk '/^Mem:/ {print $3}')
32
27
  mem_free=$(free -m | awk '/^Mem:/ {print $7}')
33
- disk_free=$(df -h | awk '\$NF=="/"{print $4}')
28
+ disk_free=$(df -h | awk '$NF=="/"{print $4}')
34
29
  hostname=$(hostname)
35
30
 
36
31
  data="service[cpu]=$cpu_usage"
@@ -1,5 +1,5 @@
1
1
  module MissionControl
2
2
  module Servers
3
- VERSION = "0.0.5"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mission_control-servers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Kimura