trussle / tricorder Goto Github PK
View Code? Open in Web Editor NEWMetrics instrumentation middleware for Express using prom-client
License: MIT License
Metrics instrumentation middleware for Express using prom-client
License: MIT License
Hi,
I notice tricorder has some open PRs and issues that haven’t been triaged.
If you’re no longer using this internally and don’t wish to maintain the library I’m happy to either be added as a collaborator or take ownership of the codebase given I authored the code originally.
Would be good to see this actively supported as alternatives to this library aren’t great.
It'd be great to have the payload size in bytes of traffic.
We could use it to detect malformed requests from upstream services
Where we send http responses, it'd be great to get all the information we have for requests, but as a response metric too.
I suggest we rename this to be @trussle/express-prometheus-metrics-command-factory-builder
;)
Builds on Node 10 are failing:
● index › metrics › third party metrics › Given metrics running, should include gc metrics
expect(string).toContain(value)
Expected string:
"<redacted from this snippet>"
To contain value:
"nodejs_gc_runs_total"
It looks like Node 10's internals have been altered not to show this information.
Hello,
I'm trying to use this middleware with Nest.js framework (which normally works with Express middlewares as the core of the framework is Express).
Here is sample of my server instance bootstrap file:
`import { NestFactory } from '@nestjs/core';
import { AppModule } from './app/app.module';
// import * as metrics from 'prometheus-api-metrics';
import * as tricorder from '@trussle/tricorder';
import * as logger from 'express-bunyan-logger';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
// app.use(metrics());
app.use(logger());
tricorder.instrument(app as any);
await app.listen(process.env.PORT || 3000);
}
bootstrap();
There is a type conflict as nestJs server instance has a extended Express type, but this can be dealt like this:
tricorder.instrument(app as any);`
Which leads me to user your competitor prometheus-api-metrics
... (good place to check how they handling nest?)
I do prefer tricoder because https_total_requests metrics addition which is very useful.
Nest.js is very quickly growing framework so this should be worth attention.
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: Cannot find preset's package (@trussle)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.