El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

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

OpenTSDB Development Plan

Updated on 2024-12-10 GMT+08:00

This topic describes the application development in a typical scenario, helping you quickly learn and master the OpenTSDB development process and know key functions.

Scenario Description

Assume that a user develops an application to record and query the weather information of a city. Table 1, Table 2, and Table 3 describe the recorded data.

Table 1 Raw data

City

District

Time

Temperature

Humidity

Shenzhen

Longgang

2017/7/1 00:00:00

28

54

Shenzhen

Longgang

2017/7/1 01:00:00

27

53

Shenzhen

Longgang

2017/7/1 02:00:00

27

52

Shenzhen

Longgang

2017/7/1 03:00:00

27

51

Shenzhen

Longgang

2017/7/1 04:00:00

27

50

Shenzhen

Longgang

2017/7/1 05:00:00

27

49

Shenzhen

Longgang

2017/7/1 06:00:00

27

48

Shenzhen

Longgang

2017/7/1 07:00:00

27

46

Shenzhen

Longgang

2017/7/1 08:00:00

29

46

Shenzhen

Longgang

2017/7/1 09:00:00

30

48

Shenzhen

Longgang

2017/7/1 10:00:00

32

48

Shenzhen

Longgang

2017/7/1 11:00:00

32

49

Shenzhen

Longgang

2017/7/1 12:00:00

33

49

Shenzhen

Longgang

2017/7/1 13:00:00

33

50

Shenzhen

Longgang

2017/7/1 14:00:00

32

50

Shenzhen

Longgang

2017/7/1 15:00:00

32

50

Shenzhen

Longgang

2017/7/1 16:00:00

31

51

Shenzhen

Longgang

2017/7/1 17:00:00

30

51

Shenzhen

Longgang

2017/7/1 18:00:00

30

51

Shenzhen

Longgang

2017/7/1 19:00:00

29

51

Shenzhen

Longgang

2017/7/1 20:00:00

29

52

Shenzhen

Longgang

2017/7/1 21:00:00

29

53

Shenzhen

Longgang

2017/7/1 22:00:00

28

54

Shenzhen

Longgang

2017/7/1 23:00:00

28

54

In this scenario, the temperature and humidity data of the Longgang district, Shenzhen, is recorded at 00:00 on July 1, 2017. OpenTSDB uses two groups of data points for modeling.

Table 2 Metric data point 1

Metric

City

District

Unix timestamp

Value

city.temp

Shenzhen

Longgang

1498838400

28

city.temp

Shenzhen

Longgang

1498842000

27

city.temp

Shenzhen

Longgang

1498845600

27

city.temp

Shenzhen

Longgang

1498849200

27

city.temp

Shenzhen

Longgang

1498852800

27

city.temp

Shenzhen

Longgang

1498856400

27

city.temp

Shenzhen

Longgang

1498860000

27

city.temp

Shenzhen

Longgang

1498863600

27

city.temp

Shenzhen

Longgang

1498867200

29

city.temp

Shenzhen

Longgang

1498870800

30

city.temp

Shenzhen

Longgang

1498874400

32

city.temp

Shenzhen

Longgang

1498878000

32

city.temp

Shenzhen

Longgang

1498881600

33

city.temp

Shenzhen

Longgang

1498885200

33

city.temp

Shenzhen

Longgang

1498888800

32

city.temp

Shenzhen

Longgang

1498892400

32

city.temp

Shenzhen

Longgang

1498896000

31

city.temp

Shenzhen

Longgang

1498899600

30

city.temp

Shenzhen

Longgang

1498903200

30

city.temp

Shenzhen

Longgang

1498906800

29

city.temp

Shenzhen

Longgang

1498910400

29

city.temp

Shenzhen

Longgang

1498914000

29

city.temp

Shenzhen

Longgang

1498917600

28

city.temp

Shenzhen

Longgang

1498921200

28

Table 3 Metric data point 2

Metric

City

District

Unix timestamp

Value

city.hum

Shenzhen

Longgang

1498838400

54

city.hum

Shenzhen

Longgang

1498842000

53

city.hum

Shenzhen

Longgang

1498845600

52

city.hum

Shenzhen

Longgang

1498849200

51

city.hum

Shenzhen

Longgang

1498852800

50

city.hum

Shenzhen

Longgang

1498856400

49

city.hum

Shenzhen

Longgang

1498860000

48

city.hum

Shenzhen

Longgang

1498863600

46

city.hum

Shenzhen

Longgang

1498867200

46

city.hum

Shenzhen

Longgang

1498870800

48

city.hum

Shenzhen

Longgang

1498874400

48

city.hum

Shenzhen

Longgang

1498878000

49

city.hum

Shenzhen

Longgang

1498881600

49

city.hum

Shenzhen

Longgang

1498885200

50

city.hum

Shenzhen

Longgang

1498888800

50

city.hum

Shenzhen

Longgang

1498892400

50

city.hum

Shenzhen

Longgang

1498896000

51

city.hum

Shenzhen

Longgang

1498899600

51

city.hum

Shenzhen

Longgang

1498903200

51

city.hum

Shenzhen

Longgang

1498906800

51

city.hum

Shenzhen

Longgang

1498910400

52

city.hum

Shenzhen

Longgang

1498914000

53

city.hum

Shenzhen

Longgang

1498917600

54

city.hum

Shenzhen

Longgang

1498921200

54

Each group of metric data points has two tags:

  • Tags: City and District
  • Tag values: ShenZhen and Longgang

You can perform the following operations on data:

  • Obtain the daily monitored data and write data points of the two groups to the database through the put API of OpenTSDB.
  • Use the query API of OpenTSDB to query and analyze the existing data.

Function Description

Determine functions to be developed based on the preceding scenario. Table 4 describes functions to be developed.

Table 4 Functions to be developed in OpenTSDB

No.

Step

Code Implementation

1

Build a data model based on the typical scenario description.

For details, see Configuring OpenTSDB Parameters.

2

Write metric data.

For details, see Writing Data into OpenTSDB.

3

Query data based on metrics.

For details, see Querying OpenTSDB Data.

4

Delete data in a specified range.

For details, see Deleting OpenTSDB Data.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback