Jyyjy commented on code in PR #42: URL: https://github.com/apache/flagon/pull/42#discussion_r1428455155
########## docker/kibana/8.11.1/Saved Objects/Apache Flagon Business Analytics Dashboard.json: ########## @@ -0,0 +1,18 @@ +[ Review Comment: The saved object format was changed, and this are no longer compatible with 8.11. The files in this directory should be .ndjson instead of .json ########## docker/docker-compose-8.11.1.yml: ########## @@ -0,0 +1,157 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Apache Flagon Single-Node Build + +version: "3" +services: + + # Startup + startup: + build: ./startup + depends_on: + - "elasticsearch" + command: bash /opt/entrypoint.sh + + # Site + site: + build: ./site + ports: + - 8080:8080 + depends_on: + - "logstash" + command: python -m SimpleHTTPServer 8080 + + # Elasticsearch + elasticsearch: + build: ./elasticsearch/8.11.1 + environment: + - INITIAL_MASTER_NODES=elasticsearch + - "DISCOVERY_SERVICE=0.0.0.0" + - NETWORK_HOST=0.0.0.0 + - HTTP_CORS_ENABLE=true + - HTTP_CORS_ALLOW_ORIGIN=* + - "ES_JAVA_OPTS=-Xms512m -Xmx512m" + ulimits: + memlock: + soft: -1 + hard: -1 + healthcheck: + test: ["CMD", "curl","-s" ,"-f", "-u", "http://localhost:9200/_cluster/health"] + # Mount volumes to backup elasticsearch data +# volumes: +# - esdata:/usr/share/elasticsaerch/data + ports: + - "9200:9200" + networks: + - esnet + + # Kibana + kibana: + build: ./kibana/8.11.1 + environment: + - "ES_JAVA_OPTS=-Xms512m -Xmx512m" + - "ELASTICSEARCH_URL=http://elasticsearch:9200" + ports: + - "5601:5601" + depends_on: + - "elasticsearch" + networks: + - esnet + + # Logstash + logstash: + build: ./logstash/8.11.1 + environment: + - "ELASTICSEARCH_URL=elasticsearch:9200" + ports: + - 8100:8100 + volumes: + - ./logstash/8.11.1/pipeline/logstash-userale.conf:/usr/share/logstash/pipeline/logstash-userale.conf + - ./logstash/8.11.1/templates/userale.json:/usr/share/logstash/templates/userale.json + depends_on: + - "elasticsearch" + networks: + - esnet + + # Distill + distill: + build: ./distill + ports: + - 8090:8090 + depends_on: + - "elasticsearch" + networks: + - esnet + + # TAP's Database + db: + build: ./db + image: senssoft/postgres:latest + ports: + - "5432:5432" + + # TAP + tap: + build: ./tap + command: bash -c "/usr/src/app/wait-for-postgres.sh" + ports: + - "8010:8010" + depends_on: + - db + links: + - db:db + + # Specific container and configuration to monitor the HOST (filesystem, memory, processes,...) + metricbeat: + image: docker.elastic.co/beats/metricbeat:8.11.1 +# restart: unless-stopped + user: root + pid: host + volumes: + #The commented sections below enable Metricbeat to monitor the Docker host + #rather than the Metricbeat container. These are used by the system module. + - /proc:/hostfs/proc:ro + - /sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro + #We mount the host filesystem so we can report on disk usage with the system module + - /:/hostfs:ro + #Mount the metricbeat configuration so users can make edits + - ./beats/metricbeat/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml + #Mount the modules.d directory into the container. This allows user to + #potentially make changes to the modules and they will be dynamically loaded. + - ./beats/metricbeat/modules.d/:/usr/share/metricbeat/modules.d/ + #Allows us to report on docker from the hosts information + - /var/run/docker.sock:/var/run/docker.sock + depends_on: + - elasticsearch + environment: + - ELASTICSEARCH_URL=http://elasticsearch:9200 + - KIBANA_URL=http://kibana:5601 + - LOGSTASH_URL=http://logstash:9600 + - POSTGRESQL_URL="postgresql://db:5432/tapdb?sslmode=disable" + - POSTGRESQL_USERNAME=tapuser + - POSTGRESQL_PASSWORD="Dr@p3rUs3r" + extra_hosts: + - "elasticsearch:172.17.0.1" # The IP of docker0 interface to access host from container + - "kibana:172.17.0.1" # The IP of docker0 interface to access host from container + - "logstash:172.17.0.1" + - "db:172.17.0.1" + command: metricbeat -e -system.hostfs=/hostfs -strict.perms=false + network_mode: host # Mandatory to monitor HOST filesystem, memory, processes,... + +networks: Review Comment: This is giving a warning, and has a simple fix. `network esnet: network.external.name is deprecated. Please set network.name with external: true` ########## docker/docker-compose-8.11.1.yml: ########## @@ -0,0 +1,157 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Apache Flagon Single-Node Build + +version: "3" +services: + + # Startup + startup: + build: ./startup + depends_on: + - "elasticsearch" + command: bash /opt/entrypoint.sh + + # Site + site: + build: ./site + ports: + - 8080:8080 + depends_on: + - "logstash" + command: python -m SimpleHTTPServer 8080 Review Comment: This module was renamed, the command should be `python -m http.server 8080`. For both this docker compose and the default -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@flagon.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@flagon.apache.org For additional commands, e-mail: notifications-h...@flagon.apache.org