Sad to hear that, but thanks for clarification.

Regards, Alexey

On Thu, Dec 3, 2020 at 10:37 PM Bjoern Rabenstein <[email protected]>
wrote:

> On 02.12.20 02:15, Alexey Lesovsky wrote:
> > I have metrics received from collector over channel like "chan<-
> > prometheus.Metric".
> > The 'prometheus.Metric' is an interface with Desc and Write methods from
> '
> > github.com/prometheus/client_golang/prometheus' package.
> >
> > I'd like to send these metrics into another Prometheus using its remote
> write
> > protocol. My question is how to convert received 'prometheus.Metric' to
> > 'prompb.Timeseries'
> > I tried to play with Write method but had no success.
>
> Those are really very different things. The types in the
> github.com/prometheus/client_golang/prometheus package are for
> instrumenting code and expose metrics to be scraped by the Prometheus
> servers or other scrapers understanding the Prometheus exposition
> format.
>
> The Prometheus remote write protocol is a completely different beast
> and used by the Prometheus server to send metrics to remote storage.
>
> The two even have a very different data model: Structured and typed
> metrics in the former case, just flat timestamped floating point
> numbers in the latter. Single-point-in-time representation in the
> former case, a notion of time series in the latter.
>
> --
> Björn Rabenstein
> [PGP-ID] 0x851C3DA17D748D03
> [email] [email protected]
>


-- 
С уважением Алексей В. Лесовский

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/CAGnetYfGFMn8w2%2BJCqWserk46KWVcvV7n4zB3e9ACrYWsQ1K9A%40mail.gmail.com.

Reply via email to