You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(server): replace OpenTelemetry with Micrometer (#1823)
To test locally, follow these steps after installing docker and docker
compose:
1. Execute `./gradlew jit-binding-server:publishImageToLocalRegistry`
2. Create `docker-compose.yml` with the following content:
```
services:
github-workflows-kt:
image: github-workflows-kt-jit-binding-server
ports:
- "8080:8080"
environment:
- GITHUB_TOKEN
networks:
prometheus:
grafana:
image: grafana/grafana:11.5.0
ports:
- "3000:3000"
volumes:
- ./datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
networks:
prometheus:
prometheus:
image: prom/prometheus:v3.1.0
configs:
- source: prometheus
target: /etc/prometheus/prometheus.yml
ports:
- "9090:9090"
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--web.enable-remote-write-receiver"
networks:
prometheus:
networks:
prometheus:
configs:
prometheus:
file: prometheus.yml
```
3. Create `.env` on the same folder as docker-compose:
```
GITHUB_TOKEN=XXX
```
where XXX is a generated github token with access to public repositories
4. Create `prometheus.yml` on the same folder as docker-compose:
```
global:
scrape_interval: 5s
scrape_configs:
- job_name: 'ktor-app'
metrics_path: '/metrics'
static_configs:
- targets: ['github-workflows-kt:8080']
```
5. Create `datasources.yaml` on the same folder as docker-compose:
```
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
url: http://prometheus:9090/
access: proxy
isDefault: true
```
6. Execute `docker compose up -d`
- Workflows should be accessible on port 8080
- Prometheus should be accessible on port 9090
- Grafana should be accessible on port 3000
Copy file name to clipboardExpand all lines: jit-binding-server/src/main/kotlin/io/github/typesafegithub/workflows/jitbindingserver/OpenTelemetryConfig.kt
0 commit comments