Datasentinel Docs
Visit our websiteBlogRelease Notes
  • 👋Welcome
  • 🆓Free Trial
  • 📣Release Notes
  • Getting started
    • Architecture
    • Installation
      • 🌐Platform
      • 🕶️Agent
    • PostgreSQL clusters
      • 🔌Extensions
        • 🔌pg_stat_statements
        • 🔌pg_store_plans
        • 🔌system_stats
        • 🔌pg_buffercache
      • 🕶️Monitoring User
      • ➕Adding Connection
    • FAQs
      • ❓Platform FAQ
      • ❓Agent FAQ
  • Features
    • Key Features
      • 📊Session History
      • 📊Top Queries
      • 📂Top Tables
      • 🔓Lock Explorer
      • 📈Cluster & System Metrics
      • ⌚Live360
      • 📰Reporting
      • 🔔Alerting
        • Settings
        • Templates
        • Silences
        • Manager
    • Other Features
      • 📡Agentless Monitoring
      • 🛡️Role Based Access
      • 🔂Changed Parameters
    • Tips & Hints
      • 🖥️User Interface
      • 🏷️Tags
      • 🔀Metric Correlation
      • 👁️‍🗨️Consolidated View
      • ❗Graphical Annotations
      • ☁️Predefined Providers
      • ❓Wait Event Description
      • ®️Read Replicas
      • 👁️‍🗨️Agentless & System Metrics
      • ☑️Simplified pg_instance Display
  • implementation
    • Platform Usage
      • ⚙️Configuration
        • 🔑License
        • 📓LDAP
        • ✉️SMTP
        • 📋Audit
        • 👨‍🏭Users & Roles
      • 🧩API
        • 🔗Access Token
        • 🧩Connection API
        • 🧩Role API
        • 🧩User API
        • 🧩Reporting API
        • 🧩Workload API
        • 🧩Alerting API
      • 🛠️Tooling
    • Agent Usage
      • 📣Release Notes
      • ⌨️CLI
      • 🧩API
      • 🗃️Collection Level
      • 🔬Internals
    • Upgrade
      • 🔄Platform
      • 🔄Agent
    • Troubleshooting
      • 🩺Error message: “502 Bad Gateway”
      • 🩺The UI is not displaying any metrics for my new instance.
      • 🩺UI dashboard is encountering loading errors
      • 🩺InfluxDB
  • Support
    • How to Contact Us
  • GitHub Toolkit
Powered by GitBook
On this page
  • Filters
  • Rules
  • PostgreSQL metrics
  • System metrics
  1. Features
  2. Key Features
  3. Alerting

Templates

Defining notification templates is the next step after enabling Alerting at the platform level.

PreviousSettingsNextSilences

Last updated 1 year ago

Notification templates are dynamically assigned at runtime when parsing metrics for each instance sharing the same TAG(s).

A notification template is composed of:

  • Filters (aka TAGs) corresponding to one or more instances

  • Rules to define criteria that determine whether a notification is triggered

Filters

To begin, you are required to set up one or more filters, commonly known as tags.

For tag assignment details, refer to .

The example below creates a notification template for all instances sharing the tag datacenter=dc1.

When adding a new instance, it will automatically be assigned this template if it shares the same tag.

When parsing metrics, Datasentinel searches for a corresponding notification template using the following sequence:

  1. A template containing the instance name directly in the filter list will always take precedence.

  2. The most recent rule that matches filters

Rules

Rules are categorized into two groups.

PostgreSQL metrics

  • Instance status

  • Max connections

  • Blocked sessions

  • Sessions consuming CPU

  • WAL files

  • WAL file-system

  • Old archived time

  • Failed archived files

  • Replication lag

System metrics

  • CPU usage

  • Load average

  • Memory usage

  • Swap usage

  • File systems

You can allocate both WARNING and CRITICAL thresholds to each rule and decide the occurrence count (for specific rules) that will activate an event.

Metrics undergo parsing every minute, making an occurrence equivalent to a one-minute interval.

Every rule can be toggled on or off.

In cases where WARNING and CRITICAL values match, only CRITICAL problems are generated.

Upon saving a template, it becomes active instantly.

🔔
Tags section
Adding filters
Rules