Skip to content

Commit

Permalink
chore(staging): update staging task definitions, and expose pprof ser…
Browse files Browse the repository at this point in the history
…ver (#2305)

* update staging task definitions, update dd agent confd included metrics

* update mem sizes
  • Loading branch information
timwu20 authored Feb 18, 2022
1 parent 0eacba3 commit d20b8c3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/staging/kusama-taskdef.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
{
"containerPort": 8540,
"protocol": "tcp"
},
{
"containerPort": 6060,
"protocol": "tcp"
}
],
"environment": [],
Expand All @@ -35,7 +39,7 @@
"expression": "attribute:ecs.availability-zone==us-east-2a"
}
],
"memory": "16041",
"memory": "12288",
"family": "gossamer-kusama",
"networkMode": "host",
"requiresCompatibilities": [
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/staging/openmetrics.d/kusama-conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ instances:
#
metrics:
- gossamer_*
- network_*
- service_*
- system_*
- go_*

## @param prometheus_metrics_prefix - string - optional
## Removes a given <PREFIX> from exposed Prometheus metrics.
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/staging/openmetrics.d/polkadot-conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ instances:
#
metrics:
- gossamer_*
- network_*
- service_*
- system_*
- go_*

## @param prometheus_metrics_prefix - string - optional
## Removes a given <PREFIX> from exposed Prometheus metrics.
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/staging/polkadot-taskdef.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
{
"containerPort": 8540,
"protocol": "tcp"
},
{
"containerPort": 6060,
"protocol": "tcp"
}
],
"environment": [],
Expand All @@ -35,7 +39,7 @@
"expression": "attribute:ecs.availability-zone==us-east-2a"
}
],
"memory": "16041",
"memory": "12288",
"family": "gossamer-polkadot",
"networkMode": "host",
"requiresCompatibilities": [
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.staging
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ RUN go get ./...
RUN go build github.com/ChainSafe/gossamer/cmd/gossamer

RUN ["sh", "-c", "gossamer init --chain=${chain}"]
ENTRYPOINT ["sh", "-c", "service datadog-agent restart && gossamer --chain=${chain} --basepath=${basepath}/${chain} --publish-metrics"]
EXPOSE 7001 8546 8540 9876
ENTRYPOINT ["sh", "-c", "service datadog-agent restart && gossamer --chain=${chain} --basepath=${basepath}/${chain} --publish-metrics --pprofserver --pprofaddress=\":6060\""]
EXPOSE 7001 8546 8540 9876 6060
4 changes: 1 addition & 3 deletions devnet/cmd/update-dd-agent-confd/confd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ instances:
#
metrics:
- gossamer_*
- network_*
- service_*
- system_*
- go_*

## @param prometheus_metrics_prefix - string - optional
## Removes a given <PREFIX> from exposed Prometheus metrics.
Expand Down

0 comments on commit d20b8c3

Please sign in to comment.