Add notification queue metrics (#16026)

This commit is contained in:
Klaus Post
2022-11-09 01:36:47 +01:00
committed by GitHub
parent 1b0dfb0f58
commit bbc312fce6
16 changed files with 217 additions and 50 deletions

View File

@@ -167,6 +167,11 @@ func (target *ElasticsearchTarget) ID() event.TargetID {
return target.id
}
// Store returns any underlying store if set.
func (target *ElasticsearchTarget) Store() event.TargetStore {
return target.store
}
// IsActive - Return true if target is up and active
func (target *ElasticsearchTarget) IsActive() (bool, error) {
if err := target.init(); err != nil {