![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@freighthub/verdaccio-openmetrics
Advanced tools
Verdaccio plugin exposing an OpenMetrics/Prometheus endpoint with health and traffic metrics
Verdaccio plugin exposing an OpenMetrics/Prometheus endpoint with health and traffic metrics
This plugin, when installed and loaded, serves Prometheus/OpenMetrics metrics at a known path. This can then be scraped by your Prometheus installation, Datadog agent, etc.
By default, a second HTTP listener is used
to keep metrics internal to your infrastructure more easily.
The default metrics port is 9090.
So, metrics will be available at :9090/metrics
.
If you instead want to have your metrics available via Verdaccio's main API,
set metrics_on_main: true
and access /-/metrics
on Verdaccio.
This will disable the second HTTP listener unless you also pass metrics_port
explicitly.
The primary metrics exposed are HTTP response latencies by request method and response status code.
There's also an option to collect NodeJS runtime metrics
(the defaults from the prom-client
package).
A further option will be to infrequently collect statistics about the database,
however it's not clear yet what will be interesting to expose there.
Note that this Verdaccio plugin is published within a package scope. To load the plugin from a Verdaccio config, specify the full name:
middlewares:
'@freighthub/verdaccio-openmetrics':
enabled: true
This works around the automatic verdaccio-
prefix that Verdaccio expects.
If no extra config is given, HTTP request metrics will be exposed at :9090/metrics
.
If you want additional metrics, for example runtime and database metrics:
middlewares:
'@freighthub/verdaccio-openmetrics':
enabled: true
collect_runtime: true
collect_database: true
All config keys and default values:
interface MetricsConfig {
metrics_port: 9090; // Exposes metrics at /metrics on this alternate port
metrics_on_main: false; // Exposes metrics at /-/metrics on Verdaccio
default_labels: {}; // key/value tags attached to every metric
collect_http: true; // Latency metrics for Verdaccio's API, by method and status code
collect_database: false; // WIP metrics about Verdaccio's database, updated infrequently
collect_up: false; // a fixed gauge of '1'
collect_runtime: false; // the default Prometheus metrics for NodeJS processes
}
See the verdaccio contributing guide for instructions setting up your development environment.
Note that yarn
is being used in place of npm
in this plugin.
Once you have completed that, use the following yarn tasks.
yarn build
Build a distributable archive
yarn test
Run unit test
For more information about any of these commands run yarn ${task} -- --help
.
FAQs
Verdaccio plugin exposing an OpenMetrics/Prometheus endpoint with health and traffic metrics
We found that @freighthub/verdaccio-openmetrics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 53 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.