Skip to content

Commit

Permalink
Dashboard for OTLP
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobat committed Sep 27, 2024
1 parent fcd314f commit 8124a1e
Show file tree
Hide file tree
Showing 5 changed files with 4,136 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,19 @@ public LgtmContainer() {
public LgtmContainer(LgtmConfig config) {
super(config);
addExposedPorts(config.otlpPort());
// cannot override grafana-dashboards.yaml in the container because it's on a version dependent path:
// ./grafana-v11.0.0/conf/provisioning/dashboards/grafana-dashboards.yaml
// will replace contents of current dashboards
withLogConsumer(new LgtmContainerLogConsumer(log).withPrefix("LGTM"));
withCopyFileToContainer(
MountableFile.forClasspathResource("/grafana-dashboard-quarkus-metrics.json"),
"/otel-lgtm/grafana-dashboard-jvm-metrics.json");
MountableFile.forClasspathResource("/grafana-dashboard-quarkus-micrometer-prometheus.json"),
"/otel-lgtm/grafana-dashboard-red-metrics-classic.json");
withCopyFileToContainer(
MountableFile.forClasspathResource("/grafana-dashboard-quarkus-micrometer-otlp.json"),
"/otel-lgtm/grafana-dashboard-red-metrics-native.json");
withCopyFileToContainer(
MountableFile.forClasspathResource("/grafana-dashboards.yaml"),
"/otel-lgtm/grafana-dashboards.yaml");
MountableFile.forClasspathResource("/empty.json"),
"/otel-lgtm/grafana-dashboard-jvm-metrics.json");
addFileToContainer(getPrometheusConfig().getBytes(), "/otel-lgtm/prometheus.yaml");

}
Expand Down
Empty file.
Loading

0 comments on commit 8124a1e

Please sign in to comment.