Skip to content

Commit 38d36f6

Browse files
committed
fix(grafana): add default values
1 parent 08876b1 commit 38d36f6

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

app/models/grafana/alert_managers_models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ class BasicAuth(BaseModel):
77

88

99
class AlertManagerInput(BaseModel):
10-
name:str
11-
url:str
12-
uid:str
13-
implementation:str
10+
name:str = "Alertmanager"
11+
url:str = "http://localhost:9093"
12+
uid:str = "alertmanager"
13+
implementation:str
1414

1515
handleGrafanaManagedAlerts:bool = True
1616
editable: bool = True

app/models/grafana/elastcsearch_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55

66
class ElasticSearchInput(BaseModel):
7-
name:str
8-
url:str
7+
name:str = "elasticsearch-v7-filebeat"
8+
url:str = "http://localhost:9200"
99
editable: bool = True
1010
index:str = "[filebeat-]YYYY.MM.DD"
1111
interval:str = "Daily"

app/models/grafana/loki_models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ class BasicAuth(BaseModel):
66
basicAuthPassword:str
77

88
class LokiInput(BaseModel):
9-
name:str
10-
uid:str ="loki"
11-
url:str
9+
name:str = "Loki"
10+
uid:str = "loki"
11+
url:str = "http://localhost:3100"
1212
editable: bool = True
1313
timeout:int = 60
1414
maxLines:int = 1000

0 commit comments

Comments
 (0)