Skip to content

Commit

Permalink
Merge pull request #13 from ComposableFi/v0.1.3
Browse files Browse the repository at this point in the history
V0.1.3
  • Loading branch information
Ciejo authored Jun 18, 2024
2 parents 67c8470 + 7a139fa commit 0d11912
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (c *SuccintCollector) Collect(ch chan<- prometheus.Metric) {

level.Debug(c.logger).Log("msg", "Started metrics collection")

succintUrl := fmt.Sprintf("https://alpha.succinct.xyz/api/proofs?project=%s&limit=0&offset=0&status=all", *succintProject)
succintUrl := fmt.Sprintf("https://alpha.succinct.xyz/api/proofs?project=%s&limit=10&offset=0&status=all", *succintProject)
level.Debug(c.logger).Log("msg", "Calling url: ", "succintUrl", succintUrl)
response, err := http.Get(succintUrl)
if err != nil {
Expand All @@ -77,11 +77,10 @@ func (c *SuccintCollector) Collect(ch chan<- prometheus.Metric) {
var proofs []SuccintProof
if err := json.Unmarshal(body, &proofs); err != nil {
level.Error(c.logger).Log("msg", "Error parsing JSON", "err", err)
fmt.Printf("%+v\n", proofs)
return
}

fmt.Printf("%+v\n", proofs)

c.processMetrics(proofs, ch)

level.Debug(c.logger).Log("msg", "Stopped metrics collection")
Expand Down

0 comments on commit 0d11912

Please sign in to comment.