add /metrics endpoint for timeseries database integration
reidlai opened this issue · 4 comments
Current behavior:
Found project-flogo/services have flow-state and flow-store. Based on my understanding, we need to call api in order populate data into these two service. For flogo-state, i am expecting this will integrate with timeseries database likei InfluxDB or Prometheus.
Expected behavior:
Should implmenet /metrics endpoint for each flogo app by default. The metrics should show simple success or failure counts for triggers and each activities in flow or stream.
What is the motivation / use case for changing the behavior?
Developer can focus on code and SRE can just set up scrape or poll for statistics collection without coding effort
If flow-state server goes down, all apps depends on flow-state server will lost all statistics.
Additional information you deem important (e.g. I need this tomorrow):
I understand I can add actions and flows to provide the metrics. But it will be tedious if having many microservice app.
@reidlai: What @lixingwang meant was to write something like https://github.com/TIBCOSoftware/flogo/wiki/Publish-and-Subscribe-Audit-Events. You can write this custom listener and include it in your app binary. It will work for any microservice. By the way, this feature is supported OOTB in enterprise version of Flogo.
@reidlai: What @lixingwang meant was to write something like https://github.com/TIBCOSoftware/flogo/wiki/Publish-and-Subscribe-Audit-Events. You can write this custom listener and include it in your app binary. It will work for any microservice. By the way, this feature is supported OOTB in enterprise version of Flogo.
Let me take a look and thanks.