import { IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1BasicAuth } from "../../monitoring.coreos.com/v1/BasicAuth.js"; import { IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1MetadataConfig } from "./MetadataConfig.js"; import { IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1OAuth2 } from "../../monitoring.coreos.com/v1/OAuth2.js"; import { IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1QueueConfig } from "./QueueConfig.js"; import { IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1SigV4Config } from "./SigV4Config.js"; import { IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1TLSConfig } from "../../monitoring.coreos.com/v1/TLSConfig.js"; import { IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1RelabelConfig } from "../../monitoring.coreos.com/v1/RelabelConfig.js"; import { ModelData, Model } from "@kubernetes-models/base"; /** * RemoteWriteSpec defines the remote_write configuration for Prometheus. */ export interface IRemoteWriteSpec { /** * BasicAuth for the URL. */ "basicAuth"?: IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1BasicAuth; /** * BearerToken used for remote_write. */ "bearerToken"?: string; /** * BearerTokenFile used to read bearer token. */ "bearerTokenFile"?: string; /** * Headers is a set of custom HTTP headers to be sent along with each * remote_write request. Be aware that any headers set by Grafana Agent * itself can't be overwritten. */ "headers"?: { [key: string]: string; }; /** * MetadataConfig configures the sending of series metadata to remote storage. */ "metadataConfig"?: IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1MetadataConfig; /** * Name of the remote_write queue. Must be unique if specified. The name is * used in metrics and logging in order to differentiate queues. */ "name"?: string; /** * Oauth2 for URL */ "oauth2"?: IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1OAuth2; /** * ProxyURL to proxy requests through. Optional. */ "proxyUrl"?: string; /** * QueueConfig allows tuning of the remote_write queue parameters. */ "queueConfig"?: IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1QueueConfig; /** * RemoteTimeout is the timeout for requests to the remote_write endpoint. */ "remoteTimeout"?: string; /** * SigV4 configures SigV4-based authentication to the remote_write endpoint. * SigV4-based authentication is used if SigV4 is defined, even with an empty object. */ "sigv4"?: IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1SigV4Config; /** * TLSConfig to use for remote_write. */ "tlsConfig"?: IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1TLSConfig; /** * URL of the endpoint to send samples to. */ "url": string; /** * WriteRelabelConfigs holds relabel_configs to relabel samples before they are * sent to the remote_write endpoint. */ "writeRelabelConfigs"?: Array; } /** * RemoteWriteSpec defines the remote_write configuration for Prometheus. */ export declare class RemoteWriteSpec extends Model implements IRemoteWriteSpec { "basicAuth"?: IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1BasicAuth; "bearerToken"?: string; "bearerTokenFile"?: string; "headers"?: { [key: string]: string; }; "metadataConfig"?: IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1MetadataConfig; "name"?: string; "oauth2"?: IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1OAuth2; "proxyUrl"?: string; "queueConfig"?: IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1QueueConfig; "remoteTimeout"?: string; "sigv4"?: IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1SigV4Config; "tlsConfig"?: IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1TLSConfig; "url": string; "writeRelabelConfigs"?: Array; constructor(data?: ModelData); } export type { IRemoteWriteSpec as IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1RemoteWriteSpec, RemoteWriteSpec as ComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1RemoteWriteSpec };