Skip to content

Commit f308d7b

Browse files
committed
Revert "Add creation_date metrics (prometheus-community#816)"
This reverts commit ca87f5f.
1 parent e8240bc commit f308d7b

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ Further Information
187187
| elasticsearch_indices_search_query_total | counter | 1 | Total number of queries |
188188
| elasticsearch_indices_segments_count | gauge | 1 | Count of index segments on this node |
189189
| elasticsearch_indices_segments_memory_bytes | gauge | 1 | Current memory size of segments in bytes |
190-
| elasticsearch_indices_settings_creation_timestamp_seconds | gauge | 1 | Timestamp of the index creation in seconds |
191190
| elasticsearch_indices_settings_stats_read_only_indices | gauge | 1 | Count of indices that have read_only_allow_delete=true |
192191
| elasticsearch_indices_settings_total_fields | gauge | | Index setting value for index.mapping.total_fields.limit (total allowable mapped fields in a index) |
193192
| elasticsearch_indices_settings_replicas | gauge | | Index setting value for index.replicas |

collector/indices_settings.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ type IndicesSettings struct {
4343
var (
4444
defaultIndicesTotalFieldsLabels = []string{"index"}
4545
defaultTotalFieldsValue = 1000 //es default configuration for total fields
46-
defaultDateCreation = 0 //es index default creation date
4746
)
4847

4948
type indicesSettingsMetric struct {
@@ -106,21 +105,6 @@ func NewIndicesSettings(logger log.Logger, client *http.Client, url *url.URL) *I
106105
return val
107106
},
108107
},
109-
{
110-
Type: prometheus.GaugeValue,
111-
Desc: prometheus.NewDesc(
112-
prometheus.BuildFQName(namespace, "indices_settings", "creation_timestamp_seconds"),
113-
"index setting creation_date",
114-
defaultIndicesTotalFieldsLabels, nil,
115-
),
116-
Value: func(indexSettings Settings) float64 {
117-
val, err := strconv.ParseFloat(indexSettings.IndexInfo.CreationDate, 64)
118-
if err != nil {
119-
return float64(defaultDateCreation)
120-
}
121-
return val / 1000.0
122-
},
123-
},
124108
},
125109
}
126110
}

collector/indices_settings_response.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ type IndexInfo struct {
3131
Blocks Blocks `json:"blocks"`
3232
Mapping Mapping `json:"mapping"`
3333
NumberOfReplicas string `json:"number_of_replicas"`
34-
CreationDate string `json:"creation_date"`
3534
}
3635

3736
// Blocks defines whether current index has read_only_allow_delete enabled

0 commit comments

Comments
 (0)