Giter Site home page Giter Site logo

database-collector's Introduction

Database Collector

This is an AWS CDK project that deploys a collector that gathers metrics from databases and publishes them to CloudWatch and Prometheus.

Languages and Frameworks Used

  • TypeScript
  • Go
  • AWS CDK
  • Node.js

Project Structure

The main logic of the collector is written in Go and is located in the collector directory. The AWS infrastructure is defined using AWS CDK in TypeScript, and the main file is lib/database-collector.ts.

Setup

  1. Install the dependencies:
pnpm npm install
  1. Compile the TypeScript code:
pnpm run build
  1. Deploy the stack:
cdk deploy -c vpcId="" -c subnetIds="" -c securityGroupIds="" -c prometheusUrl="" -c exporterType=""

Configuration

The collector can be configured using context variables in the AWS CDK app. Here are the available options:

  • vpcId: The ID of the VPC where the collector will be deployed.
  • subnetIds: A comma-separated list of subnet IDs where the collector will be deployed.
  • securityGroupIds: A comma-separated list of security group IDs to attach to the collector.
  • exporterType: The type of exporter to use. Currently, only "prometheus" is supported.
  • prometheusUrl: The URL of the Prometheus server where the metrics will be published.

database-collector's People

Contributors

d3vb0ox avatar erikrj avatar

Watchers

Trent Cameron avatar Michael Dollar avatar Pieter Van der Vyver avatar victor vergunov avatar  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.