A simple and easy to use module for Prometheus metric exporting.
## Usage
Create an instance of SimpleProm using `SimpleProm.init`
```ts
import SimpleProm from "simple-prom";
const instance = SimpleProm.init({});
```
See [IConfig](https://git.eusv.net/Catgirl.Enterprises/simple-prom/src/branch/master/interfaces/IConfig.ts) for config values to use in `SimpleProm.init`
### Self hosted usage
SimpleProm can self host it's own http server for metrics polling, simple pass "selfHost: true" in the init config.
```ts
const instance = SimpleProm.init({
selfHost: true,
selfHostPort: 1337 // Optional, defaults to 9100
});
```
### Use your own http server
Simply passing an empty config `{}` will get you what you want here, to get the metrics data call `getMetricText()` on your SimpleProm instance.
You can then use it as you normally would with anything, in this example with express: