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
  1. Getting started
  2. Installation
  3. Alternate Deployments
  4. Kubernetes

Platform

For a Datasentinel deployment within Docker, use kubectl to download, install, and initiate Datasentinel components.

Last updated 1 year ago

Deploy Platform

kubectl apply -f https://raw.githubusercontent.com/datasentinel/datasentinel_toolkit/master/docker/platform-kubernetes.yml
  • All the components are deployed in a single Pod.

  • A service of type LoadBalancer is created to expose the https port (default 30443)

  • 2 volumes are created to store data.

The load balancer currently exposes port 30443 by default. Feel free to personalize this port configuration to align with your specific requirements.

To connect to the UI:

  • host: https://<<your_host>>:30443

  • user: datasentinel

  • password: datasentinel (Change it at first connection)

Following this, you can proceed with configuring the license key. If you do not have one, you have the option to request a free 30-day trial.

Please refer to the provided instructions for enabling the license key

Metrics are stored in InfluxDB wich can be disk and memory consuming.

Be careful to size your environment accordingly depending on the number of instances to monitor and the retention you want

The Volume influx-data is used to store metrics

The volume pg-data remains small

🆓Free Trial
🔑License
https://github.com/datasentinel/datasentinel_toolkit/blob/master/docker/platform-kubernetes.yml
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: datasentinel-platform
  namespace: default
spec:
  serviceName: datasentinel-platform-service
  replicas: 1
  selector:
    matchLabels:
      app: datasentinel
  template:
    metadata:
      labels:
        app: datasentinel
    spec:
      containers:
      - name: datasentinel-nginx
        image: datasentinel/datasentinel-nginx-k8s:latest
        imagePullPolicy: Always
        ports:
        - containerPort: 443
          protocol: TCP
      - name: datasentinel-postgres
        image: datasentinel/datasentinel-postgres-k8s:latest
        imagePullPolicy: Always
        volumeMounts:
          - name: pg-data
            mountPath: /data
        env:
          - name: PGDATA
            value: /data/pgdata
      - name: datasentinel-influxdb
        image: datasentinel/datasentinel-influxdb-k8s:latest
        imagePullPolicy: Always
        volumeMounts:
          - mountPath: /var/lib/influxdb
            name: influx-data
      - name: datasentinel-grafana
        image: datasentinel/datasentinel-grafana-k8s:latest
        imagePullPolicy: Always
      - name: datasentinel-backend
        image: datasentinel/datasentinel-backend-k8s:latest
        imagePullPolicy: Always
  volumeClaimTemplates:
    - metadata:
        name: pg-data
      spec:
        accessModes: ["ReadWriteOnce"]
        resources:
          requests:
            storage: 2Gi
    - metadata:
        name: influx-data
      spec:
        accessModes: ["ReadWriteOnce"]
        resources:
          requests:
            storage: 10Gi
---
apiVersion: v1
kind: Service
metadata:
  name: datasentinel-platform
  namespace: default
spec:
  type: LoadBalancer
  selector:
    app: datasentinel
  ports:
  - protocol: TCP
    port: 30443
    targetPort: 443