Observability of Trilio with Openshift Monitoring

Learn how to consume and visualize performance metrics from the Trilio Metrics Exporter for Openshift Observe.

Prerequisites

Enabling Monitoring for User-Defined Projects

To ensure that monitoring is enabled for user-defined projects in OpenShift, verify the configuration using the following command:

oc -n openshift-monitoring get configmap cluster-monitoring-config

The output should contain the following configuration to confirm that user workload monitoring is enabled:

apiVersion: v1
kind: ConfigMap
metadata:
  name: cluster-monitoring-config
  namespace: openshift-monitoring
data:
  config.yaml: |
    enableUserWorkload: true

If enableUserWorkload is not set to true, update the ConfigMap accordingly to enable monitoring for user-defined projects.

Using Alertmanager on OpenShift

For setting up and utilizing Alertmanager on OpenShift, refer to the provided documentation link.

Installing the Grafana Operator

To visualize the Trilio dashboard in Grafana, install the Grafana Operator on OpenShift. Follow the installation instructions available in the provided article link.

Trilio Dashboard Reference

For information regarding the Trilio Dashboard setup and visualization, refer to the provided reference link.

Enable Prometheus Exporter in Openshift

  • Enabled ServiceMonitor for Prometheus to export Trilio metrics.

   apiVersion: triliovault.trilio.io/v1
   kind: TrilioVaultManager
   metadata:
     labels:
       triliovault: k8s
     name: sample-triliovaultmanager
   spec:
     helmValues:
       urlPath: "/"
     applicationScope: Cluster
     tvkInstanceName: "tvk"
     componentConfiguration:
        exporter:
          serviceMonitor:
            enabled: true
Promethus Target should be there if Service Monitor is enabled for T4K

Trilio Metrics can be find under Metrics

Last updated

Was this helpful?