-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from MadL1me/release/8.2.0
Add observability - tracing and prometheus collector
- Loading branch information
Showing
19 changed files
with
341 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
TEST_PROJ_NAME=MyProject | ||
TEMPL_DOTNET_NAME=aspnext | ||
NUGET_FILE=Aspnext.Template.8.1.0.nupkg | ||
NUGET_FILE=Aspnext.Template.8.2.0.nupkg | ||
NUGET_API_KEY=<YOUR_NUGET_API_KEY> |
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,21 @@ | ||
version: '3.7' | ||
|
||
services: | ||
grafana: | ||
image: grafana/grafana | ||
environment: | ||
- GF_SECURITY_ADMIN_PASSWORD=admin | ||
restart: always | ||
ports: | ||
- 3000:3000 | ||
volumes: | ||
- grafana-data:/var/lib/grafana | ||
networks: | ||
- localconnect | ||
|
||
volumes: | ||
grafana-data: {} | ||
|
||
networks: | ||
localconnect: | ||
|
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,44 @@ | ||
version: '3.7' | ||
|
||
# To run a specific version of Jaeger, use environment variable, e.g.: | ||
# JAEGER_VERSION=1.52 docker compose up | ||
|
||
services: | ||
jaeger: | ||
image: jaegertracing/all-in-one:${JAEGER_VERSION:-latest} | ||
ports: | ||
- "16686:16686" | ||
- "4318:4318" | ||
- 5775:5775/udp | ||
- 6831:6831/udp | ||
- 6832:6832/udp | ||
- 5778:5778 | ||
- 16686:16686 | ||
- 14250:14250 | ||
- 14268:14268 | ||
- 14269:14269 | ||
- 4317:4317 | ||
- 4318:4318 | ||
- 9411:9411 | ||
environment: | ||
- LOG_LEVEL=debug | ||
networks: | ||
- jaeger-example | ||
hotrod: | ||
image: jaegertracing/example-hotrod:${JAEGER_VERSION:-latest} | ||
# To run the latest trunk build, find the tag at Docker Hub and use the line below | ||
# https://hub.docker.com/r/jaegertracing/example-hotrod-snapshot/tags | ||
#image: jaegertracing/example-hotrod-snapshot:0ab8f2fcb12ff0d10830c1ee3bb52b745522db6c | ||
ports: | ||
- "8085:8085" | ||
- "8083:8083" | ||
command: ["all"] | ||
environment: | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4318 | ||
networks: | ||
- jaeger-example | ||
depends_on: | ||
- jaeger | ||
|
||
networks: | ||
jaeger-example: |
16 changes: 16 additions & 0 deletions
16
src/template/Template/infra/docker-compose-prometheus.yaml
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 @@ | ||
version: '3.7' | ||
|
||
services: | ||
prometheus: | ||
image: prom/prometheus | ||
restart: always | ||
ports: | ||
- 9090:9090 | ||
volumes: | ||
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro | ||
networks: | ||
- localconnect | ||
|
||
networks: | ||
localconnect: | ||
|
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,15 @@ | ||
global: | ||
scrape_interval: 10s # By default, scrape targets every 5 seconds. | ||
|
||
# Attach these labels to any time series or alerts when communicating with | ||
# external systems (federation, remote storage, Alertmanager). | ||
# external_labels: | ||
# monitor: 'nats-openrmf-server' | ||
|
||
# A scrape configuration containing exactly one endpoint to scrape: | ||
scrape_configs: | ||
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config. | ||
- job_name: 'localhost-read-prometheus' | ||
# metrics_path defaults to '/metrics' | ||
static_configs: | ||
- targets: ['host.docker.internal:5214'] |
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
Oops, something went wrong.