
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@autometrics/exporter-prometheus
Advanced tools
Export metrics by pushing them to a Prometheus-compatible gateway
@autometrics/exporter-prometheus
Export metrics by opening up a Prometheus scrape endpoint.
This package will start a webserver on port 9464, with a Prometheus-compatible
/metrics
endpoint.
You should configure your Prometheus instance to scrape this endpoint. For instructions on how to do this, please refer to the Prometheus documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
Full documentation for the autometrics
library can be found here:
https://github.com/autometrics-dev/autometrics-ts.
# npm
npm install @autometrics/autometrics @autometrics/exporter-prometheus
# yarn
yarn add @autometrics/autometrics @autometrics/exporter-prometheus
# pnpm
pnpm add @autometrics/autometrics @autometrics/exporter-prometheus
import { autometrics } from "@autometrics/autometrics";
import { init } from "@autometrics/exporter-prometheus";
init(); // starts the webserver with the `/metrics` endpoint on port 9464
async function createUserRaw(payload: User) {
// ...
}
const createUser = autometrics(createUserRaw);
// ^ instrumented function
[v1.0.1]
This release fixes two issues. Thanks to @benjibuiltit for his contributions!
relfect-metadata
packageFAQs
Export metrics by pushing them to a Prometheus-compatible gateway
The npm package @autometrics/exporter-prometheus receives a total of 166 weekly downloads. As such, @autometrics/exporter-prometheus popularity was classified as not popular.
We found that @autometrics/exporter-prometheus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.