-
Notifications
You must be signed in to change notification settings - Fork 22
Refresh the IBM Spectrum Scale meta data used by the IBM Spectrum Scale Performance Monitoring Bridge for Grafana
hwassman edited this page Nov 29, 2022
·
3 revisions
-
Verify grafana-bridge process is running
Command:
ps -ef |grep Grafana
Example output:
[root@scale-11 ~]# ps -ef |grep Grafana root 391458 1 0 10:35 ? 00:03:51 python3 zimonGrafanaIntf.py -c 10 root 626718 626648 0 18:28 pts/0 00:00:00 grep --color=auto Grafana
-
Get scale_grafana apikey value
Command:
KEYVALUE=$(mmperfmon config show --apikey scale_grafana |jq '.key')
Example output:
[root@scale-11 ~]# KEYVALUE=$(mmperfmon config show --apikey scale_grafana |jq '.key') [root@scale-11 ~]# echo $KEYVALUE "3e651f67-cd9c-443e-9ce1-84621763e557"
-
Send metadata update request to a grafana-bridge process via REST API
Command:
curl http://localhost:4242/api/update -u scale_grafana:$KEYVALUE
Example output:
[root@scale-11 ~]# curl http://localhost:4242/api/update -u scale_grafana:$KEYVALUE {"msg": "Successfully retrieved MetaData"}
-
Get grafanaBridge pod names
Command:
oc get po -o wide -n ibm-spectrum-scale |grep grafana
Example output:
[[email protected] ~]# oc get po -o wide -n ibm-spectrum-scale |grep grafana ibm-spectrum-scale-grafana-bridge-699fb97c58-9wqtt 1/1 Running 0 4d8h 10.254.20.31 worker1.helene.cp.fyre.ibm.com <none> <none> ibm-spectrum-scale-grafana-bridge-699fb97c58-jrs4z 1/1 Running 0 4d8h 10.254.15.211 worker0.helene.cp.fyre.ibm.com <none> <none>
-
Send metadata update request to a grafana-bridge process in each pod via REST API
Command:
curl https://localhost:8443/api/update -u scale_grafana:`cat /etc/perfmon-api-keys/scale_grafana` -k
Example output:
[[email protected] ~]# oc rsh ibm-spectrum-scale-grafana-bridge-699fb97c58-9wqtt Defaulted container "grafanabridge" out of: grafanabridge, initservice (init) sh-4.4$ curl https://localhost:8443/api/update -u scale_grafana:`cat /etc/perfmon-api-keys/scale_grafana` -k {"msg": "Successfully retrieved MetaData"} sh-4.4$ exit [[email protected] ~]# oc rsh ibm-spectrum-scale-grafana-bridge-699fb97c58-jrs4z Defaulted container "grafanabridge" out of: grafanabridge, initservice (init) sh-4.4$ curl https://localhost:8443/api/update -u scale_grafana:`cat /etc/perfmon-api-keys/scale_grafana` -k {"msg": "Successfully retrieved MetaData"} sh-4.4$ exit
Visit the IBM Storage Scale Knowledge Center for getting more info about the latest product updates
-
- Setup classic Grafana
- Make usage of Grafana Provisioning feature
-
- Installing RedHat community-powered Grafana operator from OperatorHub
- Creating Grafana instance using the RedHat community-powered Grafana-operator
- Creating Grafana Datasorce instance from Custom Resource managed by the RedHat community powered Grafana operator
- Importing the predefined dashboard from the example dashboards collection
- Exploring Grafana WEB interface for CNSA project in a k8s OCP environment
- How to setup Grafana instance to monitor multiple IBM Storage Scale clusters running in a cloud or mixed environment
- API key authentication
- Configurable bridge settings
- CherryPy builtin HTTP server settings
- How to setup HTTPS(SSL) connection
- Start and stop grafana-bridge with systemd
- Refresh IBM Storage Scale cluster configuration data cached by grafana bridge
- Accelerate the PrometheusExporter data retrieval time
- Optimize the performance of PrometheusExporter by using scrape_job params settings
- Grafana Dashboard Panel shows no metric values for a particular entity
- Missing Grafana-Operator on an OpenShift cluster
- Missing CherryPy packages
- What to do if your system is on Python < 3.8
- Grafana-bridge fails to start with Python3.8
- Grafana-bridge container time is different from a host time
- Verify that the grafana-bridge returns data as expected