Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created September 7, 2020 10:28
Embed
What would you like to do?
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