Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - Snapshot age alerting #956

Open
Drakokorian opened this issue Jul 29, 2024 · 4 comments
Open

Feature request - Snapshot age alerting #956

Drakokorian opened this issue Jul 29, 2024 · 4 comments

Comments

@Drakokorian
Copy link

Drakokorian commented Jul 29, 2024

If you remove a threshold i.e slow queries/any setting from the config file from the server to be monitored, it should not alert on snapchat age for that server. While you can change the root settings to ignore for the instance doing it for 150 servers is time consuming, plus you may change that setting in the future to enable it.

Feature request is: checking to see if the setting is enabled for that server then alert or not on it.

@DavidWiseman DavidWiseman changed the title Feature request Feature request - Snapshot age alerting Jul 29, 2024
@DavidWiseman
Copy link
Collaborator

DavidWiseman commented Jul 29, 2024

At the moment the repository databases doesn't know that the collection has been disabled. It would make sense to send this information and disable it automatically.

As a workaround, you can run a query similar to the one below:

DELETE dbo.CollectionDates
WHERE Reference  IN('SlowQueries','SlowQueriesStats')
AND SnapshotDate < DATEADD(mi,-1440,GETUTCDATE())

This will remove the last collection information for SlowQueries for instances that haven't updated in one day. This will make it like the collection was never enabled and it won't alert on it anymore. You can adjust the threshold and Reference as required.

Alternative workaround:
The threshold information is stored in the CollectionDatesThreshold table so writing a script to update that table is another option. A NULL Warning/Critical threshold can be used to disable. The InstanceID comes from the dbo.Instances table.

@Drakokorian
Copy link
Author

This would also be true for the updating the connection ID in the config if updated it counts as new server rather than updating the current one.

@DavidWiseman
Copy link
Collaborator

The ConnectionID should be fixed for the life of the instance. It's set to @@SERVERNAME but you can override this to something unique as required in the config. If you just want to change how it appears in the UI, you can configure a display name in the GUI.

If you change the ConnectionID it will become a new instance unless you change the ConnectionID in the repository database before restarting the service to pick up the change.

There wouldn't be a way to know the difference between changing the ConnectionID for an existing instance or deleting the old connection and adding a new one. I'm not sure if we can handle this. It should be possible to send the schedule information back to the repository though and use this to exclude snapshot age alerts where a collection has become disabled.

@Drakokorian
Copy link
Author

That makes sense, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants