Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Create Prometheus Data Model #107

Closed
adamgfraser opened this issue Nov 10, 2020 · 5 comments
Closed

Create Prometheus Data Model #107

adamgfraser opened this issue Nov 10, 2020 · 5 comments
Labels
good first issue Good for newcomers

Comments

@adamgfraser
Copy link
Contributor

We want ZIO ZMX to support Promtheus as well as statd. We currently support a version of this today, see the PrometheusSpec.scala file in the test folder, but it relies on a dependency on the Prometheus client which we do not want to have. Therefore, we need to do our own implementation of the Prometheus protocol.

The first step to do this is to create a data model for the objects within the Prometheus data model, for example the Counter, Histogram, and CollectorRegistry. At this point this would be a pure data model that would describe the information we would need to interact with Prometheus but would not contain any of the actual logic for converting this data into the format expected by Prometheus.

@atooni
Copy link
Member

atooni commented Nov 20, 2020

Apart from working on ticket zio/zio#4384 I would like to give this a go in the hackathon.

@toxicafunk
Copy link
Member

The model needs to able to output the write004 TextFormat which is what the Prometheus Server interprets in order to create its graphs.

@adamgfraser
Copy link
Contributor Author

@atooni Great!

@atooni
Copy link
Member

atooni commented Nov 20, 2020

Specification of the text format : https://prometheus.io/docs/instrumenting/exposition_formats/

@atooni
Copy link
Member

atooni commented Dec 4, 2020

I propose to close this as the PR has been merged

@softinio softinio added good first issue Good for newcomers and removed #ziohackathon labels Dec 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants