Skip to content

Commit

Permalink
Merge pull request #346 from snyk/feat/improved-observability
Browse files Browse the repository at this point in the history
Feat/improved observability
  • Loading branch information
carlos-snyk authored Aug 5, 2021
2 parents 7717b9a + 3aabc44 commit 4583160
Show file tree
Hide file tree
Showing 15 changed files with 181 additions and 149 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.1

defaults: &defaults
docker:
- image: circleci/node:12
- image: circleci/node:12-buster
working_directory: ~/broker

commands:
Expand Down
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const app = (module.exports = {
main: main,
});

require('@snyk/node-dump-stacks');

function main({ port, client, config = {} } = {}) {
// note: the config is loaded in the main function to allow us to mock in tests
if (process.env.TAP) {
Expand Down
19 changes: 19 additions & 0 deletions lib/metrics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { Gauge } = require('prom-client');

const socketConnectionGauge = new Gauge({
name: 'broker_socket_connection_total',
help: 'Number of active socket connections',
});

function incrementSocketConnectionGauge() {
socketConnectionGauge.inc(1);
}

function decrementSocketConnectionGauge() {
socketConnectionGauge.dec(1);
}

module.exports = {
incrementSocketConnectionGauge,
decrementSocketConnectionGauge,
};
2 changes: 1 addition & 1 deletion lib/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = ({ config = {}, port = null, filters = {} }) => {

// basic prometheus metrics
const metricsMiddleware = promBundle({
buckets: [0.1, 0.4, 0.7, 1, 1.5, 2, 2.5, 5, 10, 30],
buckets: [0.5, 1, 2, 5, 10, 30, 60, 120, 300],
includeMethod: true,
includePath: false,
metricsPath: '/metrics',
Expand Down
7 changes: 7 additions & 0 deletions lib/server/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ const Emitter = require('primus-emitter');
const logger = require('../log');
const relay = require('../relay');
const { maskToken } = require('../token');
const {
incrementSocketConnectionGauge,
decrementSocketConnectionGauge,
} = require('../metrics');

module.exports = ({ server, filters, config }) => {
const io = new Primus(server, {
Expand Down Expand Up @@ -44,6 +48,7 @@ module.exports = ({ server, filters, config }) => {
logger.info({ maskedToken }, 'removing client');
connections.delete(token);
}
decrementSocketConnectionGauge();
}
};

Expand Down Expand Up @@ -81,6 +86,8 @@ module.exports = ({ server, filters, config }) => {

socket.on('chunk', streamingResponse(token));
socket.on('request', response(token));

incrementSocketConnectionGauge();
});

['close', 'end', 'disconnect'].forEach((e) => socket.on(e, () => close(e)));
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"typescript": "^3.8.3"
},
"dependencies": {
"@snyk/node-dump-stacks": "^1.3.0",
"@types/minimist": "^1.2.0",
"@types/request": "^2.48.5",
"body-parser": "^1.19.0",
Expand Down
30 changes: 15 additions & 15 deletions test/fixtures/certs/ca/my-root-ca.crt.pem
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDRjCCAi4CCQCM0p3yRoHvMDANBgkqhkiG9w0BAQsFADBlMQswCQYDVQQGEwJV
MIIDRjCCAi4CCQCd9um3+t/FMDANBgkqhkiG9w0BAQsFADBlMQswCQYDVQQGEwJV
UzENMAsGA1UECAwEVXRhaDEOMAwGA1UEBwwFUHJvdm8xIzAhBgNVBAoMGkludGVy
bmFsIFNpZ25pbmcgQXV0aG9yaXR5MRIwEAYDVQQDDAlsb2NhbGhvc3QwHhcNMTgw
MjI1MTQ1NDU1WhcNMjgwMjIzMTQ1NDU1WjBlMQswCQYDVQQGEwJVUzENMAsGA1UE
bmFsIFNpZ25pbmcgQXV0aG9yaXR5MRIwEAYDVQQDDAlsb2NhbGhvc3QwHhcNMjEw
ODAyMTExNTA1WhcNMzEwNzMxMTExNTA1WjBlMQswCQYDVQQGEwJVUzENMAsGA1UE
CAwEVXRhaDEOMAwGA1UEBwwFUHJvdm8x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X+DCO3waIrZNGuidHbcyMoQ2gySiGXiD
r/FniwaPvYNgyZDn2BMkcTFjXTD+gRLcsAZ+s8vBragsSJ0PKA3QUN6UH73GCTVg
qC5cuOr/pJiEeXWtrST/Vq0HWBR5CAmBD9JJDrwqmjn5AgMBAAEwDQYJKoZIhvcN
AQELBQADggEBAHOCDHi/fz7RJxrzuqybibv1+AaosuFycDZzx39ZNTjSEYonh3DN
tXKJB/l5D62raCyJDUZLh22x+A2mXkB9HvTLN41PnMIxzlF9CCFCBlJC4VkYVg3x
4hqZy1Lq5o5AUw+A2xIsWTNQhwrv+fgpZ5EX8PRg1FkXtqgnewUYvSvbAwzcOKfC
2aXYNHymqk5jWfzlJr6Yoq037CevKLHACMuwidMG7rCRBlrk9RHcAeHKuau/KNYX
SmMuGZyk4pKUMK52isSBNs5vO3p7EISkhkbvqj3+e3plVe+yIDGDfZyO0LRltlYQ
mRk+EsK19bD3PIXzcB/su44k7tPXxTwITbU=
-----END CERTIFICATE-----
50 changes: 25 additions & 25 deletions test/fixtures/certs/ca/my-root-ca.key.pem
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAqLbc0WSUgstKxwVSgrv+d2yK6wsDiDHPQ3OkcRNHhgTE9dMS
SvLeewL1qzjciF6e3CpcANhixqyOCVEZcUNMfAUAsRuNQ+tvp42Mn76MB4ObZLRk
rIEwn86jnSQ5Y/0DiEP3LlO96A7MrsSs+axj6KxbhqZITTCRWJNQBmjNAkkBhGR8
QywzauR++0R3egnso3JuEpCEMOyvuZ6ZsRECjh3Z9lGUdfGQOODoloELhSLqUxHA
RoUbkcB4yvxdKmcmbCuTPuUxe+dklw06NP6lwEtxayeftKEtIkXduUpDQjbudG7T
WvHjS24wxX3i0IWxRWn68cSc8B+MCghi79u9UwIDAQABAoIBADKCLDFzzxIpEkXq
zfzdkxzlneEn9vK7FrW21TAU+YChxOVjP0K42uowxKNx7nPU//IhrFGEdm3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HLjhCH6LMwvooM2KsYGdydmosbf6RPrZmTx93PHlPoyJ80pf5nRFgX
vm+zIw9NlyC4fZVk1mxcDNJ1ngQ79EkiVG9HE9b5AoGAZdpoqjMiCZo8dXMLeU2T
c2ciWVu1Tpb86xvvvReV9yDdxCFNhTnlP6axC7xRcVu4XeAGnKWohMPH2ZI0UPbX
Ng4fPdj0vxr4R9qTOF+8XJSHqO0kpQ+mj7MEEjQ92r38FNOysj14X5SUDgDXWD/5
ygmGKfZSrS7NCIdwybYuiwECgYEAwccStkDGEV3exY24NIohAloYWj133Tk0mbos
glH022sKWz/FE1G/xZdXbLDbbJvKQ8mAwzk8sjIk1ZjrqZcQ+fouG73cd6BrWw+V
jYO25Q5CdOSNoS1Lx8F+nKoN36twXRaC7TEYWUmibXQjwFms3/RW7bEJoLzmuz3l
NTNLkkECgYEA4RlYgc71dyxUFu22Cfbi0T6KYYx7tfYBKDwveOry8BSpD1TfZGIt
QADNFOfdubIuXlSJD3yLRy9hpdxUm6dToiYQY4FZcXD2W8yrs7j6QUFqGWpnNuXy
SsJo1304D5wsO49b/tF5OuaEcNLMtDs9DqkSKEaEzsw6+Haa1XeWJEw=
-----END RSA PRIVATE KEY-----
30 changes: 15 additions & 15 deletions test/fixtures/certs/client/chain.pem
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDRjCCAi4CCQCM0p3yRoHvMDANBgkqhkiG9w0BAQsFADBlMQswCQYDVQQGEwJV
MIIDRjCCAi4CCQCd9um3+t/FMDANBgkqhkiG9w0BAQsFADBlMQswCQYDVQQGEwJV
UzENMAsGA1UECAwEVXRhaDEOMAwGA1UEBwwFUHJvdm8xIzAhBgNVBAoMGkludGVy
bmFsIFNpZ25pbmcgQXV0aG9yaXR5MRIwEAYDVQQDDAlsb2NhbGhvc3QwHhcNMTgw
MjI1MTQ1NDU1WhcNMjgwMjIzMTQ1NDU1WjBlMQswCQYDVQQGEwJVUzENMAsGA1UE
bmFsIF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Y5ZlkqqpD4q+LH485FZSNDEogWWvs70Me7yYEdhQJGnhh1JjFv5qvOToWxd
O/YrsByDWkIHHVHW7FLz1+SWDbgdGqJ9fitD7zUdlakL2XbrIzTXOPM16ZFx8vt8
Bf8Czd5hlFDYl+yuGP/2zglCrsbLZA+cX+DCO3waIrZNGuidHbcyMoQ2gySiGXiD
r/FniwaPvYNgyZDn2BMkcTFjXTD+gRLcsAZ+s8vBragsSJ0PKA3QUN6UH73GCTVg
qC5cuOr/pJiEeXWtrST/Vq0HWBR5CAmBD9JJDrwqmjn5AgMBAAEwDQYJKoZIhvcN
AQELBQADggEBAHOCDHi/fz7RJxrzuqybibv1+AaosuFycDZzx39ZNTjSEYonh3DN
tXKJB/l5D62raCyJDUZLh22x+A2mXkB9HvTLN41PnMIxzlF9CCFCBlJC4VkYVg3x
4hqZy1Lq5o5AUw+A2xIsWTNQhwrv+fgpZ5EX8PRg1FkXtqgnewUYvSvbAwzcOKfC
2aXYNHymqk5jWfzlJr6Yoq037CevKLHACMuwidMG7rCRBlrk9RHcAeHKuau/KNYX
SmMuGZyk4pKUMK52isSBNs5vO3p7EISkhkbvqj3+e3plVe+yIDGDfZyO0LRltlYQ
mRk+EsK19bD3PIXzcB/su44k7tPXxTwITbU=
-----END CERTIFICATE-----
14 changes: 7 additions & 7 deletions test/fixtures/certs/client/pubkey.pem
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8j/Bw25w5WuaY26OzdqG
OIeYmBhKLtm79dBAVAPqnz02uSHI2kyioIyqoJdt4AyudTVEOs5209HHEAYwWlEw
rx034/MjXxd7iWf+gDfio0NSKVtMKc1f2Chi3wfeDa50Xro4BSSDemq6KUQk4grf
FT8lH5aDcbCr2MZsGFYrNMwhEvDq944KZ5lyIcChrrOOT0JVDk7R+4x92ClFx4hu
iDLjI1i0VllJodIcE2kBTeClV0HM/5tG/P643KOYa+gmjv99CKqfhhxQzMkSopRq
bhR6UvIKG4dP4SlKegzGLy6lTp1bmsA/pIkRslAYCExgQiW90Snu6whc7XZZtm7v
+wIDAQAB
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsrxL1AhAiG6UR0Bj+Pgd
TSclE3Ggu2vsh3hlqEFPmm8O0kHbhcZhi4vHcYUFJnE3BsbvAWjtj5N0smPPlo8/
sXLhfGnugI+v1G/YyeCURkctw9pju7hIA/73QHzqN2+WBABoN6fogXL1WHucAiRY
5uhGEfZPbXTk2o3Wme2EjHqlI2ONN8yLGVlzAxi2pSq71qwpUW99QaQeM0R04F/C
N6sAlqLay26h0+Qb8QgCfO3yCWwxZByxQctap4f71Ja3mU0UCFIizy/xEe025Kkd
/Oizg7WneSVTbUjrZ942WDTi+xHjaLc3Nkw+RsAHQtVz+0m/zHDpDEtLk5rg8ei3
9wIDAQAB
-----END PUBLIC KEY-----
3 changes: 3 additions & 0 deletions test/fixtures/certs/generate-certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ openssl genrsa \
# Self-sign your Root Certificate Authority
# Since this is private, the details can be as bogus as you like
openssl req \
-sha256 \
-x509 \
-new \
-nodes \
Expand All @@ -29,13 +30,15 @@ openssl genrsa \

# Create a request from your Device, which your Root CA will sign
openssl req -new \
-sha256 \
-key server/privkey.pem \
-out tmp/csr.pem \
-subj "/C=US/ST=Utah/L=Provo/O=ACME Tech Inc/CN=${FQDN}"

# Sign the request from Device with your Root CA
# -CAserial ca/my-root-ca.srl
openssl x509 \
-sha256 \
-req -in tmp/csr.pem \
-CA ca/my-root-ca.crt.pem \
-CAkey ca/my-root-ca.key.pem \
Expand Down
30 changes: 15 additions & 15 deletions test/fixtures/certs/server/cert.pem
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDOTCCAiECCQC4S7lOdMSspzANBgkqhkiG9w0BAQUFADBlMQswCQYDV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xlDfNfkMAwbyIhZcVC2qtuS0IJcnJd7eY6SJlGBGq7x
QixlwZr+3/k6IM9z+em8tMj9VL/iEPId0C/YMajNrBKfdVXYq6CLs3uGo8TqQdy8
OQniaZ4YkCBJ1iwe3zn5vdx4eF3TC5ilvZmL6F4kL8a8G2bPFj0jRNiYTkvs12mv
0nDAVhPg8iaepKxvYQ==
ggEBALK8S9QIQIhulEdAY/j4HU0nJRNxoLtr7Id4ZahBT5pvDtJB24XGYYuLx3GF
BSZxNwbG7wFo7Y+TdLJjz5aPP7Fy4Xxp7oCPr9Rv2MnglEZHLcPaY7u4SAP+90B8
6jdvlgQAaDen6IFy9Vh7nAIkWOboRhH2T2105NqN1pnthIx6pSNjjTfMixlZcwMY
tqUqu9asKVFvfUGkHjNEdOBfwjerAJai2stuodPkG/EIAnzt8glsMWQcsUHLWqeH
+9SWt5lNFAhSIs8v8RHtNuSpHfzos4O1p3klU21I62feNlg04vsR42i3NzZMPkbA
B0LVc/tJv8xw6QxLS5Oa4PHot/cCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAqCjb
8FhPrtGuLWE5lpOSHsQlht3b5QYDQS6jBBrzCrF0O2UxO6DSDvYI2Rjl4frxc6is
+BxMR17aq1nBtzMHILZyOQ1wip3l91XBS3nMpOMOVNxh5YYVGWtmYRAeFCyeWGfx
7cPMpTqKVRRrNipvtjsi+xLzZSo6voV137aM3Jj9KHo8i+nNQWH1liEEI4ls4zAG
idZEdvmCR/G/fWY7uMvQt/FzApz2FcwvJwpSAcRN9jL7LRkg0jGEaQ4YVGaeDkmw
oQj/QmxRvUwvOdVDTmNk5XvH6UYsjo0bm9DSZO1SPP3mxCrUknHaNAy/T2MhWPMF
pS7F43HLoIzesDihtQ==
-----END CERTIFICATE-----
30 changes: 15 additions & 15 deletions test/fixtures/certs/server/chain.pem
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDRjCCAi4CCQCM0p3yRoHvMDANBgkqhki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
FWk5txdkxs/JLae4hqVu7yt0vtc100dWPgN5biSkcDFTosn06yZroCnPiXP4BJjr
yabPBuRLF9KzSAt1UISd5kwbS+uiJL2C0E/DwCLHiEYFe/AvyzEndBmAbZSQZ/ov
XrCucH4Vm9Amoiq6V9Xn9Yw7KrYZb7iVntHdgEbRYGDDxdhpJyamqm//zeCv/Wsr
XST74FCCWkLfgVBj0B/mc8WZjUxSMZgfMJA=
AQUAA4IBDwAwggEKAoIBAQCxNN5MnbEPGRrVilntUsRx9b8kN5YH18F0E0APsT2o
5LpD+Y5ZlkqqpD4q+LH485FZSNDEogWWvs70Me7yYEdhQJGnhh1JjFv5qvOToWxd
O/YrsByDWkIHHVHW7FLz1+SWDbgdGqJ9fitD7zUdlakL2XbrIzTXOPM16ZFx8vt8
Bf8Czd5hlFDYl+yuGP/2zglCrsbLZA+cX+DCO3waIrZNGuidHbcyMoQ2gySiGXiD
r/FniwaPvYNgyZDn2BMkcTFjXTD+gRLcsAZ+s8vBragsSJ0PKA3QUN6UH73GCTVg
qC5cuOr/pJiEeXWtrST/Vq0HWBR5CAmBD9JJDrwqmjn5AgMBAAEwDQYJKoZIhvcN
AQELBQADggEBAHOCDHi/fz7RJxrzuqybibv1+AaosuFycDZzx39ZNTjSEYonh3DN
tXKJB/l5D62raCyJDUZLh22x+A2mXkB9HvTLN41PnMIxzlF9CCFCBlJC4VkYVg3x
4hqZy1Lq5o5AUw+A2xIsWTNQhwrv+fgpZ5EX8PRg1FkXtqgnewUYvSvbAwzcOKfC
2aXYNHymqk5jWfzlJr6Yoq037CevKLHACMuwidMG7rCRBlrk9RHcAeHKuau/KNYX
SmMuGZyk4pKUMK52isSBNs5vO3p7EISkhkbvqj3+e3plVe+yIDGDfZyO0LRltlYQ
mRk+EsK19bD3PIXzcB/su44k7tPXxTwITbU=
-----END CERTIFICATE-----
60 changes: 30 additions & 30 deletions test/fixtures/certs/server/fullchain.pem
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
-----BEGIN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5txdkxs/JLae4hqVu7yt0vtc100dWPgN5biSkcDFTosn06yZroCnPiXP4BJjr
yabPBuRLF9KzSAt1UISd5kwbS+uiJL2C0E/DwCLHiEYFe/AvyzEndBmAbZSQZ/ov
XrCucH4Vm9Amoiq6V9Xn9Yw7KrYZb7iVntHdgEbRYGDDxdhpJyamqm//zeCv/Wsr
XST74FCCWkLfgVBj0B/mc8WZjUxSMZgfMJA=
AQUAA4IBDwAwggEKAoIBAQCxNN5MnbEPGRrVilntUsRx9b8kN5YH18F0E0APsT2o
5LpD+Y5ZlkqqpD4q+LH485FZSNDEogWWvs70Me7yYEdhQJGnhh1JjFv5qvOToWxd
O/YrsByDWkIHHVHW7FLz1+SWDbgdGqJ9fitD7zUdlakL2XbrIzTXOPM16ZFx8vt8
Bf8Czd5hlFDYl+yuGP/2zglCrsbLZA+cX+DCO3waIrZNGuidHbcyMoQ2gySiGXiD
r/FniwaPvYNgyZDn2BMkcTFjXTD+gRLcsAZ+s8vBragsSJ0PKA3QUN6UH73GCTVg
qC5cuOr/pJiEeXWtrST/Vq0HWBR5CAmBD9JJDrwqmjn5AgMBAAEwDQYJKoZIhvcN
AQELBQADggEBAHOCDHi/fz7RJxrzuqybibv1+AaosuFycDZzx39ZNTjSEYonh3DN
tXKJB/l5D62raCyJDUZLh22x+A2mXkB9HvTLN41PnMIxzlF9CCFCBlJC4VkYVg3x
4hqZy1Lq5o5AUw+A2xIsWTNQhwrv+fgpZ5EX8PRg1FkXtqgnewUYvSvbAwzcOKfC
2aXYNHymqk5jWfzlJr6Yoq037CevKLHACMuwidMG7rCRBlrk9RHcAeHKuau/KNYX
SmMuGZyk4pKUMK52isSBNs5vO3p7EISkhkbvqj3+e3plVe+yIDGDfZyO0LRltlYQ
mRk+EsK19bD3PIXzcB/su44k7tPXxTwITbU=
-----END CERTIFICATE-----
Loading

0 comments on commit 4583160

Please sign in to comment.