mayadata-io / d-operators

Declarative patterns to write kubernetes controllers
Apache License 2.0
10 stars 7 forks source link

use case: visualise metrics stored as json files in S3 #134

Open AmitKumarDas opened 4 years ago

AmitKumarDas commented 4 years ago

ProblemStatement: As an automation engineer I collect various metrics as json format & upload them to S3. I want to visualise the same on Grafana like visualisation tools running in some K8s setup.

AmitKumarDas commented 4 years ago

High Level Design Drafts - 0

This design is split across multiple custom resources:

- [1] Fetch metrics in json files from S3

- [2] Upload json files containing metrics to Prometheus

- [3] Implement a TTL based Lock

NOTE: - All the custom resources will be implemented as ConfigMaps - This will be done to avoid the need of applying Custom Resource Definition(s)

AmitKumarDas commented 4 years ago

refer - https://github.com/prometheus-community/json_exporter refer - https://github.com/NexClipper/exporterhub.io