-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'miyurud:master' into master
- Loading branch information
Showing
13 changed files
with
91 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
global: | ||
scrape_interval: 15s | ||
external_labels: | ||
monitor: "codelab-monitor" | ||
scrape_configs: | ||
- job_name: "prometheus" | ||
scrape_interval: 5s | ||
static_configs: | ||
- targets: ["localhost:9090"] | ||
|
||
- job_name: "pushgateway" | ||
scrape_interval: 2s | ||
static_configs: | ||
- targets: ["172.28.5.3"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
services: | ||
jasminegraph: | ||
image: jasminegraph:latest | ||
ports: | ||
- '7777:7777' | ||
- '7778:7778' | ||
volumes: | ||
- '/var/run/docker.sock:/var/run/docker.sock:rw' | ||
- './env/databases/metadb:/home/ubuntu/software/jasminegraph/metadb' | ||
- './env/databases/performancedb:/home/ubuntu/software/jasminegraph/performancedb' | ||
- './env/data:/var/tmp/data' | ||
- '/tmp/jasminegraph:/tmp/jasminegraph' | ||
networks: | ||
- jasminenet | ||
command: --MODE 1 --MASTERIP 172.28.5.1 --WORKERS 2 --WORKERIP 172.28.5.1 --ENABLE_NMON false | ||
depends_on: | ||
- prometheus | ||
prometheus: | ||
image: prom/prometheus:latest | ||
ports: | ||
- 9090:9090 | ||
volumes: | ||
- './conf/prometheus.yaml:/etc/prometheus/prometheus.yml' | ||
networks: | ||
jasminenet: | ||
ipv4_address: 172.28.5.2 | ||
depends_on: | ||
- pushgateway | ||
pushgateway: | ||
image: prom/pushgateway | ||
ports: | ||
- 9091:9091 | ||
networks: | ||
jasminenet: | ||
ipv4_address: 172.28.5.3 | ||
networks: | ||
jasminenet: | ||
external: false | ||
name: jasminenet | ||
driver: bridge | ||
ipam: | ||
config: | ||
- subnet: 172.28.5.0/24 | ||
ip_range: 172.28.5.0/24 | ||
gateway: 172.28.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
docker compose up -d jasminegraph prometheus & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# Variables | ||
HOST="localhost" | ||
PORT="7777" | ||
|
||
# Establish telnet connection and send command | ||
( | ||
sleep 5 | ||
echo "shdn" | ||
sleep 5 | ||
echo "exit" | ||
sleep 5 | ||
) | telnet "$HOST" "$PORT" | ||
|
||
docker compose stop prometheus pushgateway & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters