Skip to content
Snippets Groups Projects
Commit edc17300 authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Updates docs and removes flame_sfe from allowed tags in the alerts configuration

parent ef9ca05f
No related branches found
No related tags found
No related merge requests found
...@@ -238,7 +238,7 @@ the format is still the same for consistency. Therefore, using `<measurement>.*` ...@@ -238,7 +238,7 @@ the format is still the same for consistency. Therefore, using `<measurement>.*`
the event_type is set to **threshold** or **relative**. the event_type is set to **threshold** or **relative**.
* **resource_type** - provides context for the given event - key-value pairs for the global tags of the CLMC Information Model. * **resource_type** - provides context for the given event - key-value pairs for the global tags of the CLMC Information Model.
This includes any of the following: `"flame_sfp", "flame_sf", "flame_sfe", "flame_server", "flame_location"`. This includes any of the following: `"flame_sfp", "flame_sf", "flame_server", "flame_location"`.
Keep in mind that **flame_sfc** and **flame_sfci** are also part of the CLMC Information Model. However, filtering on Keep in mind that **flame_sfc** and **flame_sfci** are also part of the CLMC Information Model. However, filtering on
these tags is automatically generated and added to all InfluxDB queries by using the metadata values from the these tags is automatically generated and added to all InfluxDB queries by using the metadata values from the
alerts specification. Therefore, including **flame_sfc** and **flame_sfci** in the **resource_type** is considered INVALID. alerts specification. Therefore, including **flame_sfc** and **flame_sfci** in the **resource_type** is considered INVALID.
......
...@@ -65,9 +65,10 @@ URL_REGEX = re.compile( ...@@ -65,9 +65,10 @@ URL_REGEX = re.compile(
re.IGNORECASE) re.IGNORECASE)
# Global tags allowed to be used for filtering in the trigger condition # Global tags allowed to be used for filtering in the trigger condition
CLMC_INFORMATION_MODEL_GLOBAL_TAGS = {"flame_sfp", "flame_sf", "flame_sfe", "flame_server", "flame_location"} CLMC_INFORMATION_MODEL_GLOBAL_TAGS = {"flame_sfp", "flame_sf", "flame_server", "flame_location"}
# NOTICE that "flame_sfc", "flame_sfci" are not allowed, even though they are part of the CLMC Information Model # NOTICE that "flame_sfc", "flame_sfci" are not allowed, even though they are part of the CLMC Information Model
# This is because those two tags are automatically added to the InfluxDB queries - the required values are retrieved from the alert spec. metadata # This is because those two tags are automatically added to the InfluxDB queries - the required values are retrieved from the alert spec. metadata
# "flame_sfe" cannot be used as well, because the value of this tag is only known at runtime.
ALERTS_SPECIFICATION_SCHEMA = Schema({ ALERTS_SPECIFICATION_SCHEMA = Schema({
"tosca_definitions_version": And(str, lambda v: v == "tosca_simple_profile_for_nfv_1_0_0"), "tosca_definitions_version": And(str, lambda v: v == "tosca_simple_profile_for_nfv_1_0_0"),
......
...@@ -54,6 +54,7 @@ topology_template: ...@@ -54,6 +54,7 @@ topology_template:
condition: condition:
threshold: 1 threshold: 1
granularity: 10 granularity: 10
aggregation_method: mean
resource_type: resource_type:
flame_sfp: nginx flame_sfp: nginx
flame_sf: adaptive_streaming_nginx_I1 flame_sf: adaptive_streaming_nginx_I1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment