Push Vs Pull #40
Replies: 1 comment 2 replies
-
I think this is an interesting thing to consider. The main challenge I see with doing anything that isn't Prometheus-related is that right now we're writing PromQL queries to help you understand the data, and I think that's at least half the value of Autometrics. If we were going to push data somewhere else, we'd probably want to generate some other kinds of queries for you, but that brings up the question of what other query languages would be worth supporting. That said, pushing metrics is definitely useful to explore for the Typescript implementation to support client-side metrics. Maybe for the moment it would be most useful to add an example to each repo that shows how you would use the OTel library to push the metrics to the collector? |
Beta Was this translation helpful? Give feedback.
-
Currently the metrics are exposed via HTTP to be scraped, which is the Prometheus model. However the OTEL SDKs also support pushing metrics to an endpoint, commonly the OTEL collector, which does have advantages in certain scenarios such as in secure networks. In discussion autometrics-dev/autometrics-shared#32 there's talk of creating a default option for creating the http endpoint, which I agree with, but I wonder about push support?
One option is to just use the OTEL collector to scrape the endpoint and send data wherever, which is a perfectly reasonable solution
Beta Was this translation helpful? Give feedback.
All reactions