saluki_core/constants/mod.rs
1//! Constants values used through various Saluki crates.
2
3/// Datadog-specific constants.
4pub mod datadog {
5 /// Tag key used to specify the hostname attached to the given metric.
6 pub const HOST_TAG_KEY: &str = "host";
7
8 /// Suffixed version of `HOST_TAG_KEY` used for string matching purposes.
9 pub const HOST_TAG_KEY_SUFFIXED: &str = "host:";
10
11 /// Tag key used to specify the entity ID attached to the given metric.
12 pub const ENTITY_ID_TAG_KEY: &str = "dd.internal.entity_id";
13
14 /// Suffixed version of `ENTITY_ID_TAG_KEY` used for string matching purposes.
15 pub const ENTITY_ID_TAG_KEY_SUFFIXED: &str = "dd.internal.entity_id:";
16
17 /// Tag key used to specify the tag cardinality to use when enriching the given metric.
18 pub const CARDINALITY_TAG_KEY: &str = "dd.internal.card";
19
20 /// Suffixed version of `CARDINALITY_TAG_KEY` used for string matching purposes.
21 pub const CARDINALITY_TAG_KEY_SUFFIXED: &str = "dd.internal.card:";
22
23 /// Tag key used to specify the JMX check name attached to the given metric.
24 pub const JMX_CHECK_NAME_TAG_KEY: &str = "dd.internal.jmx_check_name";
25
26 /// Suffixed version of `JMX_CHECK_NAME_TAG_KEY` used for string matching purposes.
27 pub const JMX_CHECK_NAME_TAG_KEY_SUFFIXED: &str = "dd.internal.jmx_check_name:";
28
29 /// Sentinel value for the entity ID tag key, indicating that the entity ID should be ignored.
30 pub const ENTITY_ID_IGNORE_VALUE: &str = "none";
31}