You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@streampipes.apache.org by "kruscho (via GitHub)" <gi...@apache.org> on 2025/11/17 20:57:10 UTC
[D] Monitoring Adapters
GitHub user kruscho created a discussion: Monitoring Adapters
Hi,
i have played around with the opportunities to monitor some components (using prom+grafana). For pipelines it is quite easy on a certain level, but I did not find any metrics for adapters. Can someone give me a hint? Furthermore, is it possible to also monitor the throughput of adapters/pipelines?
GitHub link: https://github.com/apache/streampipes/discussions/3936
----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org
Re: [D] Monitoring Adapters
Posted by "tenthe (via GitHub)" <gi...@apache.org>.
GitHub user tenthe added a comment to the discussion: Monitoring Adapters
Hi @kruscho,
I fully agree, extending the metrics you described makes a lot of sense.
However, calculating throughput for all adapters might be challenging. For broker-based adapters this is feasible, but for pull-based adapters it’s unclear how throughput should be defined, since we don’t have actual incoming events. Maybe we can define a sucessfull read (`pull`) as an incoming event?
I assume the core idea behind this feature is to detect when a data source stops providing data. That would indeed be valuable, but I’m not yet sure what the best way to model this would be.
One option might be to introduce a “data source health” signal, but this would need to be implemented individually for each adapter.
Another open question is how to define abnormal behavior. For example, machines being turned off is perfectly normal, and users typically don’t want to receive alerts in those cases. However, if a machine is turned on and the OPC UA server, for instance, stops sending data, then we do want to trigger a notification.
Overall, I'm still not sure what the best solution might look like. These are just a few initial thoughts. What do you think?
GitHub link: https://github.com/apache/streampipes/discussions/3936#discussioncomment-15058632
----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org
Re: [D] Monitoring Adapters
Posted by "kruscho (via GitHub)" <gi...@apache.org>.
GitHub user kruscho added a comment to the discussion: Monitoring Adapters
I see. It would be nice to have the same metrics like the at pipelines:
* How many adapters do i have
* How many adapters are running
* How many adapters are stopped
* How many adapters do have a failure
Furthermore, a throughput for each adapter would be nice. On that basis we can see, if the adapter is fine, but there is no data incoming -> sending a notification. Or maybe too many data are published -> sending a notification
GitHub link: https://github.com/apache/streampipes/discussions/3936#discussioncomment-15039037
----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org
Re: [D] Monitoring Adapters
Posted by "tenthe (via GitHub)" <gi...@apache.org>.
GitHub user tenthe added a comment to the discussion: Monitoring Adapters
Hi @kruscho,
did you enable the Prometheus endpoint in the backend?
To do this, set the environment variable `SP_SETUP_PROMETHEUS_ENDPOINT=true` in the backend.
Once enabled, you can access the metrics via a GET request at:
`http://server-name.com/streampipes-backend/actuator/prometheus`
You should see the metrics for the adapters there.
Is this what you were looking for?
GitHub link: https://github.com/apache/streampipes/discussions/3936#discussioncomment-15028761
----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org
Re: [D] Monitoring Adapters
Posted by "kruscho (via GitHub)" <gi...@apache.org>.
GitHub user kruscho added a comment to the discussion: Monitoring Adapters
Hi @tenthe,
maybe I was thinking too simply. We already know the number of events per adapter. By having this number + adaptername available through prometheus , we can have a closer look on the behavior of adapters.
I completely agree with you regarding the abnormal behavior. It is hard to detect, if zero events are "normal" or a drift. Maybe we can throw some AI on it, to detect normal and anormal manner :-). My idea was more like knowing the time period when an adapters sends nothing (and going a posteriori in a debugging). Something like a calendar, where we can manage planned downtime could be a kind of a solution. But to be honest, i don´t think, this calendar will be maintained really good.
Personally, I would be happy to have the same status like pipelines available in prometheus. Maybe next step would be to have eventnumber (as throughput) and adaptername (or element) available. I would let the users/admins decide to define (a)normal metrics
GitHub link: https://github.com/apache/streampipes/discussions/3936#discussioncomment-15066240
----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org
Re: [D] Monitoring Adapters
Posted by "tenthe (via GitHub)" <gi...@apache.org>.
GitHub user tenthe added a comment to the discussion: Monitoring Adapters
Okay, yes that’s the endpoint I meant.
Regarding the adapters, I believe this is currently the only metric we have. It lets you see when an adapter has stopped sending events.
Are there any other metrics you would expect or need?
GitHub link: https://github.com/apache/streampipes/discussions/3936#discussioncomment-15038879
----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org
Re: [D] Monitoring Adapters
Posted by "kruscho (via GitHub)" <gi...@apache.org>.
GitHub user kruscho added a comment to the discussion: Monitoring Adapters
Hi @tenthe,
thanks for your answer.
Yes, the env is already defined and i successfully get data for pipelines (i just connected the backend service in prometheus and not the extension service). I listed all the metrics via `http://localhost:9090/api/v1/label/__name__/values`, but i just find one metric regarding the adapters ("adapter_events_published_total"). Or is there another way to monitor adapters. Maybe the metrics "element_input_total_data"?
GitHub link: https://github.com/apache/streampipes/discussions/3936#discussioncomment-15029905
----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org