cardi-c
Version, currently master branch1 version
- master branchlatestFeb 3, 2022
gitlab.com/awesome_o/cardi-c
A Datadog metrics cardinality calculator app
1 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
cardi-c:
gitlab: awesome_o/cardi-c
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Matt
- Target
cardinality-calcfrom cardi-c.cr
Dependencies
Runtime Dependencies
- kemal*github: kemalcr/kemal
README
cardi-c
A Datadog metrics cardinality calculator - not just another female rapper w/ a fast flow :)
description
- Run
Datadog Synthetics Testsvs. 3rd-partycrystal-langAPIrunning onHeroku - Pass Datadog credentials in the standard way via
HTTP headers - Delegate all the heavy lifting (
Datadog APIcalls) to said 3rd-partyAPI Crystal APIresponds w/ concatenatedDatadog APIresponses (acts as a smart proxy)- Bonus : Crystal API also ships responses as logs to Datadog to allow in-app creation of
custom metrics from logs - Benefit : This makes it possible to track & alert on Datadog metrics spikes & cardinality spikes in realtime
usage
runs from heroku
https://cardi-c.herokuapp.com/
Expects Datadog credentials to be passed as headers - will respond w/ 400 if ecxpected headers are missing
heroku query
curl \
-sw'\n' \
-H "DD-API-KEY: $DD_API_KEY" \
-H"DD-APPLICATION-KEY: $DD_APPLICATION_KEY" \
-H"DD-SITE: $DD_SITE" \
https://cardi-c.herokuapp.com/
local run
# crystal cardi-c.cr
[production] Kemal is ready to lead at http://0.0.0.0:8080
2022-02-03 18:58:49 UTC 200 GET / 3031.61ms
local build & run compiled version
# shards install
# shards build
# bin/cardinality-calculator
[production] Kemal is ready to lead at http://0.0.0.0:8080
2022-02-03 18:58:49 UTC 200 GET / 3031.61ms
local query
curl \
-sw'\n' \
-H "DD-API-KEY: $DD_API_KEY" \
-H"DD-APPLICATION-KEY: $DD_APPLICATION_KEY" \
-H"DD-SITE: $DD_SITE" \
127.0.0.1:8080
endpoints
Datadog API Endpoints used :
- active metrics
- top average custom metrics
- metrics metadata
- metrics volumes
- metrics tags
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Feb 3, 2022
- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
gitlab.com/awesome_o/cardi-c
Metadata
- Created
- Aug 16, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 1