Skip to content

Commit bdb0673

Browse files
authored
Merge pull request #1708 from jertel/jertel/misc
rtd base os update; import cleanup; revert previous PR change for prom
2 parents 0a40996 + d5b50f7 commit bdb0673

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

.readthedocs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ version: 2
77

88
# Set the version of Python and other tools you might need
99
build:
10-
# Must stay at 22.04 until RTD adds support for 24.04
11-
os: ubuntu-22.04
10+
os: ubuntu-24.04
1211
tools:
13-
python: "3.12"
12+
# Python 3.14 dependent upon https://github.com/readthedocs/readthedocs.org/issues/12523
13+
python: "3.13"
1414

1515
# Build documentation in the docs/ directory with Sphinx
1616
sphinx:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
- Update library: tencentcloud-sdk-python to 3.0.1479 - [#1706](https://github.com/jertel/elastalert2/pull/1706) - @nsano-rururu
2222
- Update library: twilio to 9.8.4 - [#1706](https://github.com/jertel/elastalert2/pull/1706) - @nsano-rururu
2323
- Update build libraries: pylint, pytest, pytest-cov, pytest-xdist, sphinx, tox - [#1706](https://github.com/jertel/elastalert2/pull/1706) - @nsano-rururu
24+
- Update docs build to use Ubuntu 24.40 and Python 3.13 - [#1708](https://github.com/jertel/elastalert2/pull/1708) - @jertel
25+
- Cleanup unused imports - [#1708](https://github.com/jertel/elastalert2/pull/1708) - @jertel
2426

2527
# 2.26.0
2628

elastalert/opensearch_external_url_formatter.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
import boto3
2-
import os
3-
from urllib.parse import parse_qsl, urlencode, urljoin, urlparse, urlsplit, urlunsplit
4-
5-
import requests
6-
from requests import RequestException
7-
from requests.auth import AuthBase, HTTPBasicAuth
8-
9-
from elastalert.auth import RefeshableAWSRequestsAuth
10-
from elastalert.util import EAException
1+
from urllib.parse import urljoin
112

123
class OpensearchExternalUrlFormatter:
134
'''Interface for formatting external Opensearch urls'''

elastalert/prometheus_wrapper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ def metrics_run_rule(self, rule, endtime, starttime=None):
3232
result = None
3333
try:
3434
self.prom_scrapes.labels(rule['name']).inc()
35-
result = self.run_rule(rule, endtime, starttime)
3635
finally:
37-
pass
36+
result = self.run_rule(rule, endtime, starttime)
3837
return result
3938

4039
def metrics_writeback(self, doc_type, body, rule=None, match_body=None):

0 commit comments

Comments
 (0)