Add deploy config to add metrics in tx-traker (#559)

This commit is contained in:
walker-16 2023-07-19 10:11:05 -03:00 committed by GitHub
parent abb5baf24e
commit 80771dc35f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,7 @@ RESOURCES_REQUESTS_CPU=250m
SQS_URL=
SQS_AWS_REGION=
AWS_IAM_ROLE=
METRICS_ENABLED=true
ACALA_BASE_URL=https://eth-rpc-acala.aca-api.network
ACALA_REQUESTS_PER_MINUTE=12

View File

@ -10,6 +10,7 @@ RESOURCES_REQUESTS_CPU=40m
SQS_URL=
SQS_AWS_REGION=
AWS_IAM_ROLE=
METRICS_ENABLED=true
ACALA_BASE_URL=https://eth-rpc-acala.aca-api.network
ACALA_REQUESTS_PER_MINUTE=12

View File

@ -10,6 +10,7 @@ RESOURCES_REQUESTS_CPU=10m
SQS_URL=
SQS_AWS_REGION=
AWS_IAM_ROLE=
METRICS_ENABLED=true
ACALA_BASE_URL=https://acala-dev.aca-dev.network/eth/http
ACALA_REQUESTS_PER_MINUTE=12

View File

@ -12,6 +12,9 @@ spec:
metadata:
labels:
app: {{ .NAME }}
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8000"
spec:
restartPolicy: Always
terminationGracePeriodSeconds: 40
@ -57,6 +60,8 @@ spec:
value: {{ .SQS_URL }}
- name: AWS_REGION
value: {{ .SQS_AWS_REGION }}
- name: METRICS_ENABLED
value: "{{ .METRICS_ENABLED }}"
- name: ACALA_BASE_URL
value: {{ .ACALA_BASE_URL }}
- name: ACALA_REQUESTS_PER_MINUTE