File tree 8 files changed +34
-0
lines changed
8 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,13 @@ files:
70
70
and can be useful to set a custom hostname when connecting to a remote database through a proxy.
71
71
value :
72
72
type : string
73
+ - name : exclude_hostname
74
+ description : |
75
+ Omit the hostname from tags and events. This is useful when the database host is not monitored by an agent.
76
+ value :
77
+ type : boolean
78
+ example : false
79
+ default : false
73
80
- name : database_identifier
74
81
description : |
75
82
Controls how the database is identified. The default value is the resolved hostname for the instance,
Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ def instance_empty_default_hostname():
32
32
return False
33
33
34
34
35
+ def instance_exclude_hostname ():
36
+ return False
37
+
38
+
35
39
def instance_log_unobfuscated_plans ():
36
40
return False
37
41
Original file line number Diff line number Diff line change @@ -224,6 +224,7 @@ class InstanceConfig(BaseModel):
224
224
defaults_file : Optional [str ] = None
225
225
disable_generic_tags : Optional [bool ] = None
226
226
empty_default_hostname : Optional [bool ] = None
227
+ exclude_hostname : Optional [bool ] = None
227
228
gcp : Optional [Gcp ] = None
228
229
host : Optional [str ] = None
229
230
index_metrics : Optional [IndexMetrics ] = None
Original file line number Diff line number Diff line change @@ -64,6 +64,11 @@ instances:
64
64
#
65
65
# reported_hostname: <REPORTED_HOSTNAME>
66
66
67
+ ## @param exclude_hostname - boolean - optional - default: false
68
+ ## Omit the hostname from tags and events. This is useful when the database host is not monitored by an agent.
69
+ #
70
+ # exclude_hostname: false
71
+
67
72
## Controls how the database is identified. The default value is the resolved hostname for the instance,
68
73
## which respects the `reported_hostname` option.
69
74
##
Original file line number Diff line number Diff line change @@ -51,6 +51,13 @@ files:
51
51
and can be useful to set a custom hostname when connecting to a remote database through a proxy.
52
52
value :
53
53
type : string
54
+ - name : exclude_hostname
55
+ description : |
56
+ Omit the hostname from tags and events. This is useful when the database host is not monitored by an agent.
57
+ value :
58
+ type : boolean
59
+ example : false
60
+ default : false
54
61
- name : database_identifier
55
62
description : |
56
63
Controls how the database is identified. The default value is the resolved hostname for the instance,
Original file line number Diff line number Diff line change @@ -84,6 +84,10 @@ def instance_empty_default_hostname():
84
84
return False
85
85
86
86
87
+ def instance_exclude_hostname ():
88
+ return False
89
+
90
+
87
91
def instance_idle_connection_timeout ():
88
92
return 60000
89
93
Original file line number Diff line number Diff line change @@ -257,6 +257,7 @@ class InstanceConfig(BaseModel):
257
257
dbstrict : Optional [bool ] = None
258
258
disable_generic_tags : Optional [bool ] = None
259
259
empty_default_hostname : Optional [bool ] = None
260
+ exclude_hostname : Optional [bool ] = None
260
261
gcp : Optional [Gcp ] = None
261
262
host : str
262
263
idle_connection_timeout : Optional [int ] = None
Original file line number Diff line number Diff line change @@ -64,6 +64,11 @@ instances:
64
64
#
65
65
# reported_hostname: <REPORTED_HOSTNAME>
66
66
67
+ ## @param exclude_hostname - boolean - optional - default: false
68
+ ## Omit the hostname from tags and events. This is useful when the database host is not monitored by an agent.
69
+ #
70
+ # exclude_hostname: false
71
+
67
72
## Controls how the database is identified. The default value is the resolved hostname for the instance,
68
73
## which respects the `reported_hostname` option.
69
74
##
You can’t perform that action at this time.
0 commit comments