You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Configuration of a log handler for an extractor.",
7
+
"discriminatorProp": "type",
8
+
"oneOf": [
9
+
{
10
+
"type": "object",
11
+
"description": "Configuration for a log handler that writes logs to a local file",
12
+
"unevaluatedProperties": false,
13
+
"title": "File",
14
+
"properties": {
15
+
"type": {
16
+
"type": "string",
17
+
"const": "file",
18
+
"description": "Type of log handler, must be 'file' for a log handler that writes logs to a local file"
19
+
},
20
+
"path": {
21
+
"type": "string",
22
+
"description": "File path to the log file to write logs to"
23
+
},
24
+
"retention": {
25
+
"type": "integer",
26
+
"description": "Number of log files to retain when rotating logs.",
27
+
"default": 7
28
+
},
29
+
"level": {
30
+
"type": "string",
31
+
"description": "Select the verbosity level for console logging. To reduce the verbosity levels, use `DEBUG`, `INFO`, `WARNING`, `ERROR`, or `CRITICAL`.",
32
+
"enum": [
33
+
"DEBUG",
34
+
"INFO",
35
+
"WARNING",
36
+
"ERROR",
37
+
"CRITICAL"
38
+
]
39
+
}
40
+
},
41
+
"required": [
42
+
"type",
43
+
"path",
44
+
"level"
45
+
]
46
+
},
47
+
{
48
+
"type": "object",
49
+
"description": "Configuration for a log handler that writes logs to the console",
50
+
"unevaluatedProperties": false,
51
+
"title": "Console",
52
+
"properties": {
53
+
"type": {
54
+
"type": "string",
55
+
"const": "console",
56
+
"description": "Type of log handler, must be 'console' for a log handler that writes logs to the console"
57
+
},
58
+
"level": {
59
+
"type": "string",
60
+
"description": "Select the verbosity level for console logging. To reduce the verbosity levels, use `DEBUG`, `INFO`, `WARNING`, `ERROR`, or `CRITICAL`.",
"description": "Configuration of metrics collection for an extractor",
7
+
"properties": {
8
+
"push-gateways": {
9
+
"type": "array",
10
+
"description": "List of Prometheus Push Gateways to push metrics to",
11
+
"items": {
12
+
"type": "object",
13
+
"unevaluatedProperties": false,
14
+
"properties": {
15
+
"host": {
16
+
"type": "string",
17
+
"description": "Host of the Prometheus Push Gateway, e.g. 'pushgateway.example.com'"
18
+
},
19
+
"job-name": {
20
+
"type": "string",
21
+
"description": "Job name to use when pushing metrics to the Prometheus Push Gateway"
22
+
},
23
+
"username": {
24
+
"type": "string",
25
+
"description": "Username for authenticating with the Prometheus Push Gateway, if required"
26
+
},
27
+
"password": {
28
+
"type": "string",
29
+
"description": "Password for authenticating with the Prometheus Push Gateway, if required"
30
+
},
31
+
"clear-after": {
32
+
"type": "string",
33
+
"description": "Interval for clearing metrics from the Prometheus Push Gateway, on the form 12s, 15m, 1h, etc. If not specified, metrics will not be cleared from the Push Gateway."
34
+
},
35
+
"push-interval": {
36
+
"type": "string",
37
+
"description": "Interval for pushing metrics to the Prometheus Push Gateway, on the form 12s, 15m, 1h, etc.",
38
+
"default": "30s"
39
+
}
40
+
},
41
+
"required": [
42
+
"host",
43
+
"job-name"
44
+
]
45
+
}
46
+
},
47
+
"cognite": {
48
+
"type": "object",
49
+
"unevaluatedProperties": false,
50
+
"description": "Configuration for pushing metrics to CDF Classic time-series",
51
+
"properties": {
52
+
"external-id-prefix": {
53
+
"type": "string",
54
+
"description": "Prefix on external ID used when creating CDF time series to store metrics."
55
+
},
56
+
"asset-name": {
57
+
"type": "string",
58
+
"description": "Enter the name for a CDF asset that will have all the metrics time series attached to it."
59
+
},
60
+
"asset-external-id": {
61
+
"type": "string",
62
+
"description": "Enter the external ID for a CDF asset with all the metrics time series attached to it."
63
+
},
64
+
"push-interval": {
65
+
"type": "string",
66
+
"description": "Enter the interval between each push to CDF, on the form 12s, 15m, 1h, etc.",
67
+
"default": "30s"
68
+
},
69
+
"data-set": {
70
+
"description": "The data set where the metrics will be created.",
71
+
"$ref": "either_id.schema.json"
72
+
}
73
+
},
74
+
"required": [
75
+
"external-id-prefix"
76
+
]
77
+
},
78
+
"server": {
79
+
"type": "object",
80
+
"unevaluatedProperties": false,
81
+
"description": "Configuration for exposing an HTTP server with Prometheus metrics for scraping.",
82
+
"properties": {
83
+
"host": {
84
+
"type": "string",
85
+
"description": "Host to run the Prometheus server on.",
86
+
"default": "0.0.0.0"
87
+
},
88
+
"port": {
89
+
"type": "integer",
90
+
"description": "Port to run the Prometheus server on.",
0 commit comments