Skip to content

Commit

Permalink
(WIP) add gnocpush_alert_payloads_received counter
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Apr 29, 2024
1 parent 6008051 commit 1b97577
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnocpush/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@


@app.route('/alerts', methods=['POST'])
@metrics.counter('gnocpush_alert_payloads_received',
'Number of alertmanager payloads received')
def push_endpoint():
# Get the data from the request
data = request.get_json()
Expand Down

0 comments on commit 1b97577

Please sign in to comment.