Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
opentelemetry-node-metrics
Advanced tools
An adoption of the node process metrics of prom-client
This module is an adoption of the metric set of prom-client
for @opentelemetry/metrics
.
There's no node cluster support as @opentelemetry/metrics
doesn't support it.
const {MeterProvider} = require('@opentelemetry/metrics');
const {PrometheusExporter} = require('@opentelemetry/exporter-prometheus');
const exporter = new PrometheusExporter({startServer: true}, () => {
console.log(
`prometheus scrape endpoint: http://localhost:${PrometheusExporter.DEFAULT_OPTIONS.port}${PrometheusExporter.DEFAULT_OPTIONS.endpoint}`,
)
})
const meterProvider = new MeterProvider({
exporter,
interval: 2000,
})
require('./index')(meterProvider)
This project heavily relies on code from https://github.com/siimon/prom-client and therefore I'd like to thank to all the contributors.
The prom-client
project is using an APACHE v2.0 LICENSE and threfore it's best to apply the same license to this project.
This module is only a proof of concept to get opentelemetry to work with the metrics support of prom-client
.
FAQs
An adoption of the node process metrics of prom-client
We found that opentelemetry-node-metrics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.