Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .suite-cli/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microservices-suite/cli",
"version": "3.1.1",
"version": "3.1.2",
"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",
"main": "cli.js",
"repository": "https://github.com/microservices-suite/node-microservices-suite.git",
Expand Down
50 changes: 49 additions & 1 deletion .suite-cli/cli/scripts/assets/dockerComposeContent.asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,53 @@ ${serviceNames.map(service => ` - ${service}`).join('\n')}
- '8090:8090'
volumes:
- ./krakend/:/etc/krakend/
command: ['run','-d','-c','/etc/krakend/krakend.json']`;
command: ['run','-d','-c','/etc/krakend/krakend.json']
grafana:
image: grafana/grafana:9.1.2
ports:
- "3000:3000"
volumes:
- "./sre/grafana/datasources/all.yml:/etc/grafana/provisioning/datasources/all.yml"
- "./sre/grafana/dashboards/all.yml:/etc/grafana/provisioning/dashboards/all.yml"
- "./sre/grafana/krakend:/var/lib/grafana/dashboards/krakend"
influxdb:
image: influxdb:1.8.10
environment:
- "INFLUXDB_DB=krakend"
- "INFLUXDB_USER=krakend-dev"
- "INFLUXDB_USER_PASSWORD=pas5w0rd"
- "INFLUXDB_ADMIN_USER=admin"
- "INFLUXDB_ADMIN_PASSWORD=supersecretpassword"
ports:
- "8086:8086"
jaeger:
image: jaegertracing/all-in-one:1
ports:
- "16686:16686"
- "14268:14268"
elasticsearch:
image: elasticsearch:8.4.1
environment:
- "discovery.type=single-node"
- "xpack.security.enabled=false"
- "xpack.security.transport.ssl.enabled=false"
- "xpack.security.http.ssl.enabled=false"
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
ports:
- "19200:9200"
- "9300:9300"
kibana:
image: kibana:8.4.1
ports:
- "5601:5601"
logstash:
image: logstash:8.4.1
ports:
- "12201:12201/udp"
- "5044:5044"
environment:
- "xpack.monitoring.elasticsearch.url=http://elasticsearch:9200"
volumes:
- ./sre/logstash/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
command: ["-f", "/usr/share/logstash/pipeline/logstash.conf"]`;
};

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions .suite-cli/cli/scripts/assets/grafanaDashboardYamlContent.asset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = () =>`
apiVersion: 1

providers:
- name: 'default'
orgId: 1
folder: ''
type: file
disableDeletion: false
updateIntervalSeconds: 60
options:
path: /var/lib/grafana/dashboards/krakend`
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = () =>`
apiVersion: 1

datasources:
- access: 'proxy'
editable: true
is_default: true
name: 'influx'
org_id: 1
type: 'influxdb'
url: 'http://influxdb:8086'
version: 1
user: krakend-dev
password: pas5w0rd
database: krakend
`
Loading