@platformatic/composer 3.13.1 → 3.15.0
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.
- package/config.d.ts +31 -0
- package/package.json +3 -3
- package/schema.json +134 -16
package/config.d.ts
CHANGED
|
@@ -386,6 +386,37 @@ export interface PlatformaticComposerConfig {
|
|
|
386
386
|
};
|
|
387
387
|
plugins?: string[];
|
|
388
388
|
timeout?: number | string;
|
|
389
|
+
/**
|
|
390
|
+
* Configuration for exporting metrics to an OTLP endpoint
|
|
391
|
+
*/
|
|
392
|
+
otlpExporter?: {
|
|
393
|
+
/**
|
|
394
|
+
* Enable or disable OTLP metrics export
|
|
395
|
+
*/
|
|
396
|
+
enabled?: boolean | string;
|
|
397
|
+
/**
|
|
398
|
+
* OTLP endpoint URL (e.g., http://collector:4318/v1/metrics)
|
|
399
|
+
*/
|
|
400
|
+
endpoint: string;
|
|
401
|
+
/**
|
|
402
|
+
* Interval in milliseconds between metric pushes
|
|
403
|
+
*/
|
|
404
|
+
interval?: number | string;
|
|
405
|
+
/**
|
|
406
|
+
* Additional HTTP headers for authentication
|
|
407
|
+
*/
|
|
408
|
+
headers?: {
|
|
409
|
+
[k: string]: string;
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* Service name for OTLP resource attributes
|
|
413
|
+
*/
|
|
414
|
+
serviceName?: string;
|
|
415
|
+
/**
|
|
416
|
+
* Service version for OTLP resource attributes
|
|
417
|
+
*/
|
|
418
|
+
serviceVersion?: string;
|
|
419
|
+
};
|
|
389
420
|
};
|
|
390
421
|
telemetry?: {
|
|
391
422
|
enabled?: boolean | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/composer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"json-schema-to-typescript": "^15.0.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@platformatic/foundation": "3.
|
|
27
|
-
"@platformatic/gateway": "3.
|
|
26
|
+
"@platformatic/foundation": "3.15.0",
|
|
27
|
+
"@platformatic/gateway": "3.15.0"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/composer/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/composer/3.15.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Composer Config",
|
|
5
5
|
"type": "object",
|
|
@@ -728,14 +728,34 @@
|
|
|
728
728
|
"useHttp": {
|
|
729
729
|
"type": "boolean"
|
|
730
730
|
},
|
|
731
|
+
"reuseTcpPorts": {
|
|
732
|
+
"type": "boolean",
|
|
733
|
+
"default": true
|
|
734
|
+
},
|
|
731
735
|
"workers": {
|
|
732
736
|
"anyOf": [
|
|
733
737
|
{
|
|
734
|
-
"type": "number"
|
|
735
|
-
"minimum": 1
|
|
738
|
+
"type": "number"
|
|
736
739
|
},
|
|
737
740
|
{
|
|
738
741
|
"type": "string"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"type": "object",
|
|
745
|
+
"properties": {
|
|
746
|
+
"static": {
|
|
747
|
+
"type": "number",
|
|
748
|
+
"minimum": 1
|
|
749
|
+
},
|
|
750
|
+
"minimum": {
|
|
751
|
+
"type": "number",
|
|
752
|
+
"minimum": 1
|
|
753
|
+
},
|
|
754
|
+
"maximum": {
|
|
755
|
+
"type": "number",
|
|
756
|
+
"minimum": 0
|
|
757
|
+
}
|
|
758
|
+
}
|
|
739
759
|
}
|
|
740
760
|
]
|
|
741
761
|
},
|
|
@@ -956,6 +976,43 @@
|
|
|
956
976
|
},
|
|
957
977
|
{
|
|
958
978
|
"type": "string"
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
"type": "object",
|
|
982
|
+
"properties": {
|
|
983
|
+
"static": {
|
|
984
|
+
"type": "number",
|
|
985
|
+
"minimum": 1
|
|
986
|
+
},
|
|
987
|
+
"dynamic": {
|
|
988
|
+
"type": "boolean",
|
|
989
|
+
"default": false
|
|
990
|
+
},
|
|
991
|
+
"minimum": {
|
|
992
|
+
"type": "number",
|
|
993
|
+
"minimum": 1
|
|
994
|
+
},
|
|
995
|
+
"maximum": {
|
|
996
|
+
"type": "number",
|
|
997
|
+
"minimum": 0
|
|
998
|
+
},
|
|
999
|
+
"total": {
|
|
1000
|
+
"type": "number",
|
|
1001
|
+
"minimum": 1
|
|
1002
|
+
},
|
|
1003
|
+
"maxMemory": {
|
|
1004
|
+
"type": "number",
|
|
1005
|
+
"minimum": 0
|
|
1006
|
+
},
|
|
1007
|
+
"cooldown": {
|
|
1008
|
+
"type": "number",
|
|
1009
|
+
"minimum": 0
|
|
1010
|
+
},
|
|
1011
|
+
"gracePeriod": {
|
|
1012
|
+
"type": "number",
|
|
1013
|
+
"minimum": 0
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
959
1016
|
}
|
|
960
1017
|
]
|
|
961
1018
|
},
|
|
@@ -1241,6 +1298,10 @@
|
|
|
1241
1298
|
},
|
|
1242
1299
|
"additionalProperties": false
|
|
1243
1300
|
},
|
|
1301
|
+
"reuseTcpPorts": {
|
|
1302
|
+
"type": "boolean",
|
|
1303
|
+
"default": true
|
|
1304
|
+
},
|
|
1244
1305
|
"startTimeout": {
|
|
1245
1306
|
"default": 30000,
|
|
1246
1307
|
"type": "number",
|
|
@@ -1732,6 +1793,58 @@
|
|
|
1732
1793
|
}
|
|
1733
1794
|
],
|
|
1734
1795
|
"default": 10000
|
|
1796
|
+
},
|
|
1797
|
+
"otlpExporter": {
|
|
1798
|
+
"type": "object",
|
|
1799
|
+
"description": "Configuration for exporting metrics to an OTLP endpoint",
|
|
1800
|
+
"properties": {
|
|
1801
|
+
"enabled": {
|
|
1802
|
+
"anyOf": [
|
|
1803
|
+
{
|
|
1804
|
+
"type": "boolean"
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
"type": "string"
|
|
1808
|
+
}
|
|
1809
|
+
],
|
|
1810
|
+
"description": "Enable or disable OTLP metrics export"
|
|
1811
|
+
},
|
|
1812
|
+
"endpoint": {
|
|
1813
|
+
"type": "string",
|
|
1814
|
+
"description": "OTLP endpoint URL (e.g., http://collector:4318/v1/metrics)"
|
|
1815
|
+
},
|
|
1816
|
+
"interval": {
|
|
1817
|
+
"anyOf": [
|
|
1818
|
+
{
|
|
1819
|
+
"type": "integer"
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
"type": "string"
|
|
1823
|
+
}
|
|
1824
|
+
],
|
|
1825
|
+
"default": 60000,
|
|
1826
|
+
"description": "Interval in milliseconds between metric pushes"
|
|
1827
|
+
},
|
|
1828
|
+
"headers": {
|
|
1829
|
+
"type": "object",
|
|
1830
|
+
"additionalProperties": {
|
|
1831
|
+
"type": "string"
|
|
1832
|
+
},
|
|
1833
|
+
"description": "Additional HTTP headers for authentication"
|
|
1834
|
+
},
|
|
1835
|
+
"serviceName": {
|
|
1836
|
+
"type": "string",
|
|
1837
|
+
"description": "Service name for OTLP resource attributes"
|
|
1838
|
+
},
|
|
1839
|
+
"serviceVersion": {
|
|
1840
|
+
"type": "string",
|
|
1841
|
+
"description": "Service version for OTLP resource attributes"
|
|
1842
|
+
}
|
|
1843
|
+
},
|
|
1844
|
+
"required": [
|
|
1845
|
+
"endpoint"
|
|
1846
|
+
],
|
|
1847
|
+
"additionalProperties": false
|
|
1735
1848
|
}
|
|
1736
1849
|
},
|
|
1737
1850
|
"additionalProperties": false
|
|
@@ -1891,35 +2004,40 @@
|
|
|
1891
2004
|
"type": "number",
|
|
1892
2005
|
"minimum": 1
|
|
1893
2006
|
},
|
|
2007
|
+
"cooldownSec": {
|
|
2008
|
+
"type": "number",
|
|
2009
|
+
"minimum": 0
|
|
2010
|
+
},
|
|
2011
|
+
"gracePeriod": {
|
|
2012
|
+
"type": "number",
|
|
2013
|
+
"minimum": 0
|
|
2014
|
+
},
|
|
1894
2015
|
"scaleUpELU": {
|
|
1895
2016
|
"type": "number",
|
|
1896
2017
|
"minimum": 0,
|
|
1897
|
-
"maximum": 1
|
|
2018
|
+
"maximum": 1,
|
|
2019
|
+
"deprecated": true
|
|
1898
2020
|
},
|
|
1899
2021
|
"scaleDownELU": {
|
|
1900
2022
|
"type": "number",
|
|
1901
2023
|
"minimum": 0,
|
|
1902
|
-
"maximum": 1
|
|
2024
|
+
"maximum": 1,
|
|
2025
|
+
"deprecated": true
|
|
1903
2026
|
},
|
|
1904
2027
|
"timeWindowSec": {
|
|
1905
2028
|
"type": "number",
|
|
1906
|
-
"minimum": 0
|
|
2029
|
+
"minimum": 0,
|
|
2030
|
+
"deprecated": true
|
|
1907
2031
|
},
|
|
1908
2032
|
"scaleDownTimeWindowSec": {
|
|
1909
2033
|
"type": "number",
|
|
1910
|
-
"minimum": 0
|
|
1911
|
-
|
|
1912
|
-
"cooldownSec": {
|
|
1913
|
-
"type": "number",
|
|
1914
|
-
"minimum": 0
|
|
2034
|
+
"minimum": 0,
|
|
2035
|
+
"deprecated": true
|
|
1915
2036
|
},
|
|
1916
2037
|
"scaleIntervalSec": {
|
|
1917
2038
|
"type": "number",
|
|
1918
|
-
"minimum": 0
|
|
1919
|
-
|
|
1920
|
-
"gracePeriod": {
|
|
1921
|
-
"type": "number",
|
|
1922
|
-
"minimum": 0
|
|
2039
|
+
"minimum": 0,
|
|
2040
|
+
"deprecated": true
|
|
1923
2041
|
}
|
|
1924
2042
|
},
|
|
1925
2043
|
"additionalProperties": false
|