-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c15bc5e
commit e2d7000
Showing
13 changed files
with
279 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
otel.exporter.otlp.protocol=http/protobuf | ||
otel.exporter.otlp.timeout=60000 |
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,25 @@ | ||
# config file version | ||
apiVersion: 1 | ||
|
||
datasources: | ||
- name: Clickhouse | ||
type: grafana-clickhouse-datasource | ||
jsonData: | ||
defaultDatabase: otel | ||
port: 8123 | ||
server: host.docker.internal | ||
protocol: http | ||
username: test | ||
tlsSkipVerify: true | ||
logs: | ||
defaultDatabase: otel | ||
defaultTable: otel_logs | ||
otelEnabled: true | ||
otelVersion: 1.2.9 | ||
traces: | ||
defaultDatabase: otel | ||
defaultTable: otel_traces | ||
otelEnabled: true | ||
otelVersion: 1.2.9 | ||
secureJsonData: | ||
password: test |
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,13 @@ | ||
version: '3.8' | ||
|
||
services: | ||
grafana: | ||
image: grafana/grafana:latest | ||
ports: | ||
- "3001:3000" | ||
volumes: | ||
- ./grafana.ini:/etc/grafana/grafana.ini | ||
#- ./datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml | ||
environment: | ||
GF_INSTALL_PLUGINS: grafana-clickhouse-datasource,vertamedia-clickhouse-datasource | ||
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: vertamedia-clickhouse-datasource |
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,10 @@ | ||
[auth] | ||
disable_login_form = true | ||
|
||
[auth.anonymous] | ||
enabled = true | ||
org_name = Main Org. | ||
org_role = Admin | ||
|
||
[users] | ||
default_theme = light |
Binary file not shown.
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,5 @@ | ||
export JAVA_TOOL_OPTIONS="-javaagent:opentelemetry-javaagent.jar" | ||
export OTEL_SERVICE_NAME="Testcontainers" | ||
export OTEL_JAVAAGENT_CONFIGURATION_FILE="agent.properties" | ||
#export OTEL_METRICS_EXPORTER="otlp" | ||
mvn clean install |
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,25 @@ | ||
package com.consol.control; | ||
|
||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.Random; | ||
|
||
@Component | ||
public class Randomizer { | ||
|
||
private final Random random = new Random(); | ||
private final String[] firstNames = {"Hans", "Peter", "Gabi"}; | ||
private final String[] lastNames = {"Meier", "Schmitt", "Bauer"}; | ||
|
||
public String getRandomFirstName() { | ||
return firstNames[random.nextInt(firstNames.length)]; | ||
} | ||
|
||
public String getRandomLastName() { | ||
return lastNames[random.nextInt(lastNames.length)]; | ||
} | ||
|
||
public int getRandomAge() { | ||
return random.nextInt(100); | ||
} | ||
} |
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.