Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@mollitia/prometheus

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mollitia/prometheus

Prometheus Mollitia Addon

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
2
Created
Source

Mollitia


Mollitia Icon

Mollitia - Prometheus Addon

The Mollitia Prometheus addon adds metrics on every circuit and module so that you can monitor and analyze your applications.

📄 Documentation

Please check out the official documentation to get started using Mollitia, visit genesys.github.io/mollitia.

⚙️ Installation

npm install --save @mollitia/prometheus

🚀 Usage

// Imports the library
import * as Mollitia from 'mollitia';
import { PrometheusAddon } from '@mollitia/prometheus';
// Adds the prometheus addon to Mollitia
Mollitia.use(new PrometheusAddon());
// Creates a circuit
const myCircuit = new Mollitia.Circuit({
	func: yourFunction
});
// This will execute yourFunction('dummy')
await myCircuit.execute('dummy');
// Get metrics and scrap from Prometheus
const metrics = Mollitia.metrics(); // Will return an object containing all metrics from all circuits and modules
const scrap = Mollitia.scrap(); // Will return the Prometheus scrap

Keywords

mollitia

FAQs

Package last updated on 08 Apr 2025

Did you know?

Socket

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.

Install

Related posts