DX OpenExplore Regex Resource
search cancel

DX OpenExplore Regex Resource

book

Article ID: 283117

calendar_today

Updated On:

Products

DX OpenExplore Observability

Issue/Introduction

Regex which is short for "Regular Expression" is a sequence of defined characters that forms a search pattern.

Customers use Regex to manage their DX OpenExplore(OE) environment for various tasks such as.

  • Configuring Kubernetes Operator deployment YAMLs, 
  • Creating allow lists for metrics being ingested through integrations such as  AWS environment
  • Managing Proxy Preprocessor configuration rules.

Resolution

Regex can be used in many different flavors such as .NET and Java. It also has many different use cases as well, such as, searching, replacing of words, letters or symbols and how to interact.

Regex applications in DX OpenExplore include:

  • Proxy Preprocessor Rules
  • Container deployment YAML files.
  • Integration metric Block/Allow configuration 
  • Query Functions:
    • taggify
    • aliasSource
    • aliasMetric

 

In the below examples both use Regex formatting when identifying Point Tags in their Allow lists.

Example A, uses a fairly simple tag. 

Example B, uses more complexity definition for their metric allow list.

^aws.(ec2.cpuutilization|ec2.networkin|ec2.networkout|ebs.volumereadops|ebs.volumewriteops|elb|autoscaling.groupinserviceinstances|autoscaling
.grouppendinginstances|autoscaling.groupmaxsize|networkelb.newflowcount|networkelb.activeflowcount|networkelb.processedbytes|networkelb.c
onsumedlcus|networkelb.tcp_elb_reset_count|networkelb.tcp_target_reset_count|networkelb.tcp_client_reset_count|transfer|rds.readiops|rds.
readlatency|rds.readthroughput|rds.snapshotstorageused|rds.swapusage|rds.totalbackupstoragebilled|rds.transactionlogsdiskusage|rds.volume
bytesused|rds.volumereadiops|rds.volumewriteiops|rds.writeiops|rds.writelatency|rds.writethroughput|usage).*$

Additional Information

Here are various websites to walk you through step-by-step learning how to use Regex. They also have cheat sheets to help guide you through learning the language.