journalctl -f -u cluster.service
ps -ef | grep -i multipass | awk '{print "sudo kill -9 "$2}' | sh
- 34.136.221.76
- 104.155.99.177
| version: '3.8' | |
| services: | |
| scraper: | |
| image: telegraf:1.27.1-alpine | |
| restart: always | |
| volumes: | |
| - ./config/scraper.conf:/etc/telegraf/telegraf.conf:ro | |
| networks: | |
| - primary |
| #!/bin/sh | |
| host="${1:-localhost}" | |
| data="{\"data\":{}}" | |
| while read line; do | |
| if [ -z "${line}" ]; then | |
| continue | |
| fi | |
| timestamp=$(echo "${line}" | jq '{ timestamp: .timestamp }') |
| version: "3" | |
| services: | |
| currency-rates-redis-consumer: | |
| build: | |
| context: ../ | |
| image: telegraf-redis:1.27.1-alpine | |
| volumes: | |
| - ./config/consumer.conf:/etc/telegraf/telegraf.conf:ro | |
| - ./scripts:/etc/scripts |
| [agent] | |
| debug = true | |
| quiet = false | |
| metric_buffer_limit = 1000000 | |
| omit_hostname = true | |
| [[inputs.kafka_consumer]] | |
| brokers = ["kafka:19092"] | |
| topic_regexps = ["currency.rate"] | |
| topic_tag = "topic_currency_rate" |
| [agent] | |
| debug = true | |
| quiet = false | |
| metric_buffer_limit = 1000000 | |
| omit_hostname = true | |
| [[inputs.http]] | |
| # Read formatted metrics from one or more HTTP endpoints | |
| urls = ["https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum,ripple,cardano,binancecoin,solana,dogecoin,chainlink,near,decentraland&vs_currencies=usd&precision=18"] | |
| tagexclude = ["host", "url"] |
| version: '3.8' | |
| services: | |
| zoo: | |
| image: confluentinc/cp-zookeeper:7.3.2 | |
| restart: always | |
| hostname: zoo | |
| ports: | |
| - "2181:2181" | |
| environment: |
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Launch Package", | |
| "type": "go", | |
| "request": "launch", |
I hereby claim:
To claim this, I am signing this object:
| # https://github.com/fluent/fluent-bit/issues/422#issuecomment-873569854 | |
| filter-kubernetes.conf: | | |
| [FILTER] | |
| Name kubernetes | |
| Match kube.* | |
| Kube_URL https://kubernetes.default.svc:443 | |
| Kube_CA_File /var/run/secrets/kubernetes.io/serviceaccount/ca.crt | |
| Kube_Token_File /var/run/secrets/kubernetes.io/serviceaccount/token | |
| Kube_Tag_Prefix kube.var.log.containers. | |
| Merge_Log Off |