Skip to content

Commit

Permalink
fix(grafana): add default values
Browse files Browse the repository at this point in the history
  • Loading branch information
abolfazl8131 committed Dec 16, 2024
1 parent 08876b1 commit 38d36f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions app/models/grafana/alert_managers_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ class BasicAuth(BaseModel):


class AlertManagerInput(BaseModel):
name:str
url:str
uid:str
implementation:str
name:str = "Alertmanager"
url:str = "http://localhost:9093"
uid:str = "alertmanager"
implementation:str

handleGrafanaManagedAlerts:bool = True
editable: bool = True
Expand Down
4 changes: 2 additions & 2 deletions app/models/grafana/elastcsearch_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@


class ElasticSearchInput(BaseModel):
name:str
url:str
name:str = "elasticsearch-v7-filebeat"
url:str = "http://localhost:9200"
editable: bool = True
index:str = "[filebeat-]YYYY.MM.DD"
interval:str = "Daily"
Expand Down
6 changes: 3 additions & 3 deletions app/models/grafana/loki_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ class BasicAuth(BaseModel):
basicAuthPassword:str

class LokiInput(BaseModel):
name:str
uid:str ="loki"
url:str
name:str = "Loki"
uid:str = "loki"
url:str = "http://localhost:3100"
editable: bool = True
timeout:int = 60
maxLines:int = 1000
Expand Down

0 comments on commit 38d36f6

Please sign in to comment.