import { IIoK8sApiCoreV1SecretKeySelector } from "kubernetes-models/v1/SecretKeySelector"; import { IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1LogsClientSpec } from "./LogsClientSpec.js"; import { IIoK8sApimachineryPkgApisMetaV1LabelSelector } from "@kubernetes-models/apimachinery/apis/meta/v1/LabelSelector"; import { IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1LogsTargetConfigSpec } from "./LogsTargetConfigSpec.js"; import { ModelData, Model } from "@kubernetes-models/base"; /** * LogsInstanceSpec controls how an individual instance will be used to * discover LogMonitors. */ export interface ILogsInstanceSpec { /** * AdditionalScrapeConfigs allows specifying a key of a Secret containing * additional Grafana Agent logging scrape configurations. Scrape * configurations specified are appended to the configurations generated by * the Grafana Agent Operator. * * Job configurations specified must have the form as specified in the * official Promtail documentation: * * https://grafana.com/docs/loki/latest/clients/promtail/configuration/#scrape_configs * * As scrape configs are appended, the user is responsible to make sure it is * valid. Note that using this feature may expose the possibility to break * upgrades of Grafana Agent. It is advised to review both Grafana Agent and * Promtail release notes to ensure that no incompatible scrape configs are * going to break Grafana Agent after the upgrade. */ "additionalScrapeConfigs"?: IIoK8sApiCoreV1SecretKeySelector; /** * Clients controls where logs are written to for this instance. */ "clients"?: Array; /** * Set of labels to determine which namespaces should be watched * for PodLogs. If not provided, checks only namespace of the * instance. */ "podLogsNamespaceSelector"?: IIoK8sApimachineryPkgApisMetaV1LabelSelector; /** * Determines which PodLogs should be selected for including in this * instance. */ "podLogsSelector"?: IIoK8sApimachineryPkgApisMetaV1LabelSelector; /** * Configures how tailed targets are watched. */ "targetConfig"?: IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1LogsTargetConfigSpec; } /** * LogsInstanceSpec controls how an individual instance will be used to * discover LogMonitors. */ export declare class LogsInstanceSpec extends Model implements ILogsInstanceSpec { "additionalScrapeConfigs"?: IIoK8sApiCoreV1SecretKeySelector; "clients"?: Array; "podLogsNamespaceSelector"?: IIoK8sApimachineryPkgApisMetaV1LabelSelector; "podLogsSelector"?: IIoK8sApimachineryPkgApisMetaV1LabelSelector; "targetConfig"?: IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1LogsTargetConfigSpec; constructor(data?: ModelData); } export type { ILogsInstanceSpec as IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1LogsInstanceSpec, LogsInstanceSpec as ComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1LogsInstanceSpec };