Skip to content

Commit

Permalink
Merge pull request #2 from freight-hub/actually-build
Browse files Browse the repository at this point in the history
fix(ci): Run build before running publish
  • Loading branch information
danopia authored Jan 12, 2021
2 parents b855fc7 + 100b4fe commit 8b66378
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ jobs:
- ~/.cache/yarn
- node_modules

- run:
name: Build project
command: yarn run build

- add_ssh_keys:
fingerprints:
- "ef:b9:18:2b:4e:2f:26:2b:fb:c3:f1:25:a1:ca:30:88"
Expand Down
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# verdaccio-openmetrics
# @freighthub/verdaccio-openmetrics

> Exposes 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.
Expand All @@ -21,6 +21,19 @@ There's also an option to collect NodeJS runtime metrics
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.

## plugin name

Note that this Verdaccio plugin is published within a package scope.
To load the plugin from a Verdaccio config, specify the full name:

```yaml
middlewares:
'@freighthub/verdaccio-openmetrics':
enabled: true
```
This works around the automatic `verdaccio-` prefix that Verdaccio expects.

## config

If no extra config is given, HTTP request metrics will be exposed at `:9090/metrics`.
Expand All @@ -29,7 +42,7 @@ If you want additional metrics, for example runtime and database metrics:

```yaml
middlewares:
openmetrics:
'@freighthub/verdaccio-openmetrics':
enabled: true
collect_runtime: true
collect_database: true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@freighthub/verdaccio-openmetrics",
"version": "0.1.0",
"description": "Exposes an OpenMetrics/Prometheus endpoint with health and traffic metrics",
"description": "Verdaccio plugin exposing an OpenMetrics/Prometheus endpoint with health and traffic metrics",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
Expand Down

0 comments on commit 8b66378

Please sign in to comment.