{"id":16118941,"url":"https://github.com/cch0/mad-for-dev","last_synced_at":"2025-04-06T09:50:48.292Z","repository":{"id":84547353,"uuid":"196668617","full_name":"cch0/mad-for-dev","owner":"cch0","description":"Docker based MAD for development environment","archived":false,"fork":false,"pushed_at":"2019-07-18T03:32:31.000Z","size":439,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T15:36:52.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cch0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-13T02:22:27.000Z","updated_at":"2019-07-28T22:59:55.000Z","dependencies_parsed_at":"2023-03-08T08:15:36.797Z","dependency_job_id":null,"html_url":"https://github.com/cch0/mad-for-dev","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cch0%2Fmad-for-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cch0%2Fmad-for-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cch0%2Fmad-for-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cch0%2Fmad-for-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cch0","download_url":"https://codeload.github.com/cch0/mad-for-dev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247463903,"owners_count":20942948,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T20:51:37.125Z","updated_at":"2025-04-06T09:50:48.276Z","avatar_url":"https://github.com/cch0.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MAD for Dev\n\n# Purpose\n\nTo provide a [`Metrics Aggregator Daemon`](https://github.com/ArpNetworking/metrics-aggregator-daemon) based metrics collection and visualization solution suitable for development environment.\n\nImplementation of the solution is based on docker and to be used by `docker-compose`.\n\n\n\n![architecture](./img/mad_for_dev.png)\n\n## Caution\n\nNot suitable for production use. No metrics data is retained. No high availability. Dashboard and data source configuration are not persisted.\n\n\n# Run It\n\nFrom the top directory,\n\n```\ndocker-compose -f docker-compose.yml up -d\n```\n\n\n# Metrics Aggregator Daemon (MAD)\n\nMAD is available at port `7090` and `8125` (udp)\n\n# Metrics Portal (mportal)\n\nmportal is available at port `8080` and `9000` and UI is available at `localhost:8081`\n\nBy default, metrics from both `MAD` and `mportal` are available and shown in the left panel.\n\n![mportal 01](./img/mportal01.png)\n\n\nWhen application/service is pushing metrics to `MAD` with `service` tag of value `ams`, then metrics will show up under `ams` as well.\n\n\n![mportal 02](./img/mportal02.png)\n\n\n\n# Metrics Cluster Aggregator (CAGG)\n\nCAGG is available at port `7065` and `7066`.\n\n# Cassandra\n\nCassandra is available at port `7000` and `9042`.\n\n# KairosDB\n\nKairosdb is available at port `8080` and UI is available at `localhost:8082`\n\n![kairosdb](./img/kairosdb01.png)\n\n# Grafana \n\nGrafana is available at port `3000` and UI is available at `localhost:3000`\n\n## Grafana Data Source Configuration\n\nGrafana has had Kairosdb plugin installed. All is left is to configure data source\n\n![kairosdb datasource](./img/grafana_datasource_kairosdb.png)\n\n\n# Integration With Spring Boot Application\n\nIn the `application.yaml` file, enable statsd metrics.\n\n```\nmanagement:\n  metrics:\n    export:\n      statsd:\n        enabled: true\n        flavor: datadog\n        host: \"localhost\"\n        port: 8125\n      simple:\n        enabled: false\n```\n\nIn order for MAD to correctly ingest metrics, the following 3 tags must be present in the metric.\n\n* cluster: value of `monitoringCluster` variable configured in [config.conf](./mad/config/config.conf), default is \"mad\"\n* service: name of your service\n* host: localhost or something similar\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcch0%2Fmad-for-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcch0%2Fmad-for-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcch0%2Fmad-for-dev/lists"}