Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Interconnecting with the Grafana Plug-in (Linux)

Updated on 2025-02-08 GMT+08:00

Grafana is a cross-platform open-source measurement analysis and visualization tool. It can query collected data, display the data in a visualized manner, and notify users in a timely manner.

LTS-Grafana is a plug-in of Grafana. It can analyze and display LTS data in a visualized manner.

Prerequisites

  • You have installed Grafana. For details, see Grafana official documentation.

    The Grafana version must be 9.0.0 or later.

  • Download the LTS-Grafana plug-in package.
  • The LTS-Grafana plug-in can be used only after the visualization function is enabled on the LTS console.
    NOTE:

    Currently, this function is available to all users in regions CN South-Guangzhou, CN North-Beijing4, CN East-Shanghai1, CN East-Shanghai2, CN-Hong Kong, CN Southwest-Guiyang1, AP-Singapore, CN North-Beijing1, and AP-Bangkok. It is also available to whitelisted users in regions CN South-Shenzhen, ME-Riyadh, and AP-Jakarta.

Installing the LTS-Grafana Plug-in

  1. Run the following command to decompress the LTS Grafana plug-in package to the Grafana plug-in directory:

    • Grafana installed using YUM or RPM:
      unzip LTS-Grafana-OBS-Static.1.0.10.zip -d /var/lib/grafana/plugins
    • Grafana installed using a .tar.gz file:

      {PATH_TO} indicates the Grafana installation path, and {VERSION} indicates the Grafana version.

      unzip LTS-Grafana-OBS-Static.1.0.10.zip -d {PATH_TO}/grafana-{VERSION}/plugins-bundled/internal/input-datasource

  2. Modify the Grafana configuration file.

    • Open the configuration file:
      • Grafana installed using YUM or RPM: /etc/grafana/grafana.ini
      • Grafana installed using a .tar.gz file: {PATH_TO}/grafana-{VERSION}/conf/defaults.ini
    • Configure the allow_loading_unsigned_plugins parameter in the [plugins] section of the configuration file.
      allow_loading_unsigned_plugins = hw-hws-lts-grafana-datasource-plugin

  3. Restart Grafana.

    • Run the kill command to stop the Grafana process.
    • Run the following commands to start Grafana:
      • Grafana installed using YUM or RPM:
        systemctl restart grafana-server
      • Grafana installed using a .tar.gz file:
        ./bin/grafana-server web

Adding a Data Source

  1. In the navigation pane on the left, click and choose Data sources. On the Data sources page that is displayed, click Add data source to add a data source and select hws-lts-grafana-datasource-plugin.

  2. Configure the data source and click Save & test.

    Table 1 Parameters

    Parameter

    Description

    Example Value

    Name

    Plug-in name, which can be customized.

    hws-lts-grafana-datasource-plugin

    EndPoint

    Select an endpoint based on your region. For details, see Regions and Endpoints.

    -

    projectId

    Project ID of an account.

    Log in to the LTS console, move the cursor to the account name and choose My Credentials > API Credentials. On the API Credentials page, copy the project ID of the region.

    -

    Log StreamId

    ID of the log stream with structuring configured.

    Log in to the LTS console and choose Log Management. Click of the target log group and hover your cursor over the target log stream to copy its ID.

    -

    AccesskeyId/SecretAccessKey

    User access credential. Log in to the LTS console, move the cursor to the account name and choose My Credentials > Access Keys. On the Access Keys page, copy the access key ID.

    -

  3. Add a dashboard.

    1. In the navigation pane on the left, choose Dashboards. On the New dashboard page, click add an empty panel.
    2. On the New dashboards page, select hws-lts-grafana-datasource-plugin and enter the corresponding SQL statement.

    3. Select the corresponding time in the upper right corner and click to refresh and display the latest data.

      Follow the following rules when configuring parameters of the LTS-Grafana plug-in:

      • For table data, set the x-column parameter to table.
      • For single-value data, set the x-column parameter to single.
      • For charts that contain dimension columns, set the x-column parameter to the time column field and y-column to col1:col2. col1 indicates the aggregation column, and col2 indicates the data column.
      • For bar charts, set the x-column parameter to bar and y-column to col1,col2. col1 indicates the category column, and col2 indicates the data column.
      • For pie charts, set the x-column parameter to pie and y-column to col1,col2. col1 indicates the category column, and col2 indicates the data column.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback