diff options
| author | mjkwiatkowski <mati.rewa@gmail.com> | 2026-06-15 23:48:44 +0200 |
|---|---|---|
| committer | mjkwiatkowski <mati.rewa@gmail.com> | 2026-06-15 23:48:44 +0200 |
| commit | 0731bd58889df127ef87aba2590d505d79e6646f (patch) | |
| tree | 128aceeaf60ac5c098297f7cfda9fa47f974fc84 /opendc-common/src/main/resources | |
| parent | f1ecbf0ce40d43685d8a6aeba0fe4cdebbd4536f (diff) | |
feat: migrated the past project to the sunfish repo
Diffstat (limited to 'opendc-common/src/main/resources')
| -rw-r--r-- | opendc-common/src/main/resources/consumer.toml | 6 | ||||
| -rw-r--r-- | opendc-common/src/main/resources/database.toml | 5 | ||||
| -rw-r--r-- | opendc-common/src/main/resources/producer.toml | 5 | ||||
| -rw-r--r-- | opendc-common/src/main/resources/schema.proto | 14 |
4 files changed, 30 insertions, 0 deletions
diff --git a/opendc-common/src/main/resources/consumer.toml b/opendc-common/src/main/resources/consumer.toml new file mode 100644 index 00000000..0f4a2d1d --- /dev/null +++ b/opendc-common/src/main/resources/consumer.toml @@ -0,0 +1,6 @@ +"bootstrap.servers" = "127.0.0.1:9092" +"key.deserializer" = "org.apache.kafka.common.serialization.VoidDeserializer" +"value.deserializer" = "io.confluent.kafka.serializers.protobuf.KafkaProtobufDeserializer" +"group.id" = "connect-postgresql-sink" +"enable.auto.commit" = "true" +"auto.commit.interval.ms" = "1000" diff --git a/opendc-common/src/main/resources/database.toml b/opendc-common/src/main/resources/database.toml new file mode 100644 index 00000000..c9aaa253 --- /dev/null +++ b/opendc-common/src/main/resources/database.toml @@ -0,0 +1,5 @@ +"address" = "127.0.0.1:5432" +"username" = "matt" +"password" = "admin" +"database" = "opendc" +"stream" = "postgres_topic"
\ No newline at end of file diff --git a/opendc-common/src/main/resources/producer.toml b/opendc-common/src/main/resources/producer.toml new file mode 100644 index 00000000..8202e93b --- /dev/null +++ b/opendc-common/src/main/resources/producer.toml @@ -0,0 +1,5 @@ +"bootstrap.servers" = "127.0.0.1:9092" +"key.serializer" = "org.apache.kafka.common.serialization.VoidSerializer" +"value.serializer" = "io.confluent.kafka.serializers.protobuf.KafkaProtobufSerializer" +"schema.registry.url" = "http://localhost:8081" +"auto.register.schemas" = "true" diff --git a/opendc-common/src/main/resources/schema.proto b/opendc-common/src/main/resources/schema.proto new file mode 100644 index 00000000..d0aa18d5 --- /dev/null +++ b/opendc-common/src/main/resources/schema.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +package proto; + +option java_package = "org.opendc.common"; +option java_outer_classname = "ProtobufMetrics"; + +message ProtoExport { + string timestamp = 1; + string host_id = 2; + int32 tasksactive = 3; + double cpuutilization = 4; + double energyusage = 5; +}
\ No newline at end of file |
