Open kennsippell opened 5 months ago
recommend that this ticket split this up into three steps/tasks:
For item 1 above, let's break it down for just the "Users uploaded per instance over time" metric. Let's further assume this is an int
that is ever incrementing. I'd solve it like this:
I'm happy to help with any of these steps! As well, let me know if this isn't the question you were asking - I'm happy to try to answer again ;)
@mrjones-plip thank you.
I am exploring the options you provided above.
Is there a way to directly send these metrics to Prometheus time series database if so are there APIs we can use to send data to ?
@ernestoteo - Prometheus works in a pull model, not a push model. So the target (user man tool) sets up an HTTP endpoint for anyone to use. Then you tell Prometheus to scrape that target.
I'd be happy to pair with you to give a demo of how this works with Watchdog. You could then easily use the watchdog dev environment to add a new scrape target of your local user man tool that has the new HTTP endpoint.
Also wanted to note that @kennsippell suggested we not use a persistent/long lived metrics (step 1 above) and instead just keep the metrics in memory. They'll reset every reboot of the app, which is fine for now.
i'm doing some prometheus related development over in the data ingest repo which might interest you @ernestoteo !