Skip to content

Instantly share code, notes, and snippets.

@alces
Created November 6, 2019 05:13
Show Gist options
  • Save alces/447fced40f952f5a2c1f29adcdfd1724 to your computer and use it in GitHub Desktop.
Save alces/447fced40f952f5a2c1f29adcdfd1724 to your computer and use it in GitHub Desktop.
Prometheus expression summarizing message count for a given Kafka topic by day
sum(increase(kafka_producer_topic_metrics_record_send_total{topic = "$my_topic_name"}[1d]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment