{"_id":"@arquivei/apollo-prometheus","_rev":"9-e65caed0c8503ea805f74979ce9333e9","time":{"created":"2022-07-13T12:24:11.917Z","1.0.0-alpha.0":"2022-07-13T12:18:59.741Z","modified":"2022-12-20T14:51:10.622Z","1.0.0-alpha.1":"2022-07-13T12:24:12.228Z","1.0.0":"2022-07-14T22:13:44.207Z","1.1.0":"2022-11-01T12:39:18.916Z","1.1.1":"2022-11-07T12:45:24.925Z","1.2.0":"2022-12-20T14:51:10.513Z"},"name":"@arquivei/apollo-prometheus","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0-alpha.1":{"name":"@arquivei/apollo-prometheus","version":"1.0.0-alpha.1","description":"Export Apollo server request information to Prometheus through prom-client","author":{"name":"Arquivei Servicos On Line Ltda"},"license":"UNLICENSED","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","check-format":"yarn prettier --list-different","format":"yarn prettier --write","lint":"eslint --ignore-path ../../.gitignore --ext .ts --fix . --resolve-plugins-relative-to ../../node_modules/@arquivei/eslint-config","precommit":"yarn build && lint-staged","prepublish":"npm run build","prettier":"prettier --ignore-path ../../.gitignore \"**/*.+(ts|json)\"","validate":"yarn check-format && yarn lint"},"keywords":["react","graphql","bff","typescript","apollo","prometheus","arquivei","grafana"],"repository":{"type":"git","url":"git+https://github.com/arquivei/arquivei-tools.git"},"homepage":"https://github.com/arquivei/arquivei-tools/tree/master/packages/apollo-prometheus","bugs":{"url":"https://github.com/arquivei/arquivei-tools/issues"},"publishConfig":{"access":"public"},"engines":{"node":">=4.0.0"},"dependencies":{"prom-client":"14.0.1"},"devDependencies":{"apollo-server-plugin-base":"3.6.2","graphql":"16.5.0","typescript":"4.7.2"},"peerDependencies":{"prom-client":">=14.0.1","typescript":">=4.6.3"},"_id":"@arquivei/apollo-prometheus@1.0.0-alpha.1","dist":{"shasum":"0bb2ae97dcc0c3975c7634e20bd0af6dbb733b98","integrity":"sha512-AE4yAAt+yKSAbtY9Zgf2PGmXn12pU2Qqf77XDZCUkr+lS1cnGwA37SguNob9vHQ+QGq9ZWbhMDq+ddXE3CBQWA==","tarball":"https://registry.npmjs.org/@arquivei/apollo-prometheus/-/apollo-prometheus-1.0.0-alpha.1.tgz","fileCount":14,"unpackedSize":18160,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcoWcKu9+s6STtIAEfNBxYruHiMf1+oDyfaYnFoXQ87AIhANb33fT6iOj5UtFYUxWlsG1LtrYAuqBCTUDAGki/xeBH"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizrlsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpCjQ//av1lBfE5QXnnEy0CTL4XHTPp7PRzeLoLjH9ArekHStbiR2Dw\r\nMA1nI4WgoAoghhRCdV8+Wg80cEH/xOgJRK2Qmg7OQ8SngrSnWy5S/n8PrD4b\r\ncAaK8lp9iSNGyBFID6WVQ9Tm/536D8iGxKOH69a2zOKL8SGwo+6SaKiTbak+\r\nNHfUn5GwI4ltfE5Th3fTT/M+VnpJNaodem5pFIcylI34B0Ff2Cn0Vdkb7ciX\r\n8TG4YmCmcAEdJCe8ALM4HpC31I5GIW/rNmTba29HBVGJSYuXflIXnqv/W0Qc\r\naKWX+7/ICHe2poSbzxxKTDtJpQ0Et+W4fZIS2AHZdCkeGqIU760SuJy4IQmI\r\nuFRWaETEYAmBEj77X94z0/fcHR4N6kfA2P75xOp0C9eTO2HLn1UmA2s2t81Y\r\n0GdsAfEiUXZzin/sq3j81jiP6IzNesDlVmV0s+m4O0Kvg8x16NcOIYZB92DA\r\nMmaIxr0CaT25tUctln1Xv4XB6Z9PgUm0Hty+ky0NLBrxdNfYKC1pM9CFKdsh\r\noZCwguuPoUy0tLW03zsmGIQfZ9nyPqOLYy9uXCaDHFD9QOIFka1cIAEbwC4w\r\n70PPp8zjyq78DEHAPukehVT3pDI4+/r00GiTmzSBNKIse9bj6LDLsA+B7WVI\r\ngfzQF8/WZGc41uunpnf4UTEp2VUvXL/qVrc=\r\n=Gugp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{},"directories":{},"maintainers":[{"name":"arquivei","email":"frontend@arquivei.com.br"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-prometheus_1.0.0-alpha.1_1657715051975_0.9793873873034724"},"_hasShrinkwrap":false},"1.0.0":{"name":"@arquivei/apollo-prometheus","version":"1.0.0","description":"Export Apollo server request information to Prometheus through prom-client","author":{"name":"Arquivei Servicos On Line Ltda"},"license":"UNLICENSED","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","check-format":"yarn prettier --list-different","format":"yarn prettier --write","lint":"eslint --ignore-path ../../.gitignore --ext .ts --fix . --resolve-plugins-relative-to ../../node_modules/@arquivei/eslint-config","precommit":"yarn build && lint-staged","prepublish":"npm run build","prettier":"prettier --ignore-path ../../.gitignore \"**/*.+(ts|json)\"","validate":"yarn check-format && yarn lint"},"keywords":["react","graphql","bff","typescript","apollo","prometheus","arquivei","grafana"],"repository":{"type":"git","url":"git+https://github.com/arquivei/arquivei-tools.git"},"homepage":"https://github.com/arquivei/arquivei-tools/tree/master/packages/apollo-prometheus","bugs":{"url":"https://github.com/arquivei/arquivei-tools/issues"},"publishConfig":{"access":"public"},"engines":{"node":">=4.0.0"},"dependencies":{"prom-client":"14.0.1"},"devDependencies":{"apollo-server-plugin-base":"3.6.2","graphql":"16.5.0","typescript":"4.7.2"},"peerDependencies":{"prom-client":">=14.0.1","typescript":">=4.6.3"},"gitHead":"dcd8289301c95b249f5484169234c9e106eb08fd","_id":"@arquivei/apollo-prometheus@1.0.0","_nodeVersion":"16.16.0","_npmVersion":"lerna/4.0.0/node@v16.16.0+x64 (linux)","dist":{"integrity":"sha512-qfxhTBR731Tl1iv7L7qtTiYUrvh0Ii6UtUa4Y62jmcV2mw5RhhlPKu7IHc37xvW9HqDjLY0L0U6AgWhR1B4N2g==","shasum":"748f12d730ed5e72e7f3f53b5766e7158ad38fab","tarball":"https://registry.npmjs.org/@arquivei/apollo-prometheus/-/apollo-prometheus-1.0.0.tgz","fileCount":13,"unpackedSize":20609,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHditSmeVwMKKZH6iFNp8o1cdlmwqxjdyACxlkifKgTnAiEAy7aaOEdLv3IcBERxxZTmwyDpmJ5atjBHokqOo8AhdWg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0JUYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlIg/+OLyVGaFh08NRIrq1KGla46Y+JrZ1pn1oXe1+n8H+Y7SevYH7\r\nYRGZp9zwz1zIupG1SeiVT6HzqBioGMIEpGC+oYx3OJm98Kwm4GZY02TevRZ5\r\nRreAQDkQGvNT/36QejIm8JTACB57VAGGL3sTFXgGc1kglj/uHXoSsn2UCuK+\r\ndhBfXX0BH9wVhSMhP9FeZiCEqemfcaH0q8zJwvk+n84uuSfXA7jdqpMlvzqf\r\nreGxWNH4z6fOU8EEqLno0ZH7wtzSUO81TqLNsik+v67M6dvMd7QkJZfK8cx1\r\nDdBR+ABYL+S6p/wwYADECYOA10lga1la3TS0OZyD+My6MH83dpdWEf2EQ+Kb\r\nj3vdnc1F7WO0C8FnOJjAmwu4LkiUufAoOK7uniwcKBL3EnngzHriavMLWifH\r\nd+DucJsr1BgRhfShuR/GwRWyBPtTaqC98b8K2258aUHu3SvOL8+reR/YMANc\r\nf8TAG/fcQ79ksQQxOogUxYYG6+mqdPCOr04zHAWZMCL0GMRjDLq9JVtyamNA\r\n0EZz/Kkpy2IgUUw/a+ap4qwubacLnGPzJ3RwikhGh0ldYFxfXE5hpFQTzarD\r\nmUZi92Wux/vPBCtiaYiDBSFComlYhuMuO0Ab9HKGPnh024cCG/xaeaFmyi6Z\r\ncv/0PdeSyFhocQLaDWce/Qy4sh+sYsTUeV4=\r\n=BRDQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arquivei","email":"frontend@arquivei.com.br"},"directories":{},"maintainers":[{"name":"arquivei","email":"frontend@arquivei.com.br"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-prometheus_1.0.0_1657836824033_0.9159288836176789"},"_hasShrinkwrap":false},"1.1.0":{"name":"@arquivei/apollo-prometheus","version":"1.1.0","description":"Export Apollo server request information to Prometheus through prom-client","author":{"name":"Arquivei Servicos On Line Ltda"},"license":"UNLICENSED","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","check-format":"yarn prettier --list-different","format":"yarn prettier --write","lint":"eslint --ignore-path ../../.gitignore --ext .ts --fix . --resolve-plugins-relative-to ../../node_modules/@arquivei/eslint-config","precommit":"yarn build && lint-staged","prepublish":"npm run build","prettier":"prettier --ignore-path ../../.gitignore \"**/*.+(ts|json)\"","validate":"yarn check-format && yarn lint"},"keywords":["react","graphql","bff","typescript","apollo","prometheus","arquivei","grafana"],"repository":{"type":"git","url":"git+https://github.com/arquivei/arquivei-tools.git"},"homepage":"https://github.com/arquivei/arquivei-tools/tree/master/packages/apollo-prometheus","bugs":{"url":"https://github.com/arquivei/arquivei-tools/issues"},"publishConfig":{"access":"public"},"engines":{"node":">=4.0.0"},"dependencies":{"@sentry/node":"^7.17.1","apollo-server-errors":"^3.3.1","prom-client":"14.0.1"},"devDependencies":{"apollo-server-plugin-base":"3.6.2","graphql":"16.5.0","typescript":"4.7.2"},"peerDependencies":{"prom-client":">=14.0.1","typescript":">=4.6.3"},"gitHead":"7ace07e14d6eac67d9c83783751e0229060f0d82","_id":"@arquivei/apollo-prometheus@1.1.0","_nodeVersion":"16.17.1","_npmVersion":"lerna/5.1.8/node@v16.17.1+x64 (linux)","dist":{"integrity":"sha512-nlb9ScDbMRPvqD9Gz36yxvDg5Bu94Kz6MJD/lAPdovWOo5YzOPbFN9redrqRCFgtyiyg2OASzn2/Ybpf5VrKRQ==","shasum":"4d5a30623021baa53779a8dd85fcb849d2e9b59f","tarball":"https://registry.npmjs.org/@arquivei/apollo-prometheus/-/apollo-prometheus-1.1.0.tgz","fileCount":13,"unpackedSize":24050,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGethJxSE95qR5R8A+DMZ+16Dzo+7QasaJsVqCu1B1iGAiByPSCfglCME6SWz74sUW1MouB6wD1X5p4o4A9Stf6h2Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYRN2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQCBAAnBSErCSS6p0ZXcljK4CW5cRI/fl5OQdQHcA22xMgjzC+2cYZ\r\ngf1/QNZovqs0nPoWOE2azQwlZWM+eQ3nahrX3VpWZdQEsyJBmVtACff4nMRA\r\nrmNpPgyffMATBgrhQoZkEndyOPGiBPXrr0q+A9Wi/H9fzkKS41+b22etp1tF\r\n+9GhcmxNCIthia28b/F6///CCeN49+0DJ9XjDRMdDTqetgTx1iYJYZ3L8n7I\r\nT23KA0gTX95wkm/zd+v6Ywccf1cSqqbB7xyrLrxsxXsOcnISSoMcp40RYMld\r\nO09N3ej6fQFky96qJy4s/eoggvnIEimjNrOc6FzHNIAauNJbx+wOJD/5bNYT\r\ni4L4D6Hf46V6XsG2EKcHVf3q65ASU/RBEF+8hBaT3okQCr44xNYlAgwIaJFp\r\nXw0R6bRR2TbgW7UA/cRqm2qTDO5Xfz/Vp8iM5w53mcgNVNFmgmPlexsRkR4T\r\ndHykrsOmrSUCuORq7Sxx82voZT82t2qqD8HSiNTnrJ7Rke9oR4oCPEA5HeDZ\r\n5LDbds04xD3vszkVUxHDAGwUwzYhG527Af1y5rStX0X6vH9SwH2nPfl0VdF6\r\nwcPMMf4raR4miR6tvsliZIK2M34ETd74cfm+rjVP08D8wHv4ozaUWEiDXRYi\r\nbK+H3fYIP/I7H/6ZKlIhEbS4sZb1tJnCph4=\r\n=3KPt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arquivei","email":"frontend@arquivei.com.br"},"directories":{},"maintainers":[{"name":"arquivei","email":"frontend@arquivei.com.br"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-prometheus_1.1.0_1667306358686_0.3513519744348368"},"_hasShrinkwrap":false},"1.1.1":{"name":"@arquivei/apollo-prometheus","version":"1.1.1","description":"Export Apollo server request information to Prometheus through prom-client","author":{"name":"Arquivei Servicos On Line Ltda"},"license":"UNLICENSED","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","check-format":"yarn prettier --list-different","format":"yarn prettier --write","lint":"eslint --ignore-path ../../.gitignore --ext .ts --fix . --resolve-plugins-relative-to ../../node_modules/@arquivei/eslint-config","precommit":"yarn build && lint-staged","prepublish":"npm run build","prettier":"prettier --ignore-path ../../.gitignore \"**/*.+(ts|json)\"","validate":"yarn check-format && yarn lint"},"keywords":["react","graphql","bff","typescript","apollo","prometheus","arquivei","grafana"],"repository":{"type":"git","url":"git+https://github.com/arquivei/arquivei-tools.git"},"homepage":"https://github.com/arquivei/arquivei-tools/tree/master/packages/apollo-prometheus","bugs":{"url":"https://github.com/arquivei/arquivei-tools/issues"},"publishConfig":{"access":"public"},"engines":{"node":">=4.0.0"},"dependencies":{"@sentry/node":"6.19.4","apollo-server-errors":"3.3.1","prom-client":"14.0.1"},"devDependencies":{"apollo-server-plugin-base":"3.6.2","graphql":"16.5.0","typescript":"4.7.2"},"peerDependencies":{"@sentry/node":">=6.19.4","prom-client":">=14.0.1","typescript":">=4.6.3"},"gitHead":"e5a76b2a6fb2590deca8cc16acd2e5bdb440bb7d","_id":"@arquivei/apollo-prometheus@1.1.1","_nodeVersion":"16.18.0","_npmVersion":"lerna/5.1.8/node@v16.18.0+x64 (linux)","dist":{"integrity":"sha512-c6GqEBltLBkHzgz9ucyMeCgsOmAo4MxOVQxdgcSFZTrGPY9IQjhGze5p2nWPtwo1d3wYl9aJ+uzClZdnTs34uQ==","shasum":"dc3a484b854e6f6cffb7838e404030e94b97ee11","tarball":"https://registry.npmjs.org/@arquivei/apollo-prometheus/-/apollo-prometheus-1.1.1.tgz","fileCount":13,"unpackedSize":24465,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMVwljfsXWF7xe1jvrwwtbSUtN72p4y9EjcL0eNwsGdQIgLTJh9xDMWwS+AgeZkWdgfjtBzF1z8pCpK4wyK+IydlQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaP3kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo2NxAAmfFfy03DREX5A9dNYXPO/ltytXtd1pRXzazW349h/6w9Yc+B\r\nwbr776p5naUvKdaDWVLXWGHb4f0iZkZoBoLWbTPumzbzFPDEkI1mE1Ubnpqw\r\nirSDHUWE5YMZE5zBRw4G8ui5GyShjwoXKHiv05f8+w3z+TOvdoCLQ2WSelkS\r\nJk6aCjshiHbAxJ6Z1yldLtmA5v7gsPf0QHtla0AzR/YosY6PQAQgnXciAAJ0\r\nHrE63bwt62ctikq2sqpgsCkeUA61e30HnvHuGHvEwXbq2eG+PtpPHwZWohHd\r\nOuJvtG+y98ASgzIYJ3QWdfBJJLWwyHGm+nR+uEpVy1RWbCVEIfDllJOLbn8p\r\nNFliNG5RPzpaN7RhHI4b2rYk2hKG/GMJfPpcvI3JMb9XLtKHqgt8kn60uSEw\r\nnjtzZGipIeGXgRFlSIcx7/R78pdna0VTO6fvGvCmvNA4sA33piY5zvQL/Hsv\r\n+xm9k/hSJERtv4l9gCH/oeMWvb8ouYzcnF0X3ZauBNjNRfYutmSU3A0ghO/B\r\nSXgh9dxZft4jzQz1gbi+veF4ugvYcGsjf/gApG0MDJRS2+dL7wwZVKeFIIny\r\noWGL2J/2mds4rw2+MvAp41sjK0q7USbB2ajx3Yg7jLadhYuT2dxe5XnSmuzA\r\nZxnr1R0H590OQBGFxehq2m5H5DY3ZwM76Xw=\r\n=hREC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arquivei","email":"frontend@arquivei.com.br"},"directories":{},"maintainers":[{"name":"arquivei","email":"frontend@arquivei.com.br"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-prometheus_1.1.1_1667825124726_0.37291242934841784"},"_hasShrinkwrap":false},"1.2.0":{"name":"@arquivei/apollo-prometheus","version":"1.2.0","description":"Export Apollo server request information to Prometheus through prom-client","author":{"name":"Arquivei Servicos On Line Ltda"},"license":"UNLICENSED","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","check-format":"yarn prettier --list-different","format":"yarn prettier --write","lint":"eslint --ignore-path ../../.gitignore --ext .ts --fix . --resolve-plugins-relative-to ../../node_modules/@arquivei/eslint-config","precommit":"yarn build && lint-staged","prepublish":"npm run build","prettier":"prettier --ignore-path ../../.gitignore \"**/*.+(ts|json)\"","validate":"yarn check-format && yarn lint"},"keywords":["react","graphql","bff","typescript","apollo","prometheus","arquivei","grafana"],"repository":{"type":"git","url":"git+https://github.com/arquivei/arquivei-tools.git"},"homepage":"https://github.com/arquivei/arquivei-tools/tree/master/packages/apollo-prometheus","bugs":{"url":"https://github.com/arquivei/arquivei-tools/issues"},"publishConfig":{"access":"public"},"engines":{"node":">=4.0.0"},"dependencies":{"@sentry/node":"6.19.4","apollo-server-errors":"3.3.1","prom-client":"14.0.1"},"devDependencies":{"apollo-server-plugin-base":"3.6.2","graphql":"16.5.0","typescript":"4.7.2"},"peerDependencies":{"@sentry/node":">=6.19.4","prom-client":">=14.0.1","typescript":">=4.6.3"},"gitHead":"23db97c045d19f95e9c5acaa8d0ad6e4ce456262","_id":"@arquivei/apollo-prometheus@1.2.0","_nodeVersion":"16.18.1","_npmVersion":"lerna/5.1.8/node@v16.18.1+x64 (linux)","dist":{"integrity":"sha512-wHq+npI96AzMw8NWCyoAALKZFl+BinbTpO6TYHAHjs1MvzFgdzUPHc4I8PuodCOai3ZO4N7KDL6+iDkJAp/CxQ==","shasum":"318440e66cef02017bce5e1a2608172fb24c3d3c","tarball":"https://registry.npmjs.org/@arquivei/apollo-prometheus/-/apollo-prometheus-1.2.0.tgz","fileCount":13,"unpackedSize":24902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDoDNBxAO7LzxcS3hMQWU3HP5jIw6CJxeGvbGJ1DB0QgIhAOqg8FnTzpooqd9MFX7BJR4JRfsD8KQMihNfuEdHu8Pu"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjocveACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQ/Q//fSjLvPDCO4rtL8IMEAd3nxIhjaiv0TH2jVNtiGBvMUtm6DA0\r\nS7xSazGGqjlLevP9zhUWXEuueSU5srR+ER20Q1ou7clNKBXY4s0xG4txahDF\r\nkfwHBMfaN/xIM7jeNVL5m4FAOV5YGvHzN0Ygeh81Va9BAwY3k/ypVU7x+PMe\r\nU4ElXjHuzluKSwo8hrTkcVIXA0h3y6aijAWraF17HX8rtN3hI0Ni5CO4+HMr\r\nxavYxKmU61tpU0zJsyJacYl2GsR5eBNa7TTLtL7JITQ1CdvRG/yebBeJWsL7\r\nmwBpMByx/Fr4QH3zZf1Vm+9KhQE8U7P/ucye26waXRfbBbxYs7+9QaVSMkNK\r\n5R19/s2vbQJe5CSZbI92Btfpx1db9sjYsxc5ZTWrfsNqS0u8iDKCqAZ24YtQ\r\nl2iEqwOLXacIqA5h0dKtvKzJwBUnrCwPcvfOroTk9R8fnoPIIKMRPKkM56N/\r\n4BYm0tjgwT3QIy8VrSEXdVZpN10JAGZVxeju00eZ5CDRUs5MVOxwB4AHi0+r\r\n6MDGLNkpAgRdooRN+GBMbFFZyOPXnzMMifJIqw42kxAimu/ZJc/HzQAydAjR\r\nxNir2PMrphA7Caa9f4XyRhohvsFcT7tnvspyX1FgO2RXK6AMLKKVceQ7a9i4\r\nGhfLGlow4Cd7wZqShXN6mX8aumKiTJ9WL80=\r\n=sil2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arquivei","email":"frontend@arquivei.com.br"},"directories":{},"maintainers":[{"name":"arquivei","email":"frontend@arquivei.com.br"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-prometheus_1.2.0_1671547870357_0.08939264435401895"},"_hasShrinkwrap":false}},"maintainers":[{"name":"arquivei","email":"frontend@arquivei.com.br"}],"description":"Export Apollo server request information to Prometheus through prom-client","homepage":"https://github.com/arquivei/arquivei-tools/tree/master/packages/apollo-prometheus","keywords":["react","graphql","bff","typescript","apollo","prometheus","arquivei","grafana"],"repository":{"type":"git","url":"git+https://github.com/arquivei/arquivei-tools.git"},"author":{"name":"Arquivei Servicos On Line Ltda"},"bugs":{"url":"https://github.com/arquivei/arquivei-tools/issues"},"license":"UNLICENSED","readme":"# **@arquivei/apollo-prometheus**\n\nThe @arquivei/apollo-prometheus package aims to provide a tool so that we can follow the GraphQL processing using Prometheus.\n\n## **Usage**\n\nCheck below step by step to use this package:\n\n:one: Install package in dependencies\n```bash\n❯ yarn add -D @arquivei/apollo-prometheus prom-client @sentry/node\n```\n\n:two: Add the plugin in Apollo Server settings\n\n> In order to obtain all metrics in an easy way, it is recommended to add a prefix to the metrics of this plugin, due to the way we organize our BFFs, we recommend that the Apollo Server settings be a function where we can receive parameters through it, being something like the following example\n\n```typescript\nimport ApolloPrometheus from '@arquivei/apollo-prometheus';\n\n[...]\n\ninterface GraphQLServerOptions {\n  prometheusPrefix?: string;\n  sentryEnabled?: boolean;\n  sentryDsn?: string;\n}\n\nexport function createGraphQLServerOptions(options: GraphQLServerOptions): Config {\n  return {\n    plugins: [\n      ApolloPrometheus({\n        prefix: options.prometheusPrefix,\n        sentry: {\n          enabled: options.sentryEnabled,\n          dsn: options.sentryDsn,\n        },\n      }),\n    ],\n  };\n}\n\nexport default createGraphQLServerOptions;\n```\n\n:three: Adjust the file that takes care of the server startup so that it is possible to return the Apollo Server settings with the proper prefix filled in the metrics\n\n```typescript\nimport { createGraphQLServerOptions } from './config';\n\n(async () => {\n  const IS_PRODUCTION = process.env.NODE_ENV === 'production';\n  const PROMETHEUS_PREFIX = process.env.PROMETHEUS_PREFIX;\n  const SENTRY_DSN = process.env.SENTRY_DSN;\n\n  [...]\n\n  const options = createGraphQLServerOptions({\n    prometheusPrefix: PROMETHEUS_PREFIX,\n    sentryEnabled: IS_PRODUCTION,\n    sentryDsn: SENTRY_DSN,\n  });\n  const server = new ApolloServer(options);\n\n  [...]\n})()\n```\n","readmeFilename":"README.md"}