Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grafana Dashboard #116

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions exercises/exercise_000_sudoku_solver_initial_state/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This application, written in Scala 2, implements an Akka Typed/Scala
based Sudoku Solver that is composed of 29 actors.

The application will also start up an instance of a Sudoku problem generator
that continuously cycles through a series of Sudoko problems at a configurable
that continuously cycles through a series of Sudoku problems at a configurable
rate, tunable via configuration.

The course consists of a series of exercises in which you change the source code to leverage Scala 3 specific features. The application comes with tests that are basically the same across all exercises. The tests should pass at every stage: if they don't, you've broken something and you will need to fix it.
Expand Down Expand Up @@ -83,7 +83,7 @@ SLF4J: See also http://www.slf4j.org/codes.html#replay
man [e] > Scala 2 to Scala 3 > sudoku solver initial state >
```

- Run the Sodukosolver by executing the `runSolver` command from the `sbt` prompt.
- Run the SudokuSolver by executing the `runSolver` command from the `sbt` prompt.

- Note that you can stop the application by hitting `Return` in the sbt session.

Expand Down Expand Up @@ -161,4 +161,3 @@ body {
```

![IntelliJ Markdown viewer settings](images/Markdown-viewer-IntelliJ.png)

5 changes: 4 additions & 1 deletion exercises/exercise_000_sudoku_solver_initial_state/build.sbt
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
Global / onChangedBuildSource := ReloadOnSourceChanges

lazy val `moving-from-scala-2-to-scala-3` =
lazy val `lunatech-scala2-to-scala3-course` =
(project in file(".")).settings(
scalaVersion := "2.13.10",
Compile / scalacOptions ++= CompileOptions.compileOptions,
libraryDependencies ++= Dependencies.dependencies,
testFrameworks += new TestFramework("munit.Framework"))

run / fork := true
run / connectInput := true

sbt.addCommandAlias("runSolver", "runMain org.lunatechlabs.dotty.SudokuSolverMain")
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: '3.9'

networks:
monitoring:
driver: bridge

volumes:
prometheus_data:
external: false
grafana_data:
external: false
grafana_log:
external: false

services:
grafana:
container_name: grafana
image: grafana/grafana-oss:10.0.3
volumes:
- ./infrastructure/grafana/etc:/etc/grafana:ro
- grafana_data:/var/lib/grafana
- grafana_log:/var/log/grafana
ports:
- "3000:3000"
restart: always
depends_on:
- prometheus
privileged: true
networks:
- monitoring

prometheus:
container_name: prometheus
image: prom/prometheus:v2.46.0
volumes:
- ./infrastructure/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
ports:
- "9090:9090"
restart: always
privileged: true
networks:
- monitoring
extra_hosts:
- "host.docker.internal:host-gateway"
Loading