Skip to content

Commit

Permalink
Merge pull request #3 from petlitskiy/release/v0.1.5
Browse files Browse the repository at this point in the history
Release/v0.1.5
  • Loading branch information
aaronwalker authored Oct 15, 2024
2 parents a59bc66 + 127b44d commit 35b2548
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion amp-ecs.cfhighlander.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
ComponentParam 'GrafanaAccountId', ''
end

Component template: 'fargate-v2@0.7.1', name: 'exporter', render: Inline do
Component template: 'fargate-v2@0.8.6', name: 'exporter', render: Inline do
parameter name: 'VPCId', value: Ref(:VPCId)
parameter name: 'SubnetIds', value: FnSplit(',', Ref(:SubnetIds))
parameter name: 'EcsCluster', value: Ref(:EcsCluster)
Expand Down
2 changes: 1 addition & 1 deletion amp-ecs.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
ecs_aot_config['extensions']['ecs_observer'].merge!(aot_ecs_observer)

SSM_Parameter(:AotConfig) do
Name FnSub('/${EnvironmentName}/amq-ecs/AOT_CONFIG_CONTENT')
Name FnSub('/${EnvironmentName}/amp-ecs/AOT_CONFIG_CONTENT')
Type 'String'
Value FnSub("#{YAML.dump(ecs_aot_config)}")
Description 'AWS OpenTelemetry ECS Exporter Config'
Expand Down
24 changes: 12 additions & 12 deletions amp-ecs.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ aot_ecs_observer:
- port_label: ECS_PROMETHEUS_EXPORTER_PORT_V2
metrics_path_label: ECS_PROMETHEUS_EXPORTER_METRICS_PATH


default_aot_config_content:
extensions:
sigv4auth:
service: "aps"
region: "${AWS::Region}"
ecs_observer:
refresh_interval: 60s # format is https://golang.org/pkg/time/#ParseDuration
cluster_name: '${EnvironmentName}-services' # cluster name need manual config
Expand Down Expand Up @@ -56,22 +58,20 @@ default_aot_config_content:
batch: {}

exporters:
awsprometheusremotewrite:
prometheusremotewrite:
endpoint: ${APSWorkspace.PrometheusEndpoint}api/v1/remote_write
aws_auth:
region: ${AWS::Region}
service: "aps"
auth:
authenticator: sigv4auth
logging:
loglevel: debug
loglevel: info


service:
extensions: [ ecs_observer ]
extensions: [ ecs_observer, sigv4auth ]
pipelines:
metrics:
receivers: [prometheus]
receivers: [ prometheus ]
processors: [ batch ]
exporters: [awsprometheusremotewrite]
exporters: [ prometheusremotewrite ]

components:
exporter:
Expand All @@ -85,15 +85,15 @@ components:
otelexport:
repo: ghcr.io
image: base2services/aws-ecs-otel-collector
tag: v0.15.1
tag: v0.41.0
env_vars:
ENVIRONMENT_NAME:
Fn::Sub: ${EnvironmentName}
AWS_REGION:
Fn::Sub: ${AWS::Region}
secrets:
ssm:
AOT_CONFIG_CONTENT: /${EnvironmentName}/amq-ecs/AOT_CONFIG_CONTENT
AOT_CONFIG_CONTENT: /${EnvironmentName}/amp-ecs/AOT_CONFIG_CONTENT
iam_policies:
ecsscan:
action:
Expand Down

0 comments on commit 35b2548

Please sign in to comment.