Skip to content

Commit

Permalink
Merge branch 'main' into chore/migrate-gcp-cloudfunction-sink
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobressan authored Jul 5, 2023
2 parents a9fa047 + 2fb43c4 commit c09b302
Show file tree
Hide file tree
Showing 8 changed files with 218 additions and 234 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ sink-aws-lambda = ["aws-config", "aws-types", "aws-sdk-lambda"]
sink-gcp-pubsub = ["google-cloud-pubsub", "google-cloud-googleapis", "google-cloud-default"]
sink-gcp-cloudfunction = ["reqwest", "jsonwebtoken"]
sink-redis = ["r2d2_redis"]
sink-elasticsearch = ["elasticsearch"]
21 changes: 21 additions & 0 deletions examples/elasticsearch/daemon.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[source]
type = "N2N"
peers = ["relays-new.cardano-mainnet.iohk.io:3001"]

[chain]
type = "mainnet"

[intersect]
type = "Tip"

[[filters]]
type = "SplitBlock"

[[filters]]
type = "ParseCbor"

[sink]
type = "ElasticSearch"
url = "http://localhost:9200"
index = "oura.sink.v6"
idempotency = true
29 changes: 29 additions & 0 deletions examples/elasticsearch/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: "3"
services:
elasticsearch:
image: elasticsearch:8.8.1
container_name: elasticsearch
ports:
- "9200:9200"
- "9300:9300"
networks:
- elasticsearch-network
environment:
- xpack.security.enabled=false
- discovery.type=single-node

kibana:
image: kibana:8.8.1
container_name: kibana
ports:
- "5601:5601"
networks:
- elasticsearch-network
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
depends_on:
- elasticsearch

networks:
elasticsearch-network:
driver: bridge
4 changes: 0 additions & 4 deletions src/sinks/_pending/elastic/mod.rs

This file was deleted.

157 changes: 0 additions & 157 deletions src/sinks/_pending/elastic/run.rs

This file was deleted.

71 changes: 0 additions & 71 deletions src/sinks/_pending/elastic/setup.rs

This file was deleted.

Loading

0 comments on commit c09b302

Please sign in to comment.