Create and add a p2p middleware adapter to increment monitoring metrics counters via prometheus.
Some of the requirements to close this issue:
--monitoring-port.--disable-monitoring.If there are more requirements discovered in the design, please add them to the issue in a comment or editing this description.
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
__This issue now has a funding of 250.0 DAI (250.0 USD @ $1.0/DAI) attached to it.__
Hey @pfilippi24 great to hear that you're interested! Do you have a rough timeline for completion?
Hi @ceresstation
no real timeline, because I need to start digging through you code before I can give a real estimate. But I have nothing else to do over the weekend (and we got bad weather ahead of us). So should be pretty quick.
Hey @pfilippi24 are you still interested in working on this? If not I'll pass it back to the crowd, thanks :)
Alternatively, is this of interest to you @zachzundel? :)
@ceresstation I am interested!
@leandro-lugaresi Awesome, once you apply to start work on the issue I'll accept you :)
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
__Work has been started__.
These users each claimed they can complete the work by 1Â week, 4Â days from now.
Please review their action plans below:
1) leandro-lugaresi has been approved to start work.
HI! I want to start working on this issue.
I only take an overview of the project but my initial approach is these:
Create a new http server as a service using the flags required on the issue description.
Register the metrics:
Learn more on the Gitcoin Issue Details page.
@leandro-lugaresi Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an âOpenâ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
@prestonvanloon We are using the flag EnableTracingFlag to enable tracing (the default will be disabled) and the monitoring will be enabled by default and the DisableMonitoringFlag will be used.
Why? It's not better to use the same pattern here? Both enable or disable by default and the flags consistent?
I think it's better to have both (tracing and metrics) enabled by default. WDYT?
@leandro-lugaresi That's a great observation.
In my opinion, these services should be disabled by default because they may cause a performance impact.
With that said, if someone actually cared about a high-performance configuration then they could disable the flag. In fact, the author that added EnableTracingFlag originally had the inverse logic and I asked them to deviate (I wasn't aware that it would cause an inconsistency).
Let's make these consistent and enable both by default. Thanks!
@prestonvanloon I am with some doubts about how we will disable the metrics and I want to discuss this with you.
I think in two/three ways:
I am really ok with the first option, all the metrics are built with atomic operations and are really fast. WDYT?
Thanks for investigating these options. I agree that it may not be worth the work at the moment to support a flag. As long as we are not expensively updating metrics then it should be OK.
We should be able to profile this at a later time and determine if we need to disable.
Following the pattern of You Ain't Gonna Need It, let's omit the flag for this for now. It wasn't as straightforward as tracing where tracing provides a no-op and we already know tracing can be expensive.
Thanks!
@leandro-lugaresi did @prestonvanloon's comment provide the proper guidance that you need to complete this ticket? Thanks!
Yes!
I will open a WIP PR tomorrow. I think we can get some metrics but there are some problems that I will discuss in the pull request.
Hi @leandro-lugaresi, how's the WIP PR coming along? Thanks! đ
@mkosowsk Yes, I will work on this issue today and on the weekend!
@leandro-lugaresi just a friendly check-in here, how's this coming along? Thanks!
@leandro-lugaresi Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an âOpenâ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
@leandro-lugaresi Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an âOpenâ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
Yes, I will open the PR today, I just need to finish the bazel files and make some tests with the service running
@leandro-lugaresi Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an âOpenâ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
@leandro-lugaresi Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an âOpenâ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
@leandro-lugaresi due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
Hey @mkosowsk, looks like there's some good discussion going on in #673 -- will snooze the bot for 5 more days. Let me know if you have any questions ! @leandro-lugaresi
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
__Work for 250.0 DAI (250.0 USD @ $1.0/DAI) has been submitted by__:
@ceresstation please take a look at the submitted work:
@prestonvanloon Everything ok with that issue, right?
@ceresstation :point_up:
Hey @leandro-lugaresi sorry for the delay, paying you out now!
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
__The funding of 250.0 DAI (250.0 USD @ $1.0/DAI) attached to this issue has been approved & issued to @leandro-lugaresi.__
Most helpful comment
@leandro-lugaresi That's a great observation.
In my opinion, these services should be disabled by default because they may cause a performance impact.
With that said, if someone actually cared about a high-performance configuration then they could disable the flag. In fact, the author that added EnableTracingFlag originally had the inverse logic and I asked them to deviate (I wasn't aware that it would cause an inconsistency).
Let's make these consistent and enable both by default. Thanks!