Key takeaway
- Real-time observability with Apache Pinot: how Loki, Kafka, Flink, Pinot, Spark, Iceberg, Dremio and Grafana fit together, with benefits and first steps.
Observability with Apache Pinot is an architecture in which logs and events stream into Pinot, a real-time analytics datastore, so engineers can query system behaviour within moments of it happening and alert on it, while older data is kept in a separate historical path. It suits teams whose telemetry volume or query concurrency has outgrown simple log search.
This guide is for platform, SRE and data engineers who run cloud-native applications and microservices at scale. It explains observability needs, what Pinot is, a reference pipeline with Loki, Kafka, Flink, Pinot, Spark, Iceberg, Dremio and Grafana, and where to start.
What is Apache Pinot?
The Apache Pinot documentation describes it as a real-time distributed OLAP datastore purpose-built for low-latency, high-throughput analytics
. It is a columnar data store that uses several indexing and pre-aggregation techniques. Streaming data can be queried right after ingestion, with Apache Kafka among the supported sources, and the docs say Pinot scales up and out. The docs name internal dashboards, anomaly detection and ad hoc data exploration as example uses.
Why does observability need real-time analytics?
Distributed systems produce logs, metrics and traces in large volume, at high speed and in many formats, and they change constantly as services deploy and scale. Fixed dashboards and static thresholds struggle to keep up. Real-time analytics lets you ask new questions of fresh data, such as which service, version or region a spike in errors comes from, and so find faults earlier.
How does Pinot fit into an observability stack?
Pinot is the fast analytical layer, not the whole stack. Something must collect logs, something must move and transform them, and something must show results. The table sets out a common arrangement.
| Layer | Component | Role |
|---|---|---|
| Collection | Grafana Loki | Aggregates logs and indexes labels, not full content |
| Transport | Apache Kafka | Buffers and streams events to consumers |
| Stream processing | Apache Flink | Parses, enriches and filters events in flight |
| Real-time analytics | Apache Pinot | Serves low-latency queries on fresh data |
| Historical processing | Apache Spark and Apache Iceberg | Batch processing and table storage for older data |
| Historical queries | Dremio | Queries the lake tables |
| Visualisation | Grafana | Dashboards and alerts across both paths |
The Loki documentation says Loki does not index the contents of the logs, but only indexes metadata
, and that it integrates with Grafana, Mimir and Tempo as an observability stack. That keeps collection cheap, which is why heavier analytics sit downstream in Pinot.
How is the pipeline built, step by step?
- Collect: agents ship logs from services to Loki, with sensible labels such as service, environment and version.
- Stream: publish log events to Kafka topics so more than one consumer can read them. Plan Kafka access control early; see Apache Kafka security.
- Process: use Flink to parse, enrich and aggregate events. See Apache Flink security for the threat model.
- Analyse: ingest the processed stream into Pinot tables and build the queries that feed alerts and Grafana dashboards.
- Retain: write the same data to long-term storage with Spark into Iceberg tables. See Apache Spark and Spark optimisation.
- Query history: use Dremio with Grafana to investigate older incidents and trends.
Coordination services such as Apache ZooKeeper and shared platforms such as Hadoop (Apache Hadoop security) may sit underneath, depending on your deployment.
What are the benefits and trade-offs?
| Benefit | Trade-off to plan for |
|---|---|
| Fresh data is queryable soon after ingestion, so alerts and investigation start sooner | More moving parts to run, secure and upgrade |
| Separate real-time and historical paths let each be tuned for its job | Two paths need consistent schemas and clear retention rules |
| Analytical queries can power dashboards for many users | Table design, indexing and capacity need care in Pinot |
| Open components avoid dependence on one proprietary tool | Your team owns integration and on-call for the stack |
Related reading: real-time data analysis, real-time streaming applications with Apache Spark, real-time data integration and data processing in healthcare.
How do AI agents change observability?
Today an engineer reads an alert, opens dashboards and searches logs. An AI agent can do the first pass: read the alert, query Pinot for related errors, compare against a recent deploy and propose a cause, then hand the finding to a person. Safe adoption starts read-only, with the agent allowed to query and recommend but not to change systems; see AI SRE for data platforms: why read-only comes first. Every query and recommendation should be logged. XenonStack's ElixirData is a Context OS for governed data and decisions.
What should you do first?
- List the questions responders ask most often during incidents.
- Choose one service and one log stream as a pilot.
- Define the schema and the labels before ingesting anything.
- Stand up the real-time path first, then add the historical path.
- Set retention, access and cost limits for each layer.
- For architecture help, use Contact Us or Talk To Specialist.
To map one decision your operations agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.
Real-Time Data Intake
Pinot empowers fast data ingestion from multiple sources, namely streaming systems such as Apache Kafka and batch systems such as Hadoop.
Columnar Storage
The flexibility of storing data in columns rather than in rows helps you retrieve and analyze data more quickly.
Fast Querying
Pinot provides quick query results, making it very important for real-time analysis.
Scalability
The distributed design can facilitate horizontal expansion to accommodate more big data and queries.
Next Steps with Apache Pinot
Talk to our experts about implementing compound AI systems. Discover how industries and different departments use Decision Intelligence to become decision-centric. Learn how AI, including Real-time Observability with Apache Pinot for Failures, automates and optimizes IT support and operations, improving efficiency and responsiveness.
Frequently asked questions
What is Apache Pinot used for in observability?
It stores streaming telemetry in a columnar format and answers low-latency analytical queries on fresh data, which supports dashboards, alerts and anomaly detection.
Does Pinot replace Loki or Elasticsearch?
Not necessarily. Loki collects and stores logs by indexing labels, while Pinot serves analytical queries on processed data. Many teams use them together, and the right mix depends on your queries.
Why add Kafka and Flink before Pinot?
Kafka buffers and distributes events to several consumers, and Flink parses and enriches them in flight, so Pinot receives clean, query-ready data.
Why keep a separate historical path?
Older data is queried less often and is cheaper to hold in lake tables, such as Iceberg queried through Dremio, while Pinot stays tuned for recent, fast queries.
Can an AI agent act on observability data?
Yes, and the safe starting point is read-only: the agent queries and recommends, a person approves any change, and every step is recorded.
Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.
Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE