Giter Site home page Giter Site logo

kafka-showbacks-demo's Introduction

kafka-showback-demo

KafkaShowbacksDemo split the cost supplied by the Cloud provider by teams/applications. To be aware about the different costs that we have in our Kafka environments can help to detect problems related with incorrect configurations.

KafkaShowbacksDemo works with Kafka Confluent environment due that the Confluent Cloud provide a complete set of API to get the information that we need to calculate the costs. The costs calculated are sent to NewRelicDB.

Service account format

As in the introduction has been mentioned one of the goals of this KafkaShowBackDemo service is assign the different costs to the different teams. To do it, we need to identify the team and application that is assigned to each service account. We have solved this problem assigning a description with a determinate format, and thanks to this format we can have this match between the service account and the team/application. So is mandatory that the description of service account has the following format:

"Service account for the {CLUSTER},{TEAM},{APPLICATION} application"

Handle duplicate data

KafkaShowBacks demo service not handle the duplicate records when generate the data to NewRelic event, so in case that you have generated duplicate or incorrect data you have to remove manually. To do it you can use Drop data using NerdGraph.

Run locally

Environment variables

To run the KafkaShowBacksService is mandatory se this environment variables of update the configuration in server.yml.

Days to execute

By default, the KafkaShowBacksDemo service calculates the cost for the day before of the execution. You could launch the service to get the cost for more days changing the daysToExecute parameter in server.yml calculates more than 1 day before. Take into account that Confluent API has a limitation of 7 days before, so it's not possible to obtain the cost for more than 7 days.

Build Confluent environment with terraform

In template folder you can find a set of template to build a Confluent environment with terraform, in the case that you need it:

Support links

kafka-showbacks-demo's People

Contributors

irodriguezclaveria avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.