@studion/infra-code-blocks 0.7.0 → 0.8.0-next.1

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.
Files changed (100) hide show
  1. package/dist/components/acm-certificate.d.ts +1 -0
  2. package/dist/components/acm-certificate.d.ts.map +1 -0
  3. package/dist/components/database-replica.d.ts +1 -0
  4. package/dist/components/database-replica.d.ts.map +1 -0
  5. package/dist/components/database.d.ts +1 -0
  6. package/dist/components/database.d.ts.map +1 -0
  7. package/dist/components/ec2-ssm-connect.d.ts +1 -0
  8. package/dist/components/ec2-ssm-connect.d.ts.map +1 -0
  9. package/dist/components/ecs-service.d.ts +1 -0
  10. package/dist/components/ecs-service.d.ts.map +1 -0
  11. package/dist/components/ecs-service.js +2 -1
  12. package/dist/components/mongo.d.ts +1 -0
  13. package/dist/components/mongo.d.ts.map +1 -0
  14. package/dist/components/nuxt-ssr.d.ts +1 -0
  15. package/dist/components/nuxt-ssr.d.ts.map +1 -0
  16. package/dist/components/password.d.ts +1 -0
  17. package/dist/components/password.d.ts.map +1 -0
  18. package/dist/components/project.d.ts +1 -0
  19. package/dist/components/project.d.ts.map +1 -0
  20. package/dist/components/redis.d.ts +1 -0
  21. package/dist/components/redis.d.ts.map +1 -0
  22. package/dist/components/static-site.d.ts +1 -0
  23. package/dist/components/static-site.d.ts.map +1 -0
  24. package/dist/components/web-server.d.ts +1 -0
  25. package/dist/components/web-server.d.ts.map +1 -0
  26. package/dist/components/web-server.js +2 -1
  27. package/dist/constants.d.ts +1 -0
  28. package/dist/constants.d.ts.map +1 -0
  29. package/dist/index.d.ts +2 -0
  30. package/dist/index.d.ts.map +1 -0
  31. package/dist/index.js +2 -0
  32. package/dist/types/pulumi.d.ts +5 -0
  33. package/dist/types/pulumi.d.ts.map +1 -0
  34. package/dist/types/pulumi.js +2 -0
  35. package/dist/types/size.d.ts +1 -0
  36. package/dist/types/size.d.ts.map +1 -0
  37. package/dist/v2/components/ecs-service/index.d.ts +156 -0
  38. package/dist/v2/components/ecs-service/index.d.ts.map +1 -0
  39. package/dist/v2/components/ecs-service/index.js +365 -0
  40. package/dist/v2/components/ecs-service/policies.d.ts +3 -0
  41. package/dist/v2/components/ecs-service/policies.d.ts.map +1 -0
  42. package/dist/v2/components/ecs-service/policies.js +16 -0
  43. package/dist/v2/components/grafana/dashboards/index.d.ts +3 -0
  44. package/dist/v2/components/grafana/dashboards/index.d.ts.map +1 -0
  45. package/dist/v2/components/grafana/dashboards/index.js +6 -0
  46. package/dist/v2/components/grafana/dashboards/panels.d.ts +6 -0
  47. package/dist/v2/components/grafana/dashboards/panels.d.ts.map +1 -0
  48. package/dist/v2/components/grafana/dashboards/panels.js +91 -0
  49. package/dist/v2/components/grafana/dashboards/types.d.ts +66 -0
  50. package/dist/v2/components/grafana/dashboards/types.d.ts.map +1 -0
  51. package/dist/v2/components/grafana/dashboards/types.js +2 -0
  52. package/dist/v2/components/grafana/dashboards/web-server-slo.d.ts +17 -0
  53. package/dist/v2/components/grafana/dashboards/web-server-slo.d.ts.map +1 -0
  54. package/dist/v2/components/grafana/dashboards/web-server-slo.js +98 -0
  55. package/dist/v2/components/grafana/index.d.ts +2 -0
  56. package/dist/v2/components/grafana/index.d.ts.map +1 -0
  57. package/dist/v2/components/grafana/index.js +4 -0
  58. package/dist/v2/components/prometheus/index.d.ts +2 -0
  59. package/dist/v2/components/prometheus/index.d.ts.map +1 -0
  60. package/dist/v2/components/prometheus/index.js +4 -0
  61. package/dist/v2/components/prometheus/queries.d.ts +10 -0
  62. package/dist/v2/components/prometheus/queries.d.ts.map +1 -0
  63. package/dist/v2/components/prometheus/queries.js +61 -0
  64. package/dist/v2/components/prometheus/queries.test.d.ts +2 -0
  65. package/dist/v2/components/prometheus/queries.test.d.ts.map +1 -0
  66. package/dist/v2/components/prometheus/queries.test.js +52 -0
  67. package/dist/v2/components/web-server/builder.d.ts +34 -0
  68. package/dist/v2/components/web-server/builder.d.ts.map +1 -0
  69. package/dist/v2/components/web-server/builder.js +72 -0
  70. package/dist/v2/components/web-server/index.d.ts +58 -0
  71. package/dist/v2/components/web-server/index.d.ts.map +1 -0
  72. package/dist/v2/components/web-server/index.js +169 -0
  73. package/dist/v2/components/web-server/load-balancer.d.ts +25 -0
  74. package/dist/v2/components/web-server/load-balancer.d.ts.map +1 -0
  75. package/dist/v2/components/web-server/load-balancer.js +106 -0
  76. package/dist/v2/index.d.ts +13 -0
  77. package/dist/v2/index.d.ts.map +1 -0
  78. package/dist/v2/index.js +16 -0
  79. package/dist/v2/otel/batch-processor.d.ts +14 -0
  80. package/dist/v2/otel/batch-processor.d.ts.map +1 -0
  81. package/dist/v2/otel/batch-processor.js +9 -0
  82. package/dist/v2/otel/builder.d.ts +27 -0
  83. package/dist/v2/otel/builder.d.ts.map +1 -0
  84. package/dist/v2/otel/builder.js +110 -0
  85. package/dist/v2/otel/config.d.ts +26 -0
  86. package/dist/v2/otel/config.d.ts.map +1 -0
  87. package/dist/v2/otel/config.js +159 -0
  88. package/dist/v2/otel/index.d.ts +94 -0
  89. package/dist/v2/otel/index.d.ts.map +1 -0
  90. package/dist/v2/otel/index.js +82 -0
  91. package/dist/v2/otel/memory-limiter-processor.d.ts +13 -0
  92. package/dist/v2/otel/memory-limiter-processor.d.ts.map +1 -0
  93. package/dist/v2/otel/memory-limiter-processor.js +8 -0
  94. package/dist/v2/otel/otlp-receiver.d.ts +19 -0
  95. package/dist/v2/otel/otlp-receiver.d.ts.map +1 -0
  96. package/dist/v2/otel/otlp-receiver.js +11 -0
  97. package/dist/v2/otel/prometheus-remote-write-exporter.d.ts +11 -0
  98. package/dist/v2/otel/prometheus-remote-write-exporter.d.ts.map +1 -0
  99. package/dist/v2/otel/prometheus-remote-write-exporter.js +2 -0
  100. package/package.json +30 -6
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebServerLoadBalancer = void 0;
4
+ const pulumi = require("@pulumi/pulumi");
5
+ const aws = require("@pulumi/aws");
6
+ const constants_1 = require("../../../constants");
7
+ const webServerLoadBalancerNetworkConfig = {
8
+ ingress: [{
9
+ protocol: 'tcp',
10
+ fromPort: 80,
11
+ toPort: 80,
12
+ cidrBlocks: ['0.0.0.0/0'],
13
+ }, {
14
+ protocol: 'tcp',
15
+ fromPort: 443,
16
+ toPort: 443,
17
+ cidrBlocks: ['0.0.0.0/0'],
18
+ }],
19
+ egress: [{
20
+ fromPort: 0,
21
+ toPort: 0,
22
+ protocol: '-1',
23
+ cidrBlocks: ['0.0.0.0/0'],
24
+ }]
25
+ };
26
+ const defaults = {
27
+ healthCheckPath: '/healthcheck',
28
+ };
29
+ class WebServerLoadBalancer extends pulumi.ComponentResource {
30
+ constructor(name, args, opts = {}) {
31
+ super('studion:WebServerLoadBalancer', name, args, opts);
32
+ this.name = name;
33
+ const vpc = pulumi.output(args.vpc);
34
+ const { port, certificate, healthCheckPath } = args;
35
+ this.securityGroup = this.createLbSecurityGroup(vpc.vpcId);
36
+ this.lb = new aws.lb.LoadBalancer(this.name, {
37
+ namePrefix: 'lb-',
38
+ loadBalancerType: 'application',
39
+ subnets: vpc.publicSubnetIds,
40
+ securityGroups: [this.securityGroup.id],
41
+ internal: false,
42
+ ipAddressType: 'ipv4',
43
+ tags: Object.assign(Object.assign({}, constants_1.commonTags), { Name: name }),
44
+ }, { parent: this });
45
+ this.targetGroup = this.createLbTargetGroup(port, vpc.vpcId, healthCheckPath);
46
+ this.httpListener = this.createLbHttpListener(this.lb, this.targetGroup, !!certificate);
47
+ this.tlsListener = certificate &&
48
+ this.createLbTlsListener(this.lb, this.targetGroup, certificate);
49
+ this.registerOutputs();
50
+ }
51
+ createLbTlsListener(lb, lbTargetGroup, certificate) {
52
+ return new aws.lb.Listener(`${this.name}-listener-443`, {
53
+ loadBalancerArn: lb.arn,
54
+ port: 443,
55
+ protocol: 'HTTPS',
56
+ sslPolicy: 'ELBSecurityPolicy-2016-08',
57
+ certificateArn: certificate.arn,
58
+ defaultActions: [{
59
+ type: 'forward',
60
+ targetGroupArn: lbTargetGroup.arn,
61
+ }],
62
+ tags: constants_1.commonTags,
63
+ }, { parent: this, dependsOn: [certificate] });
64
+ }
65
+ createLbHttpListener(lb, lbTargetGroup, redirectToHttps) {
66
+ const httpsRedirectAction = {
67
+ type: 'redirect',
68
+ redirect: {
69
+ port: '443',
70
+ protocol: 'HTTPS',
71
+ statusCode: 'HTTP_301',
72
+ },
73
+ };
74
+ const defaultAction = redirectToHttps ? httpsRedirectAction : {
75
+ type: 'forward',
76
+ targetGroupArn: lbTargetGroup.arn,
77
+ };
78
+ return new aws.lb.Listener(`${this.name}-listener-80`, {
79
+ loadBalancerArn: lb.arn,
80
+ port: 80,
81
+ defaultActions: [defaultAction],
82
+ tags: constants_1.commonTags,
83
+ }, { parent: this });
84
+ }
85
+ createLbTargetGroup(port, vpcId, healthCheckPath) {
86
+ return new aws.lb.TargetGroup(`${this.name}-tg`, {
87
+ namePrefix: 'lb-tg-',
88
+ port,
89
+ protocol: 'HTTP',
90
+ targetType: 'ip',
91
+ vpcId,
92
+ healthCheck: {
93
+ healthyThreshold: 3,
94
+ unhealthyThreshold: 2,
95
+ interval: 60,
96
+ timeout: 5,
97
+ path: healthCheckPath || defaults.healthCheckPath,
98
+ },
99
+ tags: Object.assign(Object.assign({}, constants_1.commonTags), { Name: `${this.name}-target-group` }),
100
+ }, { parent: this, dependsOn: [this.lb] });
101
+ }
102
+ createLbSecurityGroup(vpcId) {
103
+ return new aws.ec2.SecurityGroup(`${this.name}-security-group`, Object.assign(Object.assign({}, webServerLoadBalancerNetworkConfig), { vpcId, tags: constants_1.commonTags }), { parent: this });
104
+ }
105
+ }
106
+ exports.WebServerLoadBalancer = WebServerLoadBalancer;
@@ -0,0 +1,13 @@
1
+ export { EcsService } from './components/ecs-service';
2
+ export { WebServer } from './components/web-server';
3
+ export { WebServerBuilder } from './components/web-server/builder';
4
+ export { WebServerLoadBalancer } from './components/web-server/load-balancer';
5
+ import { OtelCollectorBuilder } from './otel/builder';
6
+ import { OtelCollector } from './otel';
7
+ export declare const openTelemetry: {
8
+ OtelCollector: typeof OtelCollector;
9
+ OtelCollectorBuilder: typeof OtelCollectorBuilder;
10
+ };
11
+ export * as grafana from './components/grafana';
12
+ export * as prometheus from './components/prometheus';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,eAAO,MAAM,aAAa;;;CAA0C,CAAC;AAErE,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.prometheus = exports.grafana = exports.openTelemetry = exports.WebServerLoadBalancer = exports.WebServerBuilder = exports.WebServer = exports.EcsService = void 0;
4
+ var ecs_service_1 = require("./components/ecs-service");
5
+ Object.defineProperty(exports, "EcsService", { enumerable: true, get: function () { return ecs_service_1.EcsService; } });
6
+ var web_server_1 = require("./components/web-server");
7
+ Object.defineProperty(exports, "WebServer", { enumerable: true, get: function () { return web_server_1.WebServer; } });
8
+ var builder_1 = require("./components/web-server/builder");
9
+ Object.defineProperty(exports, "WebServerBuilder", { enumerable: true, get: function () { return builder_1.WebServerBuilder; } });
10
+ var load_balancer_1 = require("./components/web-server/load-balancer");
11
+ Object.defineProperty(exports, "WebServerLoadBalancer", { enumerable: true, get: function () { return load_balancer_1.WebServerLoadBalancer; } });
12
+ const builder_2 = require("./otel/builder");
13
+ const otel_1 = require("./otel");
14
+ exports.openTelemetry = { OtelCollector: otel_1.OtelCollector, OtelCollectorBuilder: builder_2.OtelCollectorBuilder };
15
+ exports.grafana = require("./components/grafana");
16
+ exports.prometheus = require("./components/prometheus");
@@ -0,0 +1,14 @@
1
+ export declare namespace BatchProcessor {
2
+ type Config = {
3
+ send_batch_size: number;
4
+ send_batch_max_size: number;
5
+ timeout: string;
6
+ };
7
+ }
8
+ export declare const defaults: {
9
+ name: string;
10
+ size: number;
11
+ maxSize: number;
12
+ timeout: string;
13
+ };
14
+ //# sourceMappingURL=batch-processor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch-processor.d.ts","sourceRoot":"","sources":["../../../src/v2/otel/batch-processor.ts"],"names":[],"mappings":"AAAA,yBAAiB,cAAc,CAAC;IAC9B,KAAY,MAAM,GAAG;QACnB,eAAe,EAAE,MAAM,CAAC;QACxB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaults = void 0;
4
+ exports.defaults = {
5
+ name: 'batch',
6
+ size: 8192,
7
+ maxSize: 10000,
8
+ timeout: '5s'
9
+ };
@@ -0,0 +1,27 @@
1
+ import * as pulumi from '@pulumi/pulumi';
2
+ import * as aws from '@pulumi/aws';
3
+ import { OtelCollector } from '.';
4
+ import { OTLPReceiver } from './otlp-receiver';
5
+ export declare class OtelCollectorBuilder {
6
+ private readonly _serviceName;
7
+ private readonly _env;
8
+ private readonly _configBuilder;
9
+ private _taskRoleInlinePolicies;
10
+ constructor(serviceName: pulumi.Input<string>, env: pulumi.Input<string>);
11
+ withOTLPReceiver(protocols?: OTLPReceiver.Protocol[]): this;
12
+ withBatchProcessor(name?: string, size?: number, maxSize?: number, timeout?: string): this;
13
+ withMemoryLimiterProcessor(checkInterval?: string, limitPercentage?: number, spikeLimitPercentage?: number): this;
14
+ withAWSXRayExporter(region: string): this;
15
+ withHealthCheckExtension(endpoint?: string): this;
16
+ withPprofExtension(endpoint?: string): this;
17
+ withAPS(namespace: pulumi.Input<string>, workspace: aws.amp.Workspace, region: string): this;
18
+ withDebug(verbosity?: 'normal' | 'basic' | 'detailed'): this;
19
+ withTelemetry(logLevel?: 'debug' | 'warn' | 'error', metricsVerbosity?: 'basic' | 'normal' | 'detailed'): this;
20
+ withMetricsPipeline(receivers: OtelCollector.ReceiverType[], processors: OtelCollector.ProcessorType[], exporters: OtelCollector.ExporterType[]): this;
21
+ withTracesPipeline(receivers: OtelCollector.ReceiverType[], processors: OtelCollector.ProcessorType[], exporters: OtelCollector.ExporterType[]): this;
22
+ withDefault(prometheusNamespace: pulumi.Input<string>, prometheusWorkspace: aws.amp.Workspace, awsRegion: string): this;
23
+ build(): OtelCollector;
24
+ private createAPSInlinePolicy;
25
+ private createAWSXRayPolicy;
26
+ }
27
+ //# sourceMappingURL=builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../src/v2/otel/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC;AAGlC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAwB;IACrD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAwB;IAC7C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA6B;IAC5D,OAAO,CAAC,uBAAuB,CAAoD;gBAGjF,WA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,CAAC,EACzC,mBAAmB,EAAE,GAAG,CAAC,GAAG,CAAC,SAAS,EACtC,SAAS,EAAE,MAAM,GAChB,IAAI;IAYP,KAAK,IAAI,aAAa;IAStB,OAAO,CAAC,qBAAqB;IAmB7B,OAAO,CAAC,mBAAmB;CAsB5B"}
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OtelCollectorBuilder = void 0;
4
+ const pulumi = require("@pulumi/pulumi");
5
+ const batchProcessor = require("./batch-processor");
6
+ const memoryLimiterProcessor = require("./memory-limiter-processor");
7
+ const _1 = require(".");
8
+ const config_1 = require("./config");
9
+ class OtelCollectorBuilder {
10
+ constructor(serviceName, env) {
11
+ this._taskRoleInlinePolicies = [];
12
+ this._serviceName = pulumi.output(serviceName);
13
+ this._env = pulumi.output(env);
14
+ this._configBuilder = new config_1.OtelCollectorConfigBuilder();
15
+ }
16
+ withOTLPReceiver(protocols = ['http']) {
17
+ this._configBuilder.withOTLPReceiver(protocols);
18
+ return this;
19
+ }
20
+ withBatchProcessor(name = batchProcessor.defaults.name, size = batchProcessor.defaults.size, maxSize = batchProcessor.defaults.maxSize, timeout = batchProcessor.defaults.timeout) {
21
+ this._configBuilder.withBatchProcessor(name, size, maxSize, timeout);
22
+ return this;
23
+ }
24
+ withMemoryLimiterProcessor(checkInterval = memoryLimiterProcessor.defaults.checkInterval, limitPercentage = memoryLimiterProcessor.defaults.limitPercentage, spikeLimitPercentage = memoryLimiterProcessor.defaults.spikeLimitPercentage) {
25
+ this._configBuilder.withMemoryLimiterProcessor(checkInterval, limitPercentage, spikeLimitPercentage);
26
+ return this;
27
+ }
28
+ withAWSXRayExporter(region) {
29
+ this._configBuilder.withAWSXRayExporter(region);
30
+ this.createAWSXRayPolicy();
31
+ return this;
32
+ }
33
+ withHealthCheckExtension(endpoint = '0.0.0.0:13133') {
34
+ this._configBuilder.withHealthCheckExtension(endpoint);
35
+ return this;
36
+ }
37
+ withPprofExtension(endpoint = '0.0.0.0:1777') {
38
+ this._configBuilder.withPprofExtension(endpoint);
39
+ return this;
40
+ }
41
+ withAPS(namespace, workspace, region) {
42
+ this._configBuilder.withAPS(pulumi.output(namespace), pulumi.interpolate `${workspace.prometheusEndpoint}api/v1/remote_write`, region);
43
+ this.createAPSInlinePolicy(workspace);
44
+ return this;
45
+ }
46
+ withDebug(verbosity = 'detailed') {
47
+ this._configBuilder.withDebug(verbosity);
48
+ return this;
49
+ }
50
+ withTelemetry(logLevel = 'error', metricsVerbosity = 'basic') {
51
+ this._configBuilder.withTelemetry(logLevel, metricsVerbosity);
52
+ return this;
53
+ }
54
+ withMetricsPipeline(receivers, processors, exporters) {
55
+ this._configBuilder.withMetricsPipeline(receivers, processors, exporters);
56
+ return this;
57
+ }
58
+ withTracesPipeline(receivers, processors, exporters) {
59
+ this._configBuilder.withTracesPipeline(receivers, processors, exporters);
60
+ return this;
61
+ }
62
+ withDefault(prometheusNamespace, prometheusWorkspace, awsRegion) {
63
+ this._configBuilder.withDefault(pulumi.output(prometheusNamespace), pulumi.interpolate `${prometheusWorkspace.prometheusEndpoint}api/v1/remote_write`, awsRegion);
64
+ this.createAPSInlinePolicy(prometheusWorkspace);
65
+ this.createAWSXRayPolicy();
66
+ return this;
67
+ }
68
+ build() {
69
+ return new _1.OtelCollector(this._serviceName, this._env, this._configBuilder.build(), { taskRoleInlinePolicies: this._taskRoleInlinePolicies });
70
+ }
71
+ createAPSInlinePolicy(workspace) {
72
+ const policy = pulumi.all(([
73
+ this._serviceName,
74
+ workspace.arn
75
+ ])).apply(([serviceName, workspaceArn]) => ({
76
+ name: `${serviceName}-task-role-aps-write`,
77
+ policy: JSON.stringify({
78
+ Version: '2012-10-17',
79
+ Statement: [{
80
+ Effect: 'Allow',
81
+ Action: ['aps:RemoteWrite'],
82
+ Resource: workspaceArn,
83
+ }],
84
+ }),
85
+ }));
86
+ this._taskRoleInlinePolicies.push(policy);
87
+ }
88
+ createAWSXRayPolicy() {
89
+ const policy = this._serviceName
90
+ .apply(serviceName => ({
91
+ name: `${serviceName}-task-role-xray`,
92
+ policy: JSON.stringify({
93
+ Version: '2012-10-17',
94
+ Statement: [{
95
+ Effect: 'Allow',
96
+ Action: [
97
+ 'xray:PutTraceSegments',
98
+ 'xray:PutTelemetryRecords',
99
+ 'xray:GetSamplingRules',
100
+ 'xray:GetSamplingTargets',
101
+ 'xray:GetSamplingStatisticSummaries',
102
+ ],
103
+ Resource: '*',
104
+ }],
105
+ }),
106
+ }));
107
+ this._taskRoleInlinePolicies.push(policy);
108
+ }
109
+ }
110
+ exports.OtelCollectorBuilder = OtelCollectorBuilder;
@@ -0,0 +1,26 @@
1
+ import * as pulumi from '@pulumi/pulumi';
2
+ import { OTLPReceiver } from './otlp-receiver';
3
+ import type { OtelCollector } from '.';
4
+ export declare class OtelCollectorConfigBuilder {
5
+ private readonly _receivers;
6
+ private readonly _processors;
7
+ private readonly _exporters;
8
+ private readonly _extensions;
9
+ private readonly _service;
10
+ withOTLPReceiver(protocols?: OTLPReceiver.Protocol[]): this;
11
+ withBatchProcessor(name?: string, size?: number, maxSize?: number, timeout?: string): this;
12
+ withMemoryLimiterProcessor(checkInterval?: string, limitPercentage?: number, spikeLimitPercentage?: number): this;
13
+ withAWSXRayExporter(region: string): this;
14
+ withHealthCheckExtension(endpoint?: string): this;
15
+ withPprofExtension(endpoint?: string): this;
16
+ withAPS(namespace: pulumi.Input<string>, endpoint: pulumi.Input<string>, region: string): this;
17
+ withDebug(verbosity?: 'normal' | 'basic' | 'detailed'): this;
18
+ withTelemetry(logLevel?: 'debug' | 'warn' | 'error', metricsVerbosity?: 'basic' | 'normal' | 'detailed'): this;
19
+ withMetricsPipeline(receivers: OtelCollector.ReceiverType[], processors: OtelCollector.ProcessorType[], exporters: OtelCollector.ExporterType[]): this;
20
+ withTracesPipeline(receivers: OtelCollector.ReceiverType[], processors: OtelCollector.ProcessorType[], exporters: OtelCollector.ExporterType[]): this;
21
+ withDefault(prometheusNamespace: pulumi.Input<string>, prometheusWriteEndpoint: pulumi.Input<string>, awsRegion: string): this;
22
+ build(): OtelCollector.Config;
23
+ private validatePipelineProcessorOrder;
24
+ private validatePipelineComponents;
25
+ }
26
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/v2/otel/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAY,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC;AAEvC,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA8B;IACzD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA+B;IAC3D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA8B;IACzD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA+B;IAC3D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAEvB;IAEF,gBAAgB,CACd,SAAS,GAAE,YAAY,CAAC,QAAQ,EAAa,GAC5C,IAAI;IAmBP,kBAAkB,CAChB,IAAI,SAAU,EACd,IAAI,SAAO,EACX,OAAO,SAAQ,EACf,OAAO,SAAO,GACb,IAAI;IAUP,0BAA0B,CACxB,aAAa,SAAO,EACpB,eAAe,SAAK,EACpB,oBAAoB,SAAK,GACxB,IAAI;IAUP,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAMzC,wBAAwB,CAAC,QAAQ,SAAkB,GAAG,IAAI;IAM1D,kBAAkB,CAAC,QAAQ,SAAiB,GAAG,IAAI;IAMnD,OAAO,CACL,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAC/B,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAC9B,MAAM,EAAE,MAAM,GACb,IAAI;IAiBP,SAAS,CAAC,SAAS,GAAE,QAAQ,GAAG,OAAO,GAAG,UAAuB,GAAG,IAAI;IAMxE,aAAa,CACX,QAAQ,GAAE,OAAO,GAAG,MAAM,GAAG,OAAiB,EAC9C,gBAAgB,GAAE,OAAO,GAAG,QAAQ,GAAG,UAAoB,GAC1D,IAAI;IASP,mBAAmB,CACjB,SAAS,EAAE,aAAa,CAAC,YAAY,EAAE,EACvC,UAAU,EAAE,aAAa,CAAC,aAAa,EAAE,EACzC,SAAS,EAAE,aAAa,CAAC,YAAY,EAAE,GACtC,IAAI;IAUP,kBAAkB,CAChB,SAAS,EAAE,aAAa,CAAC,YAAY,EAAE,EACvC,UAAU,EAAE,aAAa,CAAC,aAAa,EAAE,EACzC,SAAS,EAAE,aAAa,CAAC,YAAY,EAAE,GACtC,IAAI;IAUP,WAAW,CACT,mBAAmB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EACzC,uBAAuB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAC7C,SAAS,EAAE,MAAM,GAChB,IAAI;IAqBP,KAAK,IAAI,aAAa,CAAC,MAAM;IAwB7B,OAAO,CAAC,8BAA8B;IAYtC,OAAO,CAAC,0BAA0B;CAmBnC"}
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OtelCollectorConfigBuilder = void 0;
4
+ const otlp_receiver_1 = require("./otlp-receiver");
5
+ class OtelCollectorConfigBuilder {
6
+ constructor() {
7
+ this._receivers = {};
8
+ this._processors = {};
9
+ this._exporters = {};
10
+ this._extensions = {};
11
+ this._service = {
12
+ pipelines: {}
13
+ };
14
+ }
15
+ withOTLPReceiver(protocols = ['http']) {
16
+ if (!protocols.length) {
17
+ throw new Error('At least one OTLP receiver protocol should be provided');
18
+ }
19
+ const protocolsConfig = protocols.reduce((all, current) => {
20
+ const protocolConfig = otlp_receiver_1.Protocol[current];
21
+ if (!protocolConfig) {
22
+ throw new Error(`OTLP receiver protocol ${current} is not supported`);
23
+ }
24
+ return Object.assign(Object.assign({}, all), { [current]: protocolConfig });
25
+ }, {});
26
+ this._receivers.otlp = { protocols: protocolsConfig };
27
+ return this;
28
+ }
29
+ withBatchProcessor(name = 'batch', size = 8192, maxSize = 10000, timeout = '5s') {
30
+ this._processors[name] = {
31
+ 'send_batch_size': size,
32
+ 'send_batch_max_size': maxSize,
33
+ timeout
34
+ };
35
+ return this;
36
+ }
37
+ withMemoryLimiterProcessor(checkInterval = '1s', limitPercentage = 80, spikeLimitPercentage = 15) {
38
+ this._processors.memory_limiter = {
39
+ check_interval: checkInterval,
40
+ limit_percentage: limitPercentage,
41
+ spike_limit_percentage: spikeLimitPercentage
42
+ };
43
+ return this;
44
+ }
45
+ withAWSXRayExporter(region) {
46
+ this._exporters.awsxray = { region };
47
+ return this;
48
+ }
49
+ withHealthCheckExtension(endpoint = '0.0.0.0:13133') {
50
+ this._extensions.health_check = { endpoint };
51
+ return this;
52
+ }
53
+ withPprofExtension(endpoint = '0.0.0.0:1777') {
54
+ this._extensions.pprof = { endpoint };
55
+ return this;
56
+ }
57
+ withAPS(namespace, endpoint, region) {
58
+ this._exporters.prometheusremotewrite = {
59
+ endpoint,
60
+ namespace,
61
+ auth: {
62
+ authenticator: 'sigv4auth'
63
+ }
64
+ };
65
+ this._extensions.sigv4auth = {
66
+ region,
67
+ service: 'aps'
68
+ };
69
+ return this;
70
+ }
71
+ withDebug(verbosity = 'detailed') {
72
+ this._exporters.debug = { verbosity };
73
+ return this;
74
+ }
75
+ withTelemetry(logLevel = 'error', metricsVerbosity = 'basic') {
76
+ this._service.telemetry = {
77
+ logs: { level: logLevel },
78
+ metrics: { level: metricsVerbosity }
79
+ };
80
+ return this;
81
+ }
82
+ withMetricsPipeline(receivers, processors, exporters) {
83
+ this._service.pipelines.metrics = {
84
+ receivers,
85
+ processors,
86
+ exporters
87
+ };
88
+ return this;
89
+ }
90
+ withTracesPipeline(receivers, processors, exporters) {
91
+ this._service.pipelines.traces = {
92
+ receivers,
93
+ processors,
94
+ exporters
95
+ };
96
+ return this;
97
+ }
98
+ withDefault(prometheusNamespace, prometheusWriteEndpoint, awsRegion) {
99
+ return this.withOTLPReceiver(['http'])
100
+ .withMemoryLimiterProcessor()
101
+ .withBatchProcessor('batch/metrics')
102
+ .withBatchProcessor('batch/traces', 2000, 5000, '2s')
103
+ .withAPS(prometheusNamespace, prometheusWriteEndpoint, awsRegion)
104
+ .withAWSXRayExporter(awsRegion)
105
+ .withHealthCheckExtension()
106
+ .withMetricsPipeline(['otlp'], ['memory_limiter', 'batch/metrics'], ['prometheusremotewrite'])
107
+ .withTracesPipeline(['otlp'], ['memory_limiter', 'batch/traces'], ['awsxray'])
108
+ .withTelemetry();
109
+ }
110
+ build() {
111
+ this.validatePipelineComponents('metrics');
112
+ this.validatePipelineComponents('traces');
113
+ this.validatePipelineProcessorOrder('metrics');
114
+ this.validatePipelineProcessorOrder('traces');
115
+ // FIX: Fix type inference
116
+ const extensions = Object.keys(this._extensions);
117
+ if (extensions.length) {
118
+ this._service.extensions = extensions;
119
+ }
120
+ // TODO: Add schema validation (non-empty receivers, non-empty receiver protocols)
121
+ return {
122
+ receivers: this._receivers,
123
+ processors: this._processors,
124
+ exporters: this._exporters,
125
+ extensions: this._extensions,
126
+ service: this._service
127
+ };
128
+ }
129
+ validatePipelineProcessorOrder(pipelineType) {
130
+ const pipeline = this._service.pipelines[pipelineType];
131
+ if (!pipeline)
132
+ return;
133
+ const { processors } = pipeline;
134
+ const memoryLimiterIndex = processors
135
+ .findIndex(processor => processor === 'memory_limiter');
136
+ if (memoryLimiterIndex > 0) {
137
+ throw new Error(`memory_limiter processor is not the first processor in the ${pipelineType} pipeline.`);
138
+ }
139
+ }
140
+ validatePipelineComponents(pipelineType) {
141
+ var _a, _b, _c;
142
+ (_a = this._service.pipelines[pipelineType]) === null || _a === void 0 ? void 0 : _a.receivers.forEach(receiver => {
143
+ if (!this._receivers[receiver]) {
144
+ throw new Error(`Receiver '${receiver}' is used in ${pipelineType} pipeline but not defined`);
145
+ }
146
+ });
147
+ (_b = this._service.pipelines[pipelineType]) === null || _b === void 0 ? void 0 : _b.processors.forEach(processor => {
148
+ if (!this._processors[processor]) {
149
+ throw new Error(`Processor '${processor}' is used in ${pipelineType} pipeline but not defined`);
150
+ }
151
+ });
152
+ (_c = this._service.pipelines[pipelineType]) === null || _c === void 0 ? void 0 : _c.exporters.forEach(exporter => {
153
+ if (!this._exporters[exporter]) {
154
+ throw new Error(`Exporter '${exporter}' is used in ${pipelineType} pipeline but not defined`);
155
+ }
156
+ });
157
+ }
158
+ }
159
+ exports.OtelCollectorConfigBuilder = OtelCollectorConfigBuilder;
@@ -0,0 +1,94 @@
1
+ import * as pulumi from '@pulumi/pulumi';
2
+ import { EcsService } from '../components/ecs-service';
3
+ import { OTLPReceiver } from './otlp-receiver';
4
+ import { BatchProcessor } from './batch-processor';
5
+ import { MemoryLimiterProcessor } from './memory-limiter-processor';
6
+ import { PrometheusRemoteWriteExporter } from './prometheus-remote-write-exporter';
7
+ export declare namespace OtelCollector {
8
+ type Receiver = {
9
+ otlp?: OTLPReceiver.Config;
10
+ };
11
+ type ReceiverType = keyof Receiver;
12
+ type Processor = {
13
+ batch?: BatchProcessor.Config;
14
+ memory_limiter?: MemoryLimiterProcessor.Config;
15
+ } & {
16
+ [name: string]: BatchProcessor.Config;
17
+ };
18
+ type ProcessorType = keyof Processor;
19
+ type AwsXRayExporterConfig = {
20
+ region: string;
21
+ endpoint?: string;
22
+ };
23
+ type DebugExportedConfig = {
24
+ verbosity: string;
25
+ };
26
+ type Exporter = {
27
+ prometheusremotewrite?: PrometheusRemoteWriteExporter.Config;
28
+ awsxray?: AwsXRayExporterConfig;
29
+ debug?: DebugExportedConfig;
30
+ };
31
+ type ExporterType = keyof Exporter;
32
+ type SigV4AuthExtensionConfig = {
33
+ region: string;
34
+ service: string;
35
+ };
36
+ type HealthCheckExtensionConfig = {
37
+ endpoint: string;
38
+ };
39
+ type PprofExtensionConfig = {
40
+ endpoint: string;
41
+ };
42
+ type Extension = {
43
+ sigv4auth?: SigV4AuthExtensionConfig;
44
+ health_check?: HealthCheckExtensionConfig;
45
+ pprof?: PprofExtensionConfig;
46
+ };
47
+ type ExtensionType = keyof Extension;
48
+ type PipelineConfig = {
49
+ receivers: ReceiverType[];
50
+ processors: ProcessorType[];
51
+ exporters: ExporterType[];
52
+ };
53
+ type TelemetryConfig = {
54
+ logs?: {
55
+ level: string;
56
+ };
57
+ metrics?: {
58
+ level: string;
59
+ };
60
+ };
61
+ type Service = {
62
+ pipelines: {
63
+ metrics?: PipelineConfig;
64
+ traces?: PipelineConfig;
65
+ };
66
+ extensions?: ExtensionType[];
67
+ telemetry?: TelemetryConfig;
68
+ };
69
+ type Config = {
70
+ receivers: Receiver;
71
+ processors: Processor;
72
+ exporters: Exporter;
73
+ extensions: Extension;
74
+ service: Service;
75
+ };
76
+ type Opts = {
77
+ containerName?: pulumi.Input<string>;
78
+ configVolumeName?: pulumi.Input<string>;
79
+ taskRoleInlinePolicies?: pulumi.Input<pulumi.Input<EcsService.RoleInlinePolicy>[]>;
80
+ };
81
+ }
82
+ export declare class OtelCollector {
83
+ config: pulumi.Output<OtelCollector.Config>;
84
+ configVolume: pulumi.Output<string>;
85
+ container: pulumi.Output<EcsService.Container>;
86
+ configContainer: EcsService.Container;
87
+ taskRoleInlinePolicies: OtelCollector.Opts['taskRoleInlinePolicies'];
88
+ constructor(serviceName: pulumi.Input<string>, env: pulumi.Input<string>, config: pulumi.Input<OtelCollector.Config>, opts?: OtelCollector.Opts);
89
+ private createContainer;
90
+ private getCollectorEnvironment;
91
+ private getCollectorPortMappings;
92
+ private createConfigContainer;
93
+ }
94
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/otel/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC,OAAO,EAAE,UAAU,EAAE,MAAM,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