import { Counter, Registry, Summary } from "prom-client";

export enum AuthMetrics {
  DOOR_CONFIG_NOT_FOUND = "DoorConfigNotFound",
  AUTH_METHOD = "AuthMethod",
}

export const registerMetrics = (metricsRegistry: Registry) => {
  metricsRegistry.registerMetric(new Counter({
    name: AuthMetrics.DOOR_CONFIG_NOT_FOUND,
    help: "Auth was attempted on a door that does not exist",
    labelNames: ["door"],
  }));

  metricsRegistry.registerMetric(new Counter({
    name: AuthMetrics.AUTH_METHOD,
    help: "Which auth method was used",
    labelNames: ["method"],
  }));
}
