Skip to content

Commit

Permalink
feat(anna): Grafana and Prometheus working and talking to each other
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitkulshreshtha committed Oct 18, 2024
1 parent 5392ef4 commit 697297d
Show file tree
Hide file tree
Showing 8 changed files with 631 additions and 29 deletions.
271 changes: 268 additions & 3 deletions Cargo.lock

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion datastores/gossip_kv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@ config = "0.14.0"
hostname = "0.4.0"
hydroflow = { path="../../hydroflow" }
lattices = { path = '../../lattices'}
lazy_static = "1.5.0"
# The specific set of features for Notify are picked to disable the default cross-beam channels (cause problems with
# tokio) and use std channels. See docs for more information: https://docs.rs/notify/6.1.1/notify/
notify = { version = "6.1.1", default-features = false, features = ["macos_kqueue"] }
prometheus = "0.13.4"
rand = "0.8.5"
serde = "1.0.203"
serde_json = "1.0.117"
shlex = "1.3.0"
tokio = { version = "1.0.0", features = ["rt", "rt-multi-thread", "macros"] }
tracing = "0.1.40"
tracing-subscriber = {version = "0.3.18", features = ["env-filter"]}
uuid = { version = "1.9.1", features = ["v4"] }
tokio = { version = "1.0.0", features = ["rt", "rt-multi-thread", "macros"] }
warp = "0.3.7"

[[bin]]
name = "gossip_server"
Expand Down
8 changes: 8 additions & 0 deletions datastores/gossip_kv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,11 @@ aws_upload_docker_images: build_docker_images
docker push $(SERVER_REPO_URL):$(SERVER_IMAGE_VERSION)
aws ecr get-login-password --region $(REGION) | docker login --username AWS --password-stdin $(SERVER_REPO_URL)
docker push $(CLI_REPO_URL):$(CLI_IMAGE_VERSION)

aws_tunnel_grafana:
$(eval GRAFANA_PORT := $(shell terraform -chdir=$(AWS_TERRAFORM_PATH) output -raw grafana_port))
kubectl port-forward svc/grafana $(GRAFANA_PORT):$(GRAFANA_PORT)

aws_tunnel_prometheus:
$(eval PROMETHEUS_PORT := $(shell terraform -chdir=$(AWS_TERRAFORM_PATH) output -raw prometheus_port))
kubectl port-forward svc/prometheus $(PROMETHEUS_PORT):$(PROMETHEUS_PORT)
Loading

0 comments on commit 697297d

Please sign in to comment.