Skip to content

Commit

Permalink
refactor: default values for SPEEDER_INFLUXDB_ORG and SPEEDER_INFLUXD…
Browse files Browse the repository at this point in the history
…B_BUCKET
  • Loading branch information
dbrennand committed Sep 6, 2023
1 parent 991b193 commit d7ee498
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions speeder.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
SPEEDER_INFLUXDB_HOST = os.environ.get("SPEEDER_INFLUXDB_HOST", "influxdb")
SPEEDER_INFLUXDB_PORT = int(os.environ.get("SPEEDER_INFLUXDB_PORT", 8086))
SPEEDER_INFLUXDB_TOKEN = os.environ.get("SPEEDER_INFLUXDB_TOKEN", "root")
SPEEDER_INFLUXDB_ORG = os.environ.get("SPEEDER_INFLUXDB_ORG", "internet_speed")
SPEEDER_INFLUXDB_BUCKET = os.environ.get("SPEEDER_INFLUXDB_BUCKET", "internet_speed")
SPEEDER_INFLUXDB_ORG = os.environ.get("SPEEDER_INFLUXDB_ORG", "speeder")
SPEEDER_INFLUXDB_BUCKET = os.environ.get("SPEEDER_INFLUXDB_BUCKET", "speeder")

# Check environment variable has not been provided
if not SPEEDER_SPEEDTEST_SERVER_ID:
Expand Down Expand Up @@ -99,7 +99,7 @@
with client.write_api(write_options=SYNCHRONOUS) as write_api:
record = [
{
"measurement": "internet_speed",
"measurement": "speeder",
"tags": {
"server_name": json_result[0]["server"]["name"],
"server_url": json_result[0]["server"]["url"],
Expand Down

0 comments on commit d7ee498

Please sign in to comment.