liveBook · Manning

Push model

As explained in Logs and Telemetry

A push model is a data-delivery pattern in which the source sends data to a receiving service when the data becomes available.

A push model delivers data when it becomes available: the source sends it to a central service, or an open server-initiated connection carries data back as events occur. This avoids polling calls that return no new data and can reduce delay before critical metrics are noticed. section 5.6.4

Operational choices shape how the pattern is used:

  • Use streaming or push delivery when metric freshness matters more than the efficiency of periodic polling. section 5.6.4
  • Use Prometheus remote write to send metrics to Prometheus-compatible time-series systems, including Thanos, Grafana Cloud, New Relic, and Logz.io. section 5.6.4
  • Configure separate outputs when the same data must reach local and cloud-hosted services. section 5.6.4

Fluent Bit remote output

A Fluent Bit configuration collects internal metrics every five seconds and sends them through prometheus_remote_write. A cloud destination uses HTTPS, credentials, and an API path; a local Prometheus destination uses its write endpoint and port 9090. section 5.6.4

Listing 5.8 Prometheus writer: prometheus-remote-output.conf
[SERVICE]
  flush 5
  log_level trace

[INPUT]
    name fluentbit_metrics
    tag internal_metrics
    scrape_interval 5

[OUTPUT]
    name prometheus_remote_write    #1
    match *
    host prometheus-prod-05-gb-south-0.grafana.net    #2
    uri /api/prom/push   #3
    port 443 
    tls on
    log_response_payload on
    add_label fluentbit cloud
    http_user ${my-userid}           #4
    http_passwd ${my-password}


[OUTPUT]
    name prometheus_remote_write   
    match *
    host 192.168.0.205  #5
    uri  /api/v1/write     #6
    port 9090     #7
    tls off  
    log_response_payload on    #8
    add_label  fluentbit local       #9

Inspect the complete configuration, including flush timing, TLS settings, authentication, endpoints, and labels. section 5.6.4

How Logs and Telemetry covers it

How deep it goes
Explains polling trade-offs, connection behavior, remote-write standardization, and Fluent Bit endpoint configuration.
Examples
Demonstrates local Prometheus and Grafana Cloud outputs using Fluent Bit metrics, TLS, credentials, endpoints, and labels.
What it assumes
Assumes familiarity with metrics delivery and named observability services while explaining the push-versus-polling distinction directly.
What you can do after
Operate Fluent Bit remote-write outputs for local or cloud metric destinations.
How it connects
Connects push delivery with polling, streaming, Prometheus remote write, Fluent Bit, and time-series data stores.

Also explained in

Compare how 4 books explain push model →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Logs and Telemetry. The section links point to the parts of the book it draws on.