Dashboard
Getting Started

Network Tags

What are tags?

Tags are metadata or labels attached to an object, such as a host, container, or Kubernetes resource. Each tag has a key and an optional value. This can make it easier to manage, search for, and filter resources by specific criteria.

Tags are commonly used to identify applications, environments (staging or production), owners, and so on. For example, you could tag all API services with an API tag, or tag all services where Terraform automation is used with a Terraform tag. Tags are especially important for today's ephemeral environments, where resources (like hosts and containers) live for a short time and have dynamic IP addresses. The IP address of a host may change, but any tags associated with it will persist.

How does Gremlin use tags?

Gremlin recognizes host, cloud, and Kubernetes tags to define the scope of what to evaluate during reliability testing. For example, you might want to test the reliability of a Service running on a certain operating system or in a specific zone.

Zone tags are required for the Zone Reliability Test.

In Kubernetes, tags are known as labels. Using labels will help you match deployments with Services in Gremlin. For more information on Kubernetes labels, see Labels and Selectors.

Cloud providers generally have a set of default tags. Be aware that some cloud providers have a limit on the number of tags you can apply. For more information on cloud tags, see:

If you are not using a cloud provider, you will need to define custom tags and be familiar with them when you create a Service in Gremlin. You will also need to assign your custom tags to the Gremlin Agent.

Examples of tags in Gremlin

In the following example for a host Service, the scope of testing will cover the following zones: <span class="code-class-custom">us-east-1a</span>, <span class="code-class-custom">us-east1b</span>, and <span class="code-class-custom">us-east-1c</span>.

Create a Service form with Zone tag example

In this example for a Kubernetes Service, the <span class="code-class-custom">accounts-db</span> StatefulSet will be used to define the scope of testing.

Create a Service form with Kubernetes tag example

Assigning custom tags

Gremlin automatically pulls in Kubernetes, cloud tags, and common host tags such as <span class="code-class-custom">operating system</span>. For custom tags, you will need to assign them to the Gremlin Agent. There are 2 ways to assign your custom tags to the Gremlin Agent:

Using the Gremlin configuration file

Use the <span class="code-class-custom">tags</span> variable in config.yaml. For example:

YAML

tags:
  service: pet-store
  interface: http

See Configuring the Gremlin agent for more information.

Using an environment variable

Use the <span class="code-class-custom">GREMLIN_CLIENT_TAGS</span> variable to assign custom tags, separated by comma, to the Gremlin Agent.

For example:

SHELL

GREMLIN_CLIENT_TAGS="zone=us-east1,role=mysql,foo=bar"

See Using environment variables for more information.

No items found.
Previous
This is some text inside of a div block.
Compatibility
Installing the Gremlin Agent
Authenticating the Gremlin Agent
Configuring the Gremlin Agent
Managing the Gremlin Agent
Integrations
Health Checks
Notifications
Command Line Interface
Updating Gremlin
Reliability Management (RM) Quick Start Guide
Services and Dependencies
Detected Risks
Reliability Tests
Reliability Score
Targets
Experiments
Scenarios
GameDays
Failure Flags Overview
Deploying Failure Flags on AWS Lambda
Deploying Failure Flags on AWS ECS
Deploying Failure Flags on Kubernetes
Classes, methods, & attributes
API Keys
Examples
Container security
General
Linux
Windows
Chao
Helm
Glossary
Additional Configuration for Helm
Amazon CloudWatch Health Check
AppDynamics Health Check
Blackhole Experiment
CPU Experiment
Certificate Expiry
Custom Health Check
Custom Load Generator
DNS Experiment
Datadog Health Check
Disk Experiment
Dynatrace Health Check
Grafana Cloud Health Check
Grafana Cloud K6
IO Experiment
Install Gremlin on Kubernetes manually
Install Gremlin on OpenShift 4
Installing Gremlin on AWS - Configuring your VPC
Installing Gremlin on Kubernetes with Helm
Installing Gremlin on Windows
Installing Gremlin on a virtual machine
Installing the Failure Flags SDK
Jira
Latency Experiment
Memory Experiment
Network Tags
New Relic Health Check
Fault Injection Overview
Getting Started Overview
Reliability Management Overview
Resources Overview
Security Overview
Packet Loss Attack
PagerDuty Health Check
Preview: Gremlin in Kubernetes Restricted Networks
Private Network Integration Agent
Process Collection
Process Killer Experiment
Prometheus Health Check
Configuring Role Based Access Control (RBAC)
Running Failure Flags experiments
Scheduling Scenarios
Shared Scenarios
Shutdown Experiment
Slack
Time Travel Experiment
Troubleshooting Gremlin on OpenShift
User Authentication via SAML and Okta
Managing Users and Teams
Webhooks
Integration Agent for Linux
Test Suites
Restricting Testing Times
Reports
Process Exhaustion Experiment
Enabling DNS collection
Authenticating Users with Microsoft Entra ID (Azure Active Directory) via SAML
AWS Quick Start Guide
Installing Gremlin on Amazon ECS
Quick Start Guides Overview
Platform Overview
API Reference Overview
Release Notes Overview