Skip to content

Commit

Permalink
(WIP) add alert_payloads counter
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Apr 26, 2024
1 parent 124c0aa commit 6cc6ad3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gnocpush/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

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

0 comments on commit 6cc6ad3

Please sign in to comment.