Skip to content

Commit 36c0a4c

Browse files
committed
minimal impl
1 parent 04fbb67 commit 36c0a4c

55 files changed

Lines changed: 3820 additions & 122 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/xds-example/build.gradle

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
plugins {
2+
id 'application'
3+
}
4+
5+
dependencies {
6+
implementation project(':xds')
7+
implementation project(':prometheus1')
8+
implementation libs.jackson.databind
9+
implementation libs.jackson.dataformat.yaml
10+
implementation libs.micrometer.prometheus
11+
implementation libs.protobuf.java.util
12+
runtimeOnly libs.slf4j.simple
13+
14+
testImplementation project(':junit5')
15+
testImplementation libs.assertj
16+
testImplementation libs.awaitility
17+
testImplementation libs.junit5.jupiter.api
18+
}
19+
20+
application {
21+
mainClass.set('example.armeria.xds.Main')
22+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Prometheus + Grafana for xDS metrics visualization.
2+
#
3+
# Usage:
4+
# 1. Start the xDS example: ./gradlew :examples:xds:run
5+
# 2. Start monitoring: docker compose up -d
6+
# 3. Open Grafana at http://localhost:3000 (anonymous access enabled)
7+
# 4. The "Armeria xDS Metrics" dashboard is auto-provisioned.
8+
9+
services:
10+
prometheus:
11+
image: prom/prometheus:latest
12+
ports:
13+
- "9090:9090"
14+
volumes:
15+
- ./prometheus.yml:/etc/prometheus/prometheus.yml
16+
extra_hosts:
17+
- "host.docker.internal:host-gateway"
18+
19+
grafana:
20+
image: grafana/grafana:latest
21+
ports:
22+
- "3000:3000"
23+
environment:
24+
- GF_SECURITY_ADMIN_PASSWORD=admin
25+
- GF_AUTH_ANONYMOUS_ENABLED=true
26+
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
27+
- GF_AUTH_DISABLE_LOGIN_FORM=true
28+
volumes:
29+
- ./grafana/provisioning:/etc/grafana/provisioning
30+
- ./grafana/dashboards:/var/lib/grafana/dashboards
31+
depends_on:
32+
- prometheus

0 commit comments

Comments
 (0)