@tolinax/ayoune-interfaces 2024.4.32 → 2024.4.34

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;
@@ -80,31 +134,7 @@ interface JaegerConfig {
80
134
  agent_host: string;
81
135
  agent_port: number;
82
136
  }
83
- export interface IPrometheusConfig extends IDefaultFields {
84
- _id: string;
85
- archived: boolean;
86
- environment: "production" | "lab" | "all";
87
- namespace: "develop" | "production" | "stage" | any;
88
- _customerID?: ObjectId;
89
- _clientID?: ObjectId[];
90
- _subID?: ObjectId[];
91
- name: string;
92
- slug: string;
93
- host: string;
94
- includeComputingEntities: boolean;
95
- excludedComputingEntities: string[];
96
- includeKPIs: boolean;
97
- excludedKPIs: string[];
98
- includeStates: boolean;
99
- excludedStates: string[];
100
- includeEvents: boolean;
101
- excludedEvents: string[];
102
- includeServices: boolean;
103
- excludedServices: string[];
104
- includeMicroServices: boolean;
105
- excludedMicroServices: string[];
106
- includeK8Deployments: boolean;
107
- excludedK8Deployments: string[];
137
+ interface GlobalConfig {
108
138
  scrape_interval?: string;
109
139
  scrape_timeout?: string;
110
140
  scrape_protocols?: string[];
@@ -118,6 +148,9 @@ export interface IPrometheusConfig extends IDefaultFields {
118
148
  label_value_length_limit?: number;
119
149
  target_limit?: number;
120
150
  keep_dropped_targets?: number;
151
+ }
152
+ interface PromConfig {
153
+ global: GlobalConfig;
121
154
  rule_files?: string[];
122
155
  scrape_config_files?: string[];
123
156
  scrape_configs?: ScrapeConfig[];
@@ -126,8 +159,47 @@ export interface IPrometheusConfig extends IDefaultFields {
126
159
  remote_read?: RemoteRead[];
127
160
  storage?: Storage;
128
161
  tracing?: TracingConfig;
129
- createdAt: Date;
130
- updatedAt: Date;
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
+ }
183
+ export interface IPrometheusConfig extends IDefaultFields {
184
+ archived: boolean;
185
+ environment: "production" | "lab" | "all" | string;
186
+ namespace: "develop" | "production" | "stage" | string;
187
+ _customerID?: ObjectId;
188
+ _clientID?: ObjectId[];
189
+ _subID?: ObjectId[];
190
+ name: string;
191
+ slug: string;
192
+ host: string;
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;
131
203
  labels: ILabel[];
132
204
  }
133
205
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolinax/ayoune-interfaces",
3
- "version": "2024.4.32",
3
+ "version": "2024.4.34",
4
4
  "description": "Houses TypeScript interfaces for aYOUne",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",