Skip to content

Commit

Permalink
Implement observability :wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguililla committed Dec 20, 2024
1 parent 1bf5dfd commit 6b588ff
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .mvn/parent.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.4.0</version>
<version>3.4.1</version>
<relativePath/>
</parent>

Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ services:
ports:
- "9092:9092"

openobserve:
image: docker.io/openobserve/openobserve:v0.14.0
environment:
ZO_ROOT_USER_EMAIL: "root@example.com"
ZO_ROOT_USER_PASSWORD: "Complex-pass#123"
volumes:
- data:/data
ports:
- "5080:5080"

appointments:
profiles: [ local ]
depends_on:
Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-otlp</artifactId>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
Expand Down
59 changes: 51 additions & 8 deletions src/main/resources/static/simple.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

/* Global variables. */
:root,
::backdrop {
:root {
--sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L", Roboto,
"Noto Sans", "Segoe UI", Arial, Helvetica, "Helvetica Neue", sans-serif;
--mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
Expand Down Expand Up @@ -39,8 +38,7 @@

/* Dark theme */
@media (prefers-color-scheme: dark) {
:root,
::backdrop {
:root {
color-scheme: dark;

--bg: #212121;
Expand Down Expand Up @@ -220,8 +218,7 @@ button,
a.button, /* extra specificity to override a */
input[type="submit"],
input[type="reset"],
input[type="button"],
label[type="button"] {
input[type="button"] {
border: 1px solid var(--accent);
background-color: var(--accent);
color: var(--accent-text);
Expand Down Expand Up @@ -256,8 +253,7 @@ button:enabled:hover,
.button:not([aria-disabled="true"]):hover,
input[type="submit"]:enabled:hover,
input[type="reset"]:enabled:hover,
input[type="button"]:enabled:hover,
label[type="button"]:hover {
input[type="button"]:enabled:hover {
background-color: var(--accent-hover);
border-color: var(--accent-hover);
cursor: pointer;
Expand Down Expand Up @@ -707,6 +703,7 @@ progress:indeterminate::-moz-progress-bar {
}

dialog {
background-color: var(--bg);
max-width: 40rem;
margin: auto;
}
Expand Down Expand Up @@ -747,3 +744,49 @@ sub {
padding: 1.5rem;
margin: 2rem 0;
}

/* Print */
@media print {
@page {
margin: 1cm;
}
body {
display: block;
}
body > header {
background-color: unset;
}
body > header nav,
body > footer {
display: none;
}
article {
border: none;
padding: 0;
}
a[href^="http"]::after {
content: " <" attr(href) ">";
}
abbr[title]:after {
content: " (" attr(title) ")";
}
a {
text-decoration: none;
}
p {
widows: 3;
orphans: 3;
}
hr {
border-top: 1px solid var(--border);
}
mark {
border: 1px solid var(--border);
}
pre, table, figure, img, svg {
break-inside: avoid;
}
pre code {
white-space: pre-wrap;
}
}

0 comments on commit 6b588ff

Please sign in to comment.