Add all repos
This commit is contained in:
parent
faa12c60bc
commit
8a91c9b89b
369 changed files with 29047 additions and 28 deletions
22
metamigo-common/config/metrics-server.ts
Normal file
22
metamigo-common/config/metrics-server.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { ConvictSchema } from "./types";
|
||||
|
||||
export interface IMetricsConfig {
|
||||
address: string;
|
||||
port: number;
|
||||
}
|
||||
|
||||
export const MetricsConfig: ConvictSchema<IMetricsConfig> = {
|
||||
address: {
|
||||
doc: "The ip address to bind the prometheus metrics to",
|
||||
format: "ipaddress",
|
||||
default: "127.0.0.1",
|
||||
env: "METRICS_ADDRESS",
|
||||
},
|
||||
port: {
|
||||
doc: "The port to bind the prometheus metrics to",
|
||||
format: "port",
|
||||
default: 3002,
|
||||
env: "METRICS_PORT",
|
||||
arg: "port",
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue