posit-dev / posit-dev/ptd

Add azure_natgateway.yaml alert rules for Azure NAT Gateway metrics

Open
#144 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
7
Forks
2
Avg merge
1d 15h
Merged PRs (30d)
3

Description

Azure NAT Gateway metrics (DroppedPackets, SNATConnectionCount, etc.) are currently scraped via prometheus.exporter.azure in Grafana Alloy when public_subnet_cidr is configured, but there are no corresponding Grafana alert rules for these metrics.

The existing natgateway.yaml covers AWS CloudWatch only. Azure NAT Gateway metrics have no alert coverage yet.

Metrics currently scraped:

  • PacketCount
  • ByteCount
  • DroppedPackets
  • TotalConnectionCount
  • SNATConnectionCount

Acceptance criteria:

  • Create azure_natgateway.yaml with alert rules for at minimum DroppedPackets and SNATConnectionCount
  • Add the new file to the _create_alert_configmap list in grafana_alloy.py
  • Add test coverage in test_azure_alert_files.py

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing natgateway.yaml alert rules and the _create_alert_configmap list in grafana_alloy.py. Create azure_natgateway.yaml with rules for at least DroppedPackets and SNATConnectionCount, then add coverage in test_azure_alert_files.py. Done means the new alert file is included in the config map and its tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
grafana
Domain
observability
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.