Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created September 7, 2020 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/7323ef8969bfeb40929b0d1205518642 to your computer and use it in GitHub Desktop.
Save velotiotech/7323ef8969bfeb40929b0d1205518642 to your computer and use it in GitHub Desktop.
prometheus:
url: http://prometheus-server
port: 0
image:
tag: latest
rules:
custom:
- seriesQuery: 'container_network_receive_packets_total{namespace!="",pod!=""}'
resources:
overrides:
namespace: {resource: "namespace"}
pod: {resource: "pod"}
name:
matches: "container_network_receive_packets_total"
as: "packets_in"
metricsQuery: <<.Series>>{<<.LabelMatchers>>}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment