Skip to content

Commit 2b465be

Browse files
authored
Merge pull request #157 from microservices-suite/repo-engineering/deletion_automation
Repo engineering/deletion automation
2 parents cd58bbe + 548b98e commit 2b465be

32 files changed

+8099
-3
lines changed

.suite-cli/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microservices-suite/cli",
3-
"version": "3.1.1",
3+
"version": "3.1.2",
44
"description": "This is the CLI tool for running the microservices-suite monorepo. It contains functionalities and tools required for automation and managing the repo across supported platforms. Works on Windows,MacOS and Linux as well as support to some extend other variants like SunOS, IBM AIX, FreeBSD, OpenBSD and more",
55
"main": "cli.js",
66
"repository": "https://github.com/microservices-suite/node-microservices-suite.git",

.suite-cli/cli/scripts/assets/dockerComposeContent.asset.js

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,53 @@ ${serviceNames.map(service => ` - ${service}`).join('\n')}
6262
- '8090:8090'
6363
volumes:
6464
- ./krakend/:/etc/krakend/
65-
command: ['run','-d','-c','/etc/krakend/krakend.json']`;
65+
command: ['run','-d','-c','/etc/krakend/krakend.json']
66+
grafana:
67+
image: grafana/grafana:9.1.2
68+
ports:
69+
- "3000:3000"
70+
volumes:
71+
- "./sre/grafana/datasources/all.yml:/etc/grafana/provisioning/datasources/all.yml"
72+
- "./sre/grafana/dashboards/all.yml:/etc/grafana/provisioning/dashboards/all.yml"
73+
- "./sre/grafana/krakend:/var/lib/grafana/dashboards/krakend"
74+
influxdb:
75+
image: influxdb:1.8.10
76+
environment:
77+
- "INFLUXDB_DB=krakend"
78+
- "INFLUXDB_USER=krakend-dev"
79+
- "INFLUXDB_USER_PASSWORD=pas5w0rd"
80+
- "INFLUXDB_ADMIN_USER=admin"
81+
- "INFLUXDB_ADMIN_PASSWORD=supersecretpassword"
82+
ports:
83+
- "8086:8086"
84+
jaeger:
85+
image: jaegertracing/all-in-one:1
86+
ports:
87+
- "16686:16686"
88+
- "14268:14268"
89+
elasticsearch:
90+
image: elasticsearch:8.4.1
91+
environment:
92+
- "discovery.type=single-node"
93+
- "xpack.security.enabled=false"
94+
- "xpack.security.transport.ssl.enabled=false"
95+
- "xpack.security.http.ssl.enabled=false"
96+
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
97+
ports:
98+
- "19200:9200"
99+
- "9300:9300"
100+
kibana:
101+
image: kibana:8.4.1
102+
ports:
103+
- "5601:5601"
104+
logstash:
105+
image: logstash:8.4.1
106+
ports:
107+
- "12201:12201/udp"
108+
- "5044:5044"
109+
environment:
110+
- "xpack.monitoring.elasticsearch.url=http://elasticsearch:9200"
111+
volumes:
112+
- ./sre/logstash/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
113+
command: ["-f", "/usr/share/logstash/pipeline/logstash.conf"]`;
66114
};

.suite-cli/cli/scripts/assets/elasticDashboardJsonContent.asset.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = () =>`
2+
apiVersion: 1
3+
4+
providers:
5+
- name: 'default'
6+
orgId: 1
7+
folder: ''
8+
type: file
9+
disableDeletion: false
10+
updateIntervalSeconds: 60
11+
options:
12+
path: /var/lib/grafana/dashboards/krakend`
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = () =>`
2+
apiVersion: 1
3+
4+
datasources:
5+
- access: 'proxy'
6+
editable: true
7+
is_default: true
8+
name: 'influx'
9+
org_id: 1
10+
type: 'influxdb'
11+
url: 'http://influxdb:8086'
12+
version: 1
13+
user: krakend-dev
14+
password: pas5w0rd
15+
database: krakend
16+
`

0 commit comments

Comments
 (0)