diff --git a/README.md b/README.md index a38e79b..ea07907 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,16 @@ This is a simple example of monitoring ec2 network metrics that are not being presented via ethtool. For more information see [Monitoring EC2 Network Performance ENA](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-network-performance-ena.html). + +## Rebuild + +``` +helm package helm/ +``` + +## Install + +``` +helm repo add ec2nm https://jfreeland.github.io/ec2-network-monitor +helm install -n kube-system ec2-network-monitor ec2nm/ec2-network-monitor +``` diff --git a/cmd/ec2nm/main.go b/cmd/ec2nm/main.go index c55f191..82221c1 100644 --- a/cmd/ec2nm/main.go +++ b/cmd/ec2nm/main.go @@ -14,7 +14,7 @@ func main() { statsHost := flag.String("host", "", "the datadog agent host and port") flag.Parse() - statsd, err := statsd.New(*statsHost, statsd.WithNamespace("aws.ec2.")) + statsd, err := statsd.New(*statsHost, statsd.WithNamespace("aws.ec2.ethtool")) if err != nil { log.Fatalf("err: %v\n", err) } diff --git a/ec2-network-monitor-0.1.0.tgz b/ec2-network-monitor-0.1.0.tgz index c9c37f1..e04df95 100644 Binary files a/ec2-network-monitor-0.1.0.tgz and b/ec2-network-monitor-0.1.0.tgz differ diff --git a/helm/templates/daemonset.yaml b/helm/templates/daemonset.yaml index d80cc77..0b7fd92 100644 --- a/helm/templates/daemonset.yaml +++ b/helm/templates/daemonset.yaml @@ -15,7 +15,7 @@ spec: spec: containers: - name: ec2-network-monitor - image: "public.ecr.aws/z1r6e3l2/jfreeland/ec2-network-monitor/ec2nm:latest" + image: "public.ecr.aws/z1r6e3l2/jfreeland/ec2-network-monitor:latest" env: - name: DD_AGENT_HOST valueFrom: @@ -33,7 +33,7 @@ spec: imagePullPolicy: IfNotPresent resources: limits: - memory: 50Mi + memory: 5Mi requests: - cpu: 50M - memory: 50Mi + cpu: 5M + memory: 5Mi