User Guide
Pulse 4.1.x
Get Started
Architecture
Core Concepts
Monitor and Analyze
Manage Alerts and Actions
Generate Reports
Manage Users and Roles
Workflows
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Fetch K8s Metrics in an OpenShift Cluster
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
For Spark on K8S observability, Pulse provides charts and dashboards for Kubernetes namespace-level resource metrics such as CPU usage and memory usage.
- Kubernetes metrics can be collected using different approaches, including custom integrations or open-source monitoring solutions. In OpenShift environments, a monitoring stack is available out of the box as part of the cluster setup.
- Pulse integrates with this OpenShift monitoring stack to collect Kubernetes metrics and ingest them into its data platform, enabling visualization through charts and dashboards.
- Pulse leverages this solution and configures it to forward Kubernetes metrics to its data platform for storage and analysis. For details, see Configuring and using the monitoring stack in OpenShift Container Platform.
Install the oc CLI for the following steps.
- Edit the
cluster-monitoring-configconfig map.
Bash
xxxxxxxxxxoc edit configmaps cluster-monitoring-config -n openshift-monitoring- Put the following inside the config map.
Bash
xxxxxxxxxxprometheusK8s: remoteWrite: - url: "http://<VMUsername>:<VMPassword>@<VMInsert Hostname>:19043/insert/<ClusterHash>/prometheus" writeRelabelConfigs: - action: labelmap regex: __meta_kubernetes_(.+) - sourceLabels: [__meta_kubernetes_pod_annotation_prometheus_io_path] targetLabel: __metrics_path__ regex: (.+) action: replace - sourceLabels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port] targetLabel: __address__ regex: (.+):(?:\d+);(\d+) replacement: ${1}:${2} action: replace - sourceLabels: [__name__] targetLabel: __name__ regex: (.*) replacement: 'kubernetes.${1}' action: replace- Save the changes.
- Now, when the next time prometheus-operator reconciles, it will pick up the new config. To make it faster, delete the Prometheus pods so they restart immediately with the updated configuration.
Bash
xxxxxxxxxxoc delete pod -l prometheus=k8s -n openshift-monitoring- After the pods are up, you can see the metrics flowing inside the DB.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Next to read:
Fetch K8s Metrics on Vanilla ClusterFor additional help, contact www.acceldata.force.com OR call our service desk +1 844 9433282
Copyright © 2026
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message