@tolinax/ayoune-interfaces 2024.4.33 → 2024.4.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,13 +7,66 @@ interface ScrapeConfig {
7
7
  params?: Record<string, string[]>;
8
8
  scrape_interval?: string;
9
9
  scrape_timeout?: string;
10
+ scrape_protocols?: string[];
11
+ scrape_classic_histograms?: boolean;
12
+ honor_labels?: boolean;
13
+ honor_timestamps?: boolean;
14
+ track_timestamps_staleness?: boolean;
15
+ enable_compression?: boolean;
10
16
  static_configs?: StaticConfig[];
11
17
  relabel_configs?: RelabelConfig[];
12
18
  metric_relabel_configs?: RelabelConfig[];
13
19
  basic_auth?: BasicAuth;
20
+ evaluation_interval?: string;
21
+ external_labels?: Record<string, string>;
22
+ body_size_limit?: string | number;
23
+ sample_limit?: number;
24
+ label_limit?: number;
25
+ label_name_length_limit?: number;
26
+ label_value_length_limit?: number;
27
+ target_limit?: number;
28
+ keep_dropped_targets?: number;
29
+ native_histogram_bucket_limit?: number;
30
+ native_histogram_min_bucket_factor?: number;
31
+ authorization?: {
32
+ type: string;
33
+ credentials?: string;
34
+ credentials_file?: string;
35
+ };
36
+ oauth2?: any;
37
+ follow_redirects?: boolean;
38
+ enable_http2?: boolean;
14
39
  tls_config?: TLSConfig;
15
- bearer_token?: string;
16
- bearer_token_file?: string;
40
+ proxy_url?: string;
41
+ no_proxy?: string;
42
+ proxy_connect_header?: any;
43
+ azure_sd_configs?: any;
44
+ consul_sd_configs?: any;
45
+ digitalocean_sd_configs?: any;
46
+ docker_sd_configs?: any;
47
+ dockerswarm_sd_configs?: any;
48
+ dns_sd_configs?: any;
49
+ ec2_sd_configs?: any;
50
+ eureka_sd_configs?: any;
51
+ file_sd_configs?: any;
52
+ gce_sd_configs?: any;
53
+ hetzner_sd_configs?: any;
54
+ http_sd_configs?: any;
55
+ ionos_sd_configs?: any;
56
+ kubernetes_sd_configs?: any;
57
+ kuma_sd_configs?: any;
58
+ lightsail_sd_configs?: any;
59
+ linode_sd_configs?: any;
60
+ marathon_sd_configs?: any;
61
+ nerve_sd_configs?: any;
62
+ nomad_sd_configs?: any;
63
+ openstack_sd_configs?: any;
64
+ ovhcloud_sd_configs?: any;
65
+ puppetdb_sd_configs?: any;
66
+ scaleway_sd_configs?: any;
67
+ serverset_sd_configs?: any;
68
+ triton_sd_configs?: any;
69
+ uyuni_sd_configs?: any;
17
70
  }
18
71
  interface StaticConfig {
19
72
  targets: string[];
@@ -54,7 +107,8 @@ interface RemoteRead {
54
107
  }
55
108
  interface BasicAuth {
56
109
  username: string;
57
- password: string;
110
+ password?: string;
111
+ password_file?: string;
58
112
  }
59
113
  interface TLSConfig {
60
114
  ca_file?: string;
@@ -95,42 +149,57 @@ interface GlobalConfig {
95
149
  target_limit?: number;
96
150
  keep_dropped_targets?: number;
97
151
  }
152
+ interface PromConfig {
153
+ global: GlobalConfig;
154
+ alerting?: Alerting;
155
+ scrape_configs?: ScrapeConfig[];
156
+ scrape_config_files?: string[];
157
+ rule_files?: string[];
158
+ remote_write?: RemoteWrite[];
159
+ remote_read?: RemoteRead[];
160
+ storage?: Storage;
161
+ tracing?: TracingConfig;
162
+ }
163
+ interface DetailOptions {
164
+ job_name: string;
165
+ scrape_interval: string;
166
+ include: boolean;
167
+ excludes: string[];
168
+ }
169
+ interface ComputingEntitiesOptions extends DetailOptions {
170
+ }
171
+ interface KPIOptions extends DetailOptions {
172
+ }
173
+ interface StatesOptions extends DetailOptions {
174
+ }
175
+ interface EventsOptions extends DetailOptions {
176
+ }
177
+ interface ServicesOptions extends DetailOptions {
178
+ }
179
+ interface MicroServicesOptions extends DetailOptions {
180
+ }
181
+ interface K8DeploymentsOptions extends DetailOptions {
182
+ }
98
183
  export interface IPrometheusConfig extends IDefaultFields {
99
- _id: string;
100
184
  archived: boolean;
101
- environment: "production" | "lab" | "all";
102
- namespace: "develop" | "production" | "stage" | any;
185
+ environment: "production" | "lab" | "all" | string;
186
+ namespace: "develop" | "production" | "stage" | string;
103
187
  _customerID?: ObjectId;
104
188
  _clientID?: ObjectId[];
105
189
  _subID?: ObjectId[];
106
190
  name: string;
107
191
  slug: string;
108
192
  host: string;
109
- includeComputingEntities: boolean;
110
- excludedComputingEntities: string[];
111
- includeKPIs: boolean;
112
- excludedKPIs: string[];
113
- includeStates: boolean;
114
- excludedStates: string[];
115
- includeEvents: boolean;
116
- excludedEvents: string[];
117
- includeServices: boolean;
118
- excludedServices: string[];
119
- includeMicroServices: boolean;
120
- excludedMicroServices: string[];
121
- includeK8Deployments: boolean;
122
- excludedK8Deployments: string[];
123
- global: GlobalConfig;
124
- rule_files?: string[];
125
- scrape_config_files?: string[];
126
- scrape_configs?: ScrapeConfig[];
127
- alerting?: Alerting;
128
- remote_write?: RemoteWrite[];
129
- remote_read?: RemoteRead[];
130
- storage?: Storage;
131
- tracing?: TracingConfig;
132
- createdAt: Date;
133
- updatedAt: Date;
193
+ options: {
194
+ computingEntities: ComputingEntitiesOptions;
195
+ kpis: KPIOptions;
196
+ states: StatesOptions;
197
+ events: EventsOptions;
198
+ services: ServicesOptions;
199
+ microServices: MicroServicesOptions;
200
+ k8Deployments: K8DeploymentsOptions;
201
+ };
202
+ prom: PromConfig;
134
203
  labels: ILabel[];
135
204
  }
136
205
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolinax/ayoune-interfaces",
3
- "version": "2024.4.33",
3
+ "version": "2024.4.35",
4
4
  "description": "Houses TypeScript interfaces for aYOUne",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",