Captures the configuration necessary for connecting to a Prometheus DB.

Hierarchy

  • PrometheusConfig

Properties

auth?: {
    password: string;
    username: string;
}

Credentials to be used for authentication.

Type declaration

  • password: string
  • username: string
baseURL?: string

The base URL of the Prometheus REST API.

Default: /api/v1

host: string

The host, where Prometheus can be reached.

port?: number

The port, where Prometheus is listening.

Default: 9090

timeout?: number

Number of milliseconds before a request goes into timeout.

useTLS?: boolean

Determines whether to use an HTTPS connection.

Default: false

Generated using TypeDoc