Softwr

Software · head to head

Loki vs CloudWatch

Loki logo

Loki

Software

Like Prometheus but for Logs

From
Free
Rated
-
CloudWatch logo

CloudWatch

Software

AWS Monitoring and Observability

From
Free
Rated
-

The short version

  • Each has a real cost: Loki the Grafana Cloud free tier caps log ingestion at 50 GB a month with 14 day retention; CloudWatch the free tier covers 5 GB of log ingestion and 10 custom metrics a month, after which log ingestion is $0.50 per GB from 5 to 30 GB
  • They diverge on capability: Loki covers Label-based indexing, CloudWatch covers Metrics collection.

Where they differ

Only the attributes on which Loki and CloudWatch actually diverge.

Attributes where Loki and CloudWatch differ
AttributeLokiCloudWatch
Pricing modelopen-sourceusage-based
Founded20142006

Identical on both: starting price (Free), free tier (Yes), platforms (Web, Api), user rating (Not yet rated), category (Unknown).

What each one covers

Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Loki

  • Label-based indexing
  • Real-time log streaming
  • LogQL query language

Only in CloudWatch

  • Metrics collection
  • Dashboards
  • Alarms and notifications

Both cover

  • Log aggregation
  • API
  • Webhooks
  • REST
  • Web support
  • Api support

What people use each for

The jobs each tool is most often brought in to do.

Loki

  • Aggregating application and infrastructure logs with label based indexingnot CloudWatch
  • Querying logs alongside metrics in Grafananot CloudWatch

CloudWatch

  • Metrics and log collection for AWS workloadsnot Loki
  • Alarming on thresholds across AWS servicesnot Loki
  • Querying logs with Logs Insightsnot Loki
  • Live tailing logs during an incidentnot Loki
  • Distributed tracing alongside X-Raynot Loki

Where each one falls short

Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Loki

  • The Grafana Cloud free tier caps log ingestion at 50 GB a month with 14 day retention
  • Paid log pricing is split across three separate meters, at $0.050 per GB processed, $0.400 per GB written and $0.100 per GB retained
  • Retaining logs is billed separately from ingesting them, so keeping data costs on an ongoing basis rather than once
  • The Pro plan carries a $19 a month platform fee before any usage charges

CloudWatch

  • The free tier covers 5 GB of log ingestion and 10 custom metrics a month, after which log ingestion is $0.50 per GB from 5 to 30 GB
  • Custom metrics are $0.30 each for the first 10,000, so instrumenting broadly gets expensive before volume discounts apply
  • Each custom dashboard beyond the free three is $3 a month
  • Alarms are billed at $0.10 per alarm metric a month, with high-resolution alarms costing more
  • Log storage beyond the free 5 GB is $0.03 per GB per month on top of the ingestion charge

Pricing, plan by plan

Loki

Free
  • FreeFree
    • Log aggregation
    • Label-based indexing
    • Real-time log streaming

CloudWatch

Free
  • FreeFree
    • Metrics collection
    • Log aggregation
    • Dashboards

Which should you pick?

Choose Loki if

  • You need label-based indexing.
  • You want to start without paying.
  • You work on Web, Api.
  • You also want real-time log streaming.

Choose CloudWatch if

  • You need metrics collection.
  • You want to start without paying.
  • You work on Web, Api.
  • You also want dashboards.

Questions people ask

Is Loki or CloudWatch better?
Neither clearly leads. Loki starts at Free and CloudWatch at Free, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
Which is cheaper, Loki or CloudWatch?
Loki starts at Free and CloudWatch at Free.
Does Loki or CloudWatch run on more platforms?
Both run on Web, Api, so platform support will not decide this one for you.
Can I use Loki for free?
Both have a free tier, so you can try either at no cost before committing.
What is Loki best used for?
Loki is most often used for aggregating application and infrastructure logs with label based indexing, querying logs alongside metrics in grafana. Of those, aggregating application and infrastructure logs with label based indexing and querying logs alongside metrics in grafana are not what CloudWatch is typically brought in for.
What can Loki do that CloudWatch cannot?
Loki covers Label-based indexing, Real-time log streaming, LogQL query language. CloudWatch covers Metrics collection, Dashboards, Alarms and notifications. Both handle Log aggregation, API, Webhooks, REST.

Related pages

Other head to heads