diff --git a/.bootstrap_services b/.bootstrap_services index a56729d..59b770a 100644 --- a/.bootstrap_services +++ b/.bootstrap_services @@ -4,4 +4,5 @@ basenet morph_chain jaeger prometheus +pyroscope grafana diff --git a/.env b/.env index e04d5ca..95099f4 100644 --- a/.env +++ b/.env @@ -64,3 +64,7 @@ PROMETHEUS_IMAGE=prom/prometheus # Grafana versions GRAFANA_VERSION=9.5.6 GRAFANA_IMAGE=grafana/grafana + +# Pyroscope version +PYROSCOPE_VERSION=1.0.0-rc.0 +PYROSCOPE_IMAGE=grafana/pyroscope diff --git a/services/pyroscope/.env b/services/pyroscope/.env new file mode 120000 index 0000000..c7360fb --- /dev/null +++ b/services/pyroscope/.env @@ -0,0 +1 @@ +../../.env \ No newline at end of file diff --git a/services/pyroscope/.hosts b/services/pyroscope/.hosts new file mode 100644 index 0000000..96c8a92 --- /dev/null +++ b/services/pyroscope/.hosts @@ -0,0 +1 @@ +IPV4_PREFIX.123 pyroscope.LOCAL_DOMAIN diff --git a/services/pyroscope/.int_test.env b/services/pyroscope/.int_test.env new file mode 120000 index 0000000..582b6a2 --- /dev/null +++ b/services/pyroscope/.int_test.env @@ -0,0 +1 @@ +../../.int_test.env \ No newline at end of file diff --git a/services/pyroscope/docker-compose.yml b/services/pyroscope/docker-compose.yml new file mode 100644 index 0000000..de0938f --- /dev/null +++ b/services/pyroscope/docker-compose.yml @@ -0,0 +1,24 @@ +version: '3.9' +services: + pyroscope: + image: grafana/pyroscope:latest + domainname: ${LOCAL_DOMAIN} + hostname: pyroscope + container_name: pyroscope + networks: + pyroscope_int: + internet: + ipv4_address: ${IPV4_PREFIX}.123 + ports: + - '4100:4100' + command: + - -config.file=/etc/pyroscope/config.yaml + - server + volumes: + - ./server.yml:/etc/pyroscope/config.yaml + +networks: + pyroscope_int: + internet: + external: true + name: basenet_internet diff --git a/services/pyroscope/server.yml b/services/pyroscope/server.yml new file mode 100644 index 0000000..1cabd5a --- /dev/null +++ b/services/pyroscope/server.yml @@ -0,0 +1,32 @@ +--- +server: + http_listen_port: 4100 + +scrape_configs: + - job_name: "default" + scrape_interval: "15s" + static_configs: + - targets: ["127.0.0.1:4100"] + labels: + service_name: "pyroscope" + - job_name: storage + scrape_interval: "15s" + static_configs: + - targets: ["s01:6060", "s02:6060", "s03:6060"] + labels: + service_name: "storage" + - targets: ["s04:6060"] + labels: + service_name: "s04" + - job_name: s3 + scrape_interval: "15s" + static_configs: + - targets: ["s3:6060"] + labels: + service_name: "s3" + - job_name: morph + scrape_interval: "15s" + static_configs: + - targets: ["morph_chain:20011"] + labels: + service_name: "morph" \ No newline at end of file