diff --git a/docs/AlertsSpecification.md b/docs/AlertsSpecification.md index a2ea4c8f6315cff7da3ef39d5d9ae695649ac668..e4e1cc78d2501ac79baec43bb11594b2eba0a826 100644 --- a/docs/AlertsSpecification.md +++ b/docs/AlertsSpecification.md @@ -73,7 +73,7 @@ topology_template: granularity: 120 aggregation_method: mean resource_type: - location: watershed + flame_location: watershed comparison_operator: gt action: implementation: @@ -94,8 +94,8 @@ topology_template: granularity: 60 aggregation_method: last resource_type: - sfp: storage - sf: storage-users + flame_sfp: storage + flame_sf: storage-users location: watershed comparison_operator: lt action: @@ -116,12 +116,12 @@ topology_template: threshold: 100 # requests have increased by at least 100 granularity: 120 resource_type: - sfc: companyA-VR - sfci: companyA-VR-premium - sfp: storage - sf: storage-users - server: watershed - location: watershed + flame_sfc: companyA-VR + flame_sfci: companyA-VR-premium + flame_sfp: storage + flame_sf: storage-users + flame_server: watershed + flame_location: watershed comparison_operator: gte action: implementation: @@ -136,9 +136,9 @@ topology_template: threshold: -100 # requests have decreased by at least 100 granularity: 120 resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lte action: implementation: @@ -157,7 +157,7 @@ topology_template: threshold: 0 # if requests are less than or equal to 0 (in other words, no measurements are reported) granularity: 60 # check for for missing data for the last 60 seconds resource_type: - sfp: storage + flame_sfp: storage action: implementation: - http://sfemc.flame.eu/notify @@ -239,9 +239,9 @@ the format is still the same for consistency. Therefore, using `<measurement>.*` the event_type is set to **threshold**. * **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: `"sfc", "sfci", "sfp", "sf", "sfe", "server", "location"`. Keep in mind that -filtering for **sfc** and **sfci** is automatically generated by extracting the metadata values from the alerts specification. -For more information on the global tags, please check the [documentation](monitoring.md). +This includes any of the following: `"flame_sfc", "flame_sfci", "flame_sfp", "flame_sf", "flame_sfe", "flame_server", "flame_location"`. +Keep in mind that filtering for **sfc** and **sfci** is automatically generated by extracting the metadata values from the alerts specification. +For more information on the global tags, please check the [documentation](monitoring.md). * **comparison_operator** - the logical operator to use for comparison - lt (less than), gt (greater than), lte (less than or equal to), etc. @@ -264,7 +264,7 @@ result of the comparison operation is true, an alert is triggered. For example: granularity: 120 aggregation_method: mean resource_type: - location: watershed + flame_location: watershed comparison_operator: gt action: implementation: @@ -307,9 +307,9 @@ threshold. If the result of the comparison operation is true, an alert is trigge threshold: -100 granularity: 120 resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lte action: implementation: @@ -342,7 +342,7 @@ For example: threshold: 0 granularity: 60 resource_type: - sfp: storage + flame_sfp: storage action: implementation: - http://sfemc.flame.eu/notify diff --git a/docs/clmc-information-model.md b/docs/clmc-information-model.md index 18f772e8c7d5b1baf580cea3cf96c8636771b905..a579b8c7460dbd332e544f8caf8743e9eec2b909 100644 --- a/docs/clmc-information-model.md +++ b/docs/clmc-information-model.md @@ -254,13 +254,13 @@ The measurement model considers three monitoring views on an endpoint with field All of the measurements on a endpoint share a common context that includes tag values: -* sfc – an orchestration template (a.k.a. Service Function Chain) -* sfci – an instance of the orchestration template (a.k.a. Service Function Chain Instance) -* sfp – the package a service function is using (a.k.a. Service Function Package) -* sf – the service function defined in the TOSCA resource specification (a.k.a. Service Function) -* sfe – an authoritative copy of the SF - either VM or container (a.k.a. Service Function Endpoint) -* server – a cluster VM inside which service function endpoints are placed (at the current stage, the value of this tag is the same as the *location* tag) -* location – the location of the server - physical machine that hosts the cluster VM +* flame_sfc – an orchestration template (a.k.a. Service Function Chain) +* flame_sfci – an instance of the orchestration template (a.k.a. Service Function Chain Instance) +* flame_sfp – the package a service function is using (a.k.a. Service Function Package) +* flame_sf – the service function defined in the TOSCA resource specification (a.k.a. Service Function) +* flame_sfe – an authoritative copy of the SF - either VM or container (a.k.a. Service Function Endpoint) +* flame_server – a cluster VM inside which service function endpoints are placed (at the current stage, the value of this tag is the same as the *location* tag) +* flame_location – the location of the server - physical machine that hosts the cluster VM By including this context with service, network and host measurements it is possible to support range of temporal queries associated with SFC’s. By adopting the same convention for identifiers it is possible to combine measurements across service, network and host to create new series that allows exploration of different aspects of the VM instance, including cross-layer queries. @@ -368,13 +368,13 @@ ipendpoint measurements measure the configuration, usage and performance of VM/C Common tags -* sfc – an orchestration template (a.k.a. Service Function Chain) -* sfci – an instance of the orchestration template (a.k.a. Service Function Chain Instance) -* sfp – the package a service function is using (a.k.a. Service Function Package) -* sf – the service function defined in the TOSCA resource specification (a.k.a. Service Function) -* sfe – an authoritative copy of the SF - either VM or container (a.k.a. Service Function Endpoint) -* server – a cluster VM inside which service function endpoints are placed (at the current stage, the value of this tag is the same as the *location* tag) -* location – the location of the server - physical machine that hosts the cluster VM +* flame_sfc – an orchestration template (a.k.a. Service Function Chain) +* flame_sfci – an instance of the orchestration template (a.k.a. Service Function Chain Instance) +* flame_sfp – the package a service function is using (a.k.a. Service Function Package) +* flame_sf – the service function defined in the TOSCA resource specification (a.k.a. Service Function) +* flame_sfe – an authoritative copy of the SF - either VM or container (a.k.a. Service Function Endpoint) +* flame_server – a cluster VM inside which service function endpoints are placed (at the current stage, the value of this tag is the same as the *location* tag) +* flame_location – the location of the server - physical machine that hosts the cluster VM **endpoint_config** diff --git a/docs/clmc-service.md b/docs/clmc-service.md index 48e9c447fbe3c74c1a5d72761ea97da1b851bb47..7b1cc1d0d54d7b1731d2131b15885c5bbf26a9c8 100644 --- a/docs/clmc-service.md +++ b/docs/clmc-service.md @@ -165,13 +165,13 @@ configuration files of the service can be found in the **src/service** folder. These parameters are then filled in the following influx query template: ``` - SELECT {0} AS mean_response_time, {1} AS mean_request_size, {2} AS mean_response_size FROM "{3}"."{4}".{5} WHERE sfc=\'{6}\' and sfci=\'{7}\' and time>={8} and time<{9} GROUP BY sfe, location, sf + SELECT {0} AS mean_response_time, {1} AS mean_request_size, {2} AS mean_response_size FROM "{3}"."{4}".{5} WHERE "flame_sfc"=\'{6}\' and "flame_sfci"=\'{7}\' and time>={8} and time<{9} GROUP BY "flame_sfe", "flame_location", "flame_sf" ``` E.g. for the minio service function, the following query will be used to retrieve the data from influx (request url is */graph/build?from=1528385420&to=1528385860*): ``` - SELECT mean(sum)/mean(count) AS mean_response_time, mean(request_size)/mean(count) AS mean_request_size, mean(response_size)/mean(count) AS mean_response_size FROM "MSDemo"."autogen".minio_http_requests_duration_seconds WHERE sfc='MSDemo' and sfci='MSDemo_1' and time>=1528385420000000000 and time<1528385860000000000 GROUP BY sfe, location, sf + SELECT mean(sum)/mean(count) AS mean_response_time, mean(request_size)/mean(count) AS mean_request_size, mean(response_size)/mean(count) AS mean_response_size FROM "MSDemo"."autogen".minio_http_requests_duration_seconds WHERE "flame_sfc"='MSDemo' and "flame_sfci"='MSDemo_1' and time>=1528385420000000000 and time<1528385860000000000 GROUP BY "flame_sfe", "flame_location", "flame_sf" ``` N.B. database name is assumed to be the SFC identifier @@ -272,13 +272,13 @@ configuration files of the service can be found in the **src/service** folder. "response_time": 15.75, "round_trip_time": 81.75, "global_tags": { - "sfe": "minio_1_ep1", - "sfc": "MSDemo", - "sfci": "MSDemo_1", - "sfp": "minio", - "sf": "minio_1", - "location": "DC1", - "server": "DC1" + "flame_sfe": "minio_1_ep1", + "flame_sfc": "MSDemo", + "flame_sfci": "MSDemo_1", + "flame_sfp": "minio", + "flame_sf": "minio_1", + "flame_location": "DC1", + "flame_server": "DC1" } } ``` @@ -300,13 +300,13 @@ configuration files of the service can be found in the **src/service** folder. "response_time": 3, "round_trip_time": 3, "global_tags": { - "sfe": "minio_1_ep1", - "sfc": "MSDemo", - "sfci": "MSDemo_1", - "sfp": "minio", - "sf": "minio_1", - "location": "DC1", - "server": "DC1" + "flame_sfe": "minio_1_ep1", + "flame_sfc": "MSDemo", + "flame_sfci": "MSDemo_1", + "flame_sfp": "minio", + "flame_sf": "minio_1", + "flame_location": "DC1", + "flame_server": "DC1" } } ``` diff --git a/docs/dashboards.md b/docs/dashboards.md index 04e10a7decdd5d81a73c2d15a8cd7e01d039aa84..2f4f8dd803a4907f47cf39ef2c3abcdbf3132db1 100644 --- a/docs/dashboards.md +++ b/docs/dashboards.md @@ -35,7 +35,7 @@ Each column displays the total network traffic sent and received in MB over time To get the top chart, a nested select statement is used: ```sql -select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last("bytes_recv") / 1048576 AS "RX_MB", last("bytes_sent") / 1048576 AS "TX_MB" FROM "MSDemo"."autogen"."net" WHERE time > :dashboardTime: AND "sfp"=:sf1: GROUP BY time(1m), sfe FILL(null)) group by time(1m) +select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last("bytes_recv") / 1048576 AS "RX_MB", last("bytes_sent") / 1048576 AS "TX_MB" FROM "MSDemo"."autogen"."net" WHERE time > :dashboardTime: AND "flame_sfp"=:sf1: GROUP BY time(1m), "flame_sfe" FILL(null)) group by time(1m) ``` (The constant 1048576 is 1024*1024) @@ -45,7 +45,7 @@ The inner select groups by sfe (servince function endpoint) and time, taking the The derivative of the first chart requires a further nested select: ```sql -select derivative(total_RX_MB, 1m) / 60 as RX_MB_per_s, derivative(total_TX_MB, 1m) / 60 as TX_MB_per_s from (select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last("bytes_recv") / 1048576 AS "RX_MB", last("bytes_sent") / 1048576 AS "TX_MB" FROM "MSDemo"."autogen"."net" WHERE time > :dashboardTime: AND "sfp"=:sf1: GROUP BY time(1m), sfe FILL(null)) group by time(1m)) +select derivative(total_RX_MB, 1m) / 60 as RX_MB_per_s, derivative(total_TX_MB, 1m) / 60 as TX_MB_per_s from (select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last("bytes_recv") / 1048576 AS "RX_MB", last("bytes_sent") / 1048576 AS "TX_MB" FROM "MSDemo"."autogen"."net" WHERE time > :dashboardTime: AND "flame_sfp"=:sf1: GROUP BY time(1m), "flame_sfe" FILL(null)) group by time(1m)) ``` The outer-most select taakes the derivative of the first chart for each data set separately. The derivative function is parameterised to understand it is over a 1m period but then the result is divided by 60 to give an average MB/s in each 1 minute period. diff --git a/docs/monitoring.md b/docs/monitoring.md index 75b65627f99fa9777b8aa4e8906643648eae9832..fe1bd9ed2d9f8aab3666b65731f21e873d51006c 100644 --- a/docs/monitoring.md +++ b/docs/monitoring.md @@ -184,13 +184,13 @@ The measurement model considers three monitoring views on a surrogate with field All of the measurements on a surrogate share a common context that includes tag values: -* sfc – an orchestration template (a.k.a. Service Function Chain) -* sfci – an instance of the orchestration template (a.k.a. Service Function Chain Instance) -* sfp – the package a service function is using (a.k.a. Service Function Package) -* sf – the service function defined in the TOSCA resource specification (a.k.a. Service Function) -* sfe – an authoritative copy of the SF - either VM or container (a.k.a. Service Function Endpoint) -* server – a cluster VM inside which service function endpoints are placed (at the current stage, the value of this tag is the same as the *location* tag) -* location – the location of the server - physical machine that hosts the cluster VM +* flame_sfc – an orchestration template (a.k.a. Service Function Chain) +* flame_sfci – an instance of the orchestration template (a.k.a. Service Function Chain Instance) +* flame_sfp – the package a service function is using (a.k.a. Service Function Package) +* flame_sf – the service function defined in the TOSCA resource specification (a.k.a. Service Function) +* flame_sfe – an authoritative copy of the SF - either VM or container (a.k.a. Service Function Endpoint) +* flame_server – a cluster VM inside which service function endpoints are placed (at the current stage, the value of this tag is the same as the *location* tag) +* flame_location – the location of the server - physical machine that hosts the cluster VM By including this context with service, network and host measurements it is possible to support range of temporal queries associated with SFC’s. By adopting the same convention for identifiers it is possible to combine measurements across service, network and host to create new series that allows exploration of different aspects of the VM instance, including cross-layer queries. @@ -426,7 +426,7 @@ The following queries illustrate how to calculate _mean time between failures_ ( _Q. What is the Mean Time Between Failures (MTBF) of endpoint 'adaptive_streaming_I1_apache1'?_ ``` -select mean(connected_mst) as "apache1_MTBF(s)" from "endpoint_config" where connected_mst <> 0 and sfe = 'adaptive_streaming_I1_apache1' +select mean(connected_mst) as "apache1_MTBF(s)" from "endpoint_config" where connected_mst <> 0 and "flame_sfe" = 'adaptive_streaming_I1_apache1' ``` ``` @@ -439,12 +439,12 @@ time apache1_MTBF(s) _Q. What is the Mean Down Time (MDT) of endpoint 'adaptive_streaming_I1_apache1'?_ ``` -select mean(unplaced_mst) as "unplaced_mdt" into "endpoint_config_mdt" from "endpoint_config" where unplaced_mst <> 0 and sfe = 'adaptive_streaming_I1_apache1' -select mean(placing_mst) as "placing_mdt" into "endpoint_config_mdt" from "endpoint_config" where placing_mst <> 0 and sfe = 'adaptive_streaming_I1_apache1' -select mean(placed_mst) as "placed_mdt" into "endpoint_config_mdt" from "endpoint_config" where placed_mst <> 0 and sfe = 'adaptive_streaming_I1_apache1' -select mean(booting_mst) as "booting_mdt" into "endpoint_config_mdt" from "endpoint_config" where booting_mst <> 0 and sfe = 'adaptive_streaming_I1_apache1' -select mean(booted_mst) as "booted_mdt" into "endpoint_config_mdt" from "endpoint_config" where booted_mst <> 0 and sfe = 'adaptive_streaming_I1_apache1' -select mean(connecting_mst) as "connecting_mdt" into "endpoint_config_mdt" from "endpoint_config" where connecting_mst <> 0 and sfe = 'adaptive_streaming_I1_apache1' +select mean(unplaced_mst) as "unplaced_mdt" into "endpoint_config_mdt" from "endpoint_config" where unplaced_mst <> 0 and "flame_sfe" = 'adaptive_streaming_I1_apache1' +select mean(placing_mst) as "placing_mdt" into "endpoint_config_mdt" from "endpoint_config" where placing_mst <> 0 and "flame_sfe" = 'adaptive_streaming_I1_apache1' +select mean(placed_mst) as "placed_mdt" into "endpoint_config_mdt" from "endpoint_config" where placed_mst <> 0 and "flame_sfe" = 'adaptive_streaming_I1_apache1' +select mean(booting_mst) as "booting_mdt" into "endpoint_config_mdt" from "endpoint_config" where booting_mst <> 0 and "flame_sfe" = 'adaptive_streaming_I1_apache1' +select mean(booted_mst) as "booted_mdt" into "endpoint_config_mdt" from "endpoint_config" where booted_mst <> 0 and "flame_sfe" = 'adaptive_streaming_I1_apache1' +select mean(connecting_mst) as "connecting_mdt" into "endpoint_config_mdt" from "endpoint_config" where connecting_mst <> 0 and "flame_sfe" = 'adaptive_streaming_I1_apache1' select (unplaced_mdt + placing_mdt + placed_mdt + booting_mdt + booted_mdt + connecting_mdt) as "MDT(s)" from "endpoint_config_mdt" ``` @@ -536,13 +536,13 @@ ipendpoint measurements measure the configuration, usage and performance of VM/C Common tags -* sfc – an orchestration template (a.k.a. Service Function Chain) -* sfci – an instance of the orchestration template (a.k.a. Service Function Chain Instance) -* sfp – the package a service function is using (a.k.a. Service Function Package) -* sf – the service function defined in the TOSCA resource specification (a.k.a. Service Function) -* sfe – an authoritative copy of the SF - either VM or container (a.k.a. Service Function Endpoint) -* server – a cluster VM inside which service function endpoints are placed (at the current stage, the value of this tag is the same as the *location* tag) -* location – the location of the server - physical machine that hosts the cluster VM +* flame_sfc – an orchestration template (a.k.a. Service Function Chain) +* flame_sfci – an instance of the orchestration template (a.k.a. Service Function Chain Instance) +* flame_sfp – the package a service function is using (a.k.a. Service Function Package) +* flame_sf – the service function defined in the TOSCA resource specification (a.k.a. Service Function) +* flame_sfe – an authoritative copy of the SF - either VM or container (a.k.a. Service Function Endpoint) +* flame_server – a cluster VM inside which service function endpoints are placed (at the current stage, the value of this tag is the same as the *location* tag) +* flame_location – the location of the server - physical machine that hosts the cluster VM #### ipendpoint Measurements diff --git a/scripts/clmc-agent/telegraf.conf b/scripts/clmc-agent/telegraf.conf index 29ca0ae01cadfacc183613fad22b90d54a9c74c7..039502c4b469c2554dad3084222f83b88d4f757f 100644 --- a/scripts/clmc-agent/telegraf.conf +++ b/scripts/clmc-agent/telegraf.conf @@ -35,19 +35,19 @@ # Global tags can be specified here in key="value" format. [global_tags] # location of the data centre - location="${LOCATION}" + "flame_location"="${LOCATION}" # hostname of cluster/server (potentially virtualized) that boots up service function containers - server = "${LOCATION}" + "flame_server" = "${LOCATION}" # media service template id (defined in the TOSCA resource spec.) - sfc="${SFC_ID}" + "flame_sfc"="${SFC_ID}" # media service instance id (defined in the TOSCA resource spec.) - sfci="${SFC_INSTANCE_ID}" + "flame_sfci"="${SFC_INSTANCE_ID}" # service function package id (packaging time) - sfp="${SF_PACKAGE_ID}" + "flame_sfp"="${SF_PACKAGE_ID}" # service function id (defined in the TOSCA resource spec.) - sf="${SF_ID}" + "flame_sf"="${SF_ID}" # service function IP endpoint id aka surrogate instance - sfe="${SF_ENDPOINT_ID}" + "flame_sfe"="${SF_ENDPOINT_ID}" # Configuration for telegraf agent [agent] diff --git a/src/service/clmcservice/alertsapi/alerts_specification_schema.py b/src/service/clmcservice/alertsapi/alerts_specification_schema.py index a09bee88681661509cbfe3911d29d4b75649206f..6f6b1e03b947bfa0f360bc3f3e8cee14decc07f2 100644 --- a/src/service/clmcservice/alertsapi/alerts_specification_schema.py +++ b/src/service/clmcservice/alertsapi/alerts_specification_schema.py @@ -62,7 +62,7 @@ URL_REGEX = compile( IGNORECASE) # Global tags allowed to be used for filtering in the trigger condition -CLMC_INFORMATION_MODEL_GLOBAL_TAGS = ("sfc", "sfci", "sfp", "sf", "sfe", "server", "location") +CLMC_INFORMATION_MODEL_GLOBAL_TAGS = {"flame_sfc", "flame_sfci", "flame_sfp", "flame_sf", "flame_sfe", "flame_server", "flame_location"} ALERTS_SPECIFICATION_SCHEMA = Schema({ "tosca_definitions_version": And(str, lambda v: v == "tosca_simple_profile_for_nfv_1_0_0"), diff --git a/src/service/clmcservice/alertsapi/views.py b/src/service/clmcservice/alertsapi/views.py index 33bdfb97ca800cfe2186de3117359f6ee01846ea..4afba339a61461806180250dec380eeff4462f76 100644 --- a/src/service/clmcservice/alertsapi/views.py +++ b/src/service/clmcservice/alertsapi/views.py @@ -194,15 +194,15 @@ class AlertsConfigurationAPI(object): if "resource_type" in trigger.trigger_tpl["condition"]: tags = condition["resource_type"] # make sure alert tasks are executing with queries for the given sfc and sfc instance - tags["sfc"] = sfc - tags["sfci"] = sfc_instance + tags["flame_sfc"] = sfc + tags["flame_sfci"] = sfc_instance # NOTE: if the template has its where clause defined as lambda (stream templates), then use "==" as comparison operator, # else if the template's where clause is defined as a string (batch templates), then use "=" as comparison operator - comparison_operator = TICKScriptTemplateFiller.get_comparison_operator(event_type) # retrieves the correct comparison operator to use for building the where clause + filter_comparison_operator = TICKScriptTemplateFiller.get_comparison_operator(event_type) # retrieves the correct comparison operator to use for building the where clause # build up the where clause from the tags dictionary - where_clause = " AND ".join(map(lambda tag_name: '"{0}"{1}\'{2}\''.format(tag_name, comparison_operator, tags[tag_name]), tags)) + where_clause = " AND ".join(map(lambda tag_name: '"{0}"{1}\'{2}\''.format(tag_name, filter_comparison_operator, tags[tag_name]), tags)) comparison_operator = COMPARISON_OPERATORS[condition.get("comparison_operator", "gte")] # if not specified, use "gte" (>=) diff --git a/src/service/clmcservice/graphapi/conftest.py b/src/service/clmcservice/graphapi/conftest.py index 1e3708d09b0b63652c81b48f8cd308b459fe4c74..03e3f6d72df618f05cdeb3578c1fa155a1a090eb 100644 --- a/src/service/clmcservice/graphapi/conftest.py +++ b/src/service/clmcservice/graphapi/conftest.py @@ -171,7 +171,7 @@ def db_testing_data(): ] influx.write_points([ {"measurement": "nginx", - "tags": {"server": location, "sfe": sfe, "location": location, "sfp": sfp, "sf": sf, "sfc": sfc, "sfci": sfci}, + "tags": {"flame_server": location, "flame_sfe": sfe, "flame_location": location, "flame_sfp": sfp, "flame_sf": sf, "flame_sfc": sfc, "flame_sfci": sfci}, "fields": {"requests": num_requests, "avg_processing_time": processing_time, "avg_request_size": request_size, "avg_response_size": response_size}, "time": timestamp * 10 ** 9 } for sfe, location, sfp, sf, sfc, sfci, num_requests, processing_time, request_size, response_size, timestamp in data @@ -192,7 +192,7 @@ def db_testing_data(): ] influx.write_points([ {"measurement": "minio_http", - "tags": {"server": location, "sfe": sfe, "location": location, "sfp": sfp, "sf": sf, "sfc": sfc, "sfci": sfci}, + "tags": {"flame_server": location, "flame_sfe": sfe, "flame_location": location, "flame_sfp": sfp, "flame_sf": sf, "flame_sfc": sfc, "flame_sfci": sfci}, "fields": {"total_requests_count": num_requests, "total_processing_time": processing_time, "total_requests_size": request_size, "total_response_size": response_size}, "time": timestamp * 10 ** 9 } for sfe, location, sfp, sf, sfc, sfci, num_requests, processing_time, request_size, response_size, timestamp in data @@ -208,7 +208,7 @@ def db_testing_data(): ] influx.write_points([ {"measurement": "apache", - "tags": {"server": location, "sfe": sfe, "location": location, "sfp": sfp, "sf": sf, "sfc": sfc, "sfci": sfci}, + "tags": {"flame_server": location, "flame_sfe": sfe, "flame_location": location, "flame_sfp": sfp, "flame_sf": sf, "flame_sfc": sfc, "flame_sfci": sfci}, "fields": {"avg_processing_time": processing_time, "avg_request_size": request_size, "avg_response_size": response_size}, "time": timestamp * 10 ** 9 } for sfe, location, sfp, sf, sfc, sfci, processing_time, request_size, response_size, timestamp in data diff --git a/src/service/clmcservice/graphapi/tests.py b/src/service/clmcservice/graphapi/tests.py index 33cdd5bb897ddea0c1db9e7141774c561a8a35de..60ee4c1809b165a8166dc64cada16071d704b0e8 100644 --- a/src/service/clmcservice/graphapi/tests.py +++ b/src/service/clmcservice/graphapi/tests.py @@ -377,9 +377,9 @@ class TestGraphAPI(object): # go through the set of input/output (expected) parameters and assert actual results match with expected ones for dc, endpoint, forward_latencies, reverse_latencies, response_time, request_size, response_size, rtt, global_tags in ( - ("DC6", "nginx_1_ep2", [], [], 22.2, 35600, 6420, 22.2, {"location": "DC6", "sfe": "nginx_1_ep2", "server": "DC6", "sfc": "test_sfc", "sfci": "test_sfc_premium", "sfp": "nginx", "sf": "nginx_1"}), - ("DC2", "nginx_1_ep2", [11, 15, 4.5], [5.5, 13, 7.5], 22.2, 35600, 6420, 78, {"location": "DC6", "sfe": "nginx_1_ep2", "server": "DC6", "sfc": "test_sfc", "sfci": "test_sfc_premium", "sfp": "nginx", "sf": "nginx_1"}), - ("DC3", "nginx_1_ep1", [12.5], [7.5], 18.2, 2260, 9660, 38, {"location": "DC4", "sfe": "nginx_1_ep1", "server": "DC4", "sfc": "test_sfc", "sfci": "test_sfc_premium", "sfp": "nginx", "sf": "nginx_1"}) + ("DC6", "nginx_1_ep2", [], [], 22.2, 35600, 6420, 22.2, {"flame_location": "DC6", "flame_sfe": "nginx_1_ep2", "flame_server": "DC6", "flame_sfc": "test_sfc", "flame_sfci": "test_sfc_premium", "flame_sfp": "nginx", "flame_sf": "nginx_1"}), + ("DC2", "nginx_1_ep2", [11, 15, 4.5], [5.5, 13, 7.5], 22.2, 35600, 6420, 78, {"flame_location": "DC6", "flame_sfe": "nginx_1_ep2", "flame_server": "DC6", "flame_sfc": "test_sfc", "flame_sfci": "test_sfc_premium", "flame_sfp": "nginx", "flame_sf": "nginx_1"}), + ("DC3", "nginx_1_ep1", [12.5], [7.5], 18.2, 2260, 9660, 38, {"flame_location": "DC4", "flame_sfe": "nginx_1_ep1", "flame_server": "DC4", "flame_sfc": "test_sfc", "flame_sfci": "test_sfc_premium", "flame_sfp": "nginx", "flame_sf": "nginx_1"}) ): request = testing.DummyRequest() request.matchdict["graph_id"] = request_id @@ -411,10 +411,10 @@ class TestGraphAPI(object): # go through the set of input/output (expected) parameters and assert actual results match with expected ones for dc, endpoint, forward_latencies, reverse_latencies, response_time, request_size, response_size, rtt, global_tags in ( - ("DC5", "apache_1_ep1", [], [], 17.6, 1480, 7860, 17.6, {"location": "DC5", "sfe": "apache_1_ep1", "server": "DC5", "sfc": "test_sfc", "sfci": "test_sfc_non_premium", "sfp": "apache", "sf": "apache_1"}), - ("DC5", "minio_2_ep1", [], [], 7, 2998, 3610, 7, {"location": "DC5", "sfe": "minio_2_ep1", "server": "DC5", "sfc": "test_sfc", "sfci": "test_sfc_non_premium", "sfp": "minio", "sf": "minio_2"}), - ("DC3", "apache_1_ep1", [10, 15], [13, 9], 17.6, 1480, 7860, 64, {"location": "DC5", "sfe": "apache_1_ep1", "server": "DC5", "sfc": "test_sfc", "sfci": "test_sfc_non_premium", "sfp": "apache", "sf": "apache_1"}), - ("DC2", "minio_2_ep1", [11, 15], [13, 7.5], 7, 2998, 3610, 53, {"location": "DC5", "sfe": "minio_2_ep1", "server": "DC5", "sfc": "test_sfc", "sfci": "test_sfc_non_premium", "sfp": "minio", "sf": "minio_2"}) + ("DC5", "apache_1_ep1", [], [], 17.6, 1480, 7860, 17.6, {"flame_location": "DC5", "flame_sfe": "apache_1_ep1", "flame_server": "DC5", "flame_sfc": "test_sfc", "flame_sfci": "test_sfc_non_premium", "flame_sfp": "apache", "flame_sf": "apache_1"}), + ("DC5", "minio_2_ep1", [], [], 7, 2998, 3610, 7, {"flame_location": "DC5", "flame_sfe": "minio_2_ep1", "flame_server": "DC5", "flame_sfc": "test_sfc", "flame_sfci": "test_sfc_non_premium", "flame_sfp": "minio", "flame_sf": "minio_2"}), + ("DC3", "apache_1_ep1", [10, 15], [13, 9], 17.6, 1480, 7860, 64, {"flame_location": "DC5", "flame_sfe": "apache_1_ep1", "flame_server": "DC5", "flame_sfc": "test_sfc", "flame_sfci": "test_sfc_non_premium", "flame_sfp": "apache", "flame_sf": "apache_1"}), + ("DC2", "minio_2_ep1", [11, 15], [13, 7.5], 7, 2998, 3610, 53, {"flame_location": "DC5", "flame_sfe": "minio_2_ep1", "flame_server": "DC5", "flame_sfc": "test_sfc", "flame_sfci": "test_sfc_non_premium", "flame_sfp": "minio", "flame_sf": "minio_2"}) ): request = testing.DummyRequest() request.matchdict["graph_id"] = request_id diff --git a/src/service/clmcservice/graphapi/utilities.py b/src/service/clmcservice/graphapi/utilities.py index 5704b1d7391d32486340b2f472387ca822f0a3ac..18efc199408c727c9bdbb42c81de68da67214934 100644 --- a/src/service/clmcservice/graphapi/utilities.py +++ b/src/service/clmcservice/graphapi/utilities.py @@ -33,7 +33,7 @@ GRAPH_BUILD_URL_PARAMS = ("from", "to") GRAPH_BUILD_QUERY_PARAMS = {"service_function_chain", "service_function_chain_instance", "service_functions"} GRAPH_BUILD_SF_QUERY_PARAMS = {"response_time_field", "request_size_field", "response_size_field", "measurement_name"} -INFLUX_QUERY_TEMPLATE = 'SELECT {0} AS mean_response_time, {1} AS mean_request_size, {2} AS mean_response_size FROM "{3}"."{4}".{5} WHERE sfc=\'{6}\' and sfci=\'{7}\' and time>={8} and time<{9} GROUP BY sfe, location, sf' +INFLUX_QUERY_TEMPLATE = 'SELECT {0} AS mean_response_time, {1} AS mean_request_size, {2} AS mean_response_size FROM "{3}"."{4}".{5} WHERE "flame_sfc"=\'{6}\' and "flame_sfci"=\'{7}\' and time>={8} and time<{9} GROUP BY "flame_sfe", "flame_location", "flame_sf"' RTT_CYPHER_QUERY_TEMPLATE = """ @@ -250,19 +250,19 @@ def build_temporal_graph(request_id, from_timestamp, to_timestamp, json_queries, response_size = result_point["mean_response_size"] # extract the avg response size of the SF from the result # create a ServiceFunction node from the tag value (if it is not already created) - service_function_node = find_or_create_node(graph, "ServiceFunction", name=tags["sf"]) + service_function_node = find_or_create_node(graph, "ServiceFunction", name=tags["flame_sf"]) # create an edge between the the service function and the package (if it is not already created) find_or_create_edge(graph, "instanceOf", service_function_node, service_function_package_node) # crate a utilizedBy edge between the service function and the service function chain instance find_or_create_edge(graph, "utilizedBy", service_function_node, service_function_chain_instance_node) # create an Endpoint node from the tag value (if it is not already created) - ipendpoint_node = find_or_create_node(graph, "Endpoint", name=tags["sfe"], response_time=response_time, request_size=request_size, response_size=response_size, uuid=request_id) + ipendpoint_node = find_or_create_node(graph, "Endpoint", name=tags["flame_sfe"], response_time=response_time, request_size=request_size, response_size=response_size, uuid=request_id) # create an edge between the service function and the endpoint (if it is not already created) find_or_create_edge(graph, "realisedBy", service_function_node, ipendpoint_node) # create a ComputeNode node from the tag value (if it is not already created) - compute_node = find_or_create_node(graph, "ComputeNode", name=tags["location"]) + compute_node = find_or_create_node(graph, "ComputeNode", name=tags["flame_location"]) # create an edge between the endpoint and the compute node (if it is not already created) find_or_create_edge(graph, "hostedBy", ipendpoint_node, compute_node) diff --git a/src/service/clmcservice/graphapi/views.py b/src/service/clmcservice/graphapi/views.py index 710c9afc44f3eda5b8ffab1e33431bcc9e76f2d0..0223aea5b0d7b54967d10ad91832be8592ad10f4 100644 --- a/src/service/clmcservice/graphapi/views.py +++ b/src/service/clmcservice/graphapi/views.py @@ -164,8 +164,8 @@ class GraphAPI(object): log.error("Unexpected error: {0}".format(msg)) raise HTTPBadRequest(msg) - result["global_tags"] = {"sfe": endpoint_node["name"], "server": hosted_by_node["name"], "location": hosted_by_node["name"], - "sfc": reference_node["sfc"], "sfci": reference_node["sfci"], "sfp": sf_package_node["name"], "sf": sf_node["name"]} + result["global_tags"] = {"flame_sfe": endpoint_node["name"], "flame_server": hosted_by_node["name"], "flame_location": hosted_by_node["name"], + "flame_sfc": reference_node["sfc"], "flame_sfci": reference_node["sfci"], "flame_sfp": sf_package_node["name"], "flame_sf": sf_node["name"]} # calculate the Round-Trip-Time total_forward_latency = sum(result["forward_latencies"]) diff --git a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-1.yaml b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-1.yaml index ea52ebfba0e4f7754f6eaff856c327edf88d166a..eb47f97eb1b17ed8b91831faf613f49035e05675 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-1.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-1.yaml @@ -24,7 +24,7 @@ topology_template: granularity: 120 aggregation_method: mean resource_type: - location: watershed + flame_location: watershed comparison_operator: gt action: implementation: @@ -43,9 +43,9 @@ topology_template: threshold: 100 granularity: 120 resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: gte action: implementation: @@ -64,9 +64,9 @@ topology_template: granularity: 60 aggregation_method: last resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: diff --git a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-10.yaml b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-10.yaml index a3ef03924fdfd3abcf14e9bef9389e2268d5a8be..67793a750eee7654c944c7504acb7e1c1d33a9f5 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-10.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-10.yaml @@ -24,7 +24,7 @@ topology_template: granularity: 120 aggregation_method: mean resource_type: - location: watershed + flame_location: watershed comparison_operator: gt action: implementation: @@ -43,9 +43,9 @@ topology_template: threshold: -100 # requests have decreased by at least 100 granularity: 120 resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lte action: implementation: @@ -64,9 +64,9 @@ topology_template: granularity: 60 aggregation_method: last resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: diff --git a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-2.yaml b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-2.yaml index 2ae8d168360aaa61d5d27665595ed9ea4ae4975b..8a06dcf2c47a9c75d6d4dd5516ec9eba11e278b9 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-2.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-2.yaml @@ -23,7 +23,7 @@ topology_template: threshold: 0 granularity: 60 resource_type: - sfp: storage + flame_sfp: storage action: implementation: - http://sfemc.flame.eu/notify @@ -41,9 +41,9 @@ topology_template: granularity: 60 aggregation_method: last resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: less than # invalid comparison operator action: implementation: diff --git a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-3.yaml b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-3.yaml index 05cde5b0b26195a019184da3bf6614fb432a9bd0..4ed49c37360320e59bd4c881b627217a83ffdd85 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-3.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-3.yaml @@ -26,9 +26,9 @@ topology_template: granularity: 60 aggregation_method: last resource_type: - sf_package_id: storage # sf_package_id is not the correct tag name, it is sfp - sf: storage-users - location: watershed + flame_sf_package_id: storage # sf_package_id is not the correct tag name, it is sfp + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: diff --git a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-4.yaml b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-4.yaml index 96cc6fa2382059ee8e48483f356c055232609ade..67c403af9c9edfc01e0b11b38bf1a7837f969baf 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-4.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-4.yaml @@ -26,9 +26,9 @@ topology_template: granularity: 60 aggregation_method: average # wrong aggregation method - should be mean, not average resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: diff --git a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-5.yaml b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-5.yaml index 8ef6f1372232859e518a2d09356362fab9333286..735761389c4e4234c451efca3669303ce0108bed 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-5.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-5.yaml @@ -26,9 +26,9 @@ topology_template: granularity: 60 aggregation_method: mean resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: diff --git a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-6.yaml b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-6.yaml index 944f14b7055b006e900e208e8f92c019ae2d830c..ac13f6fe6eca8ce4b9b80233eba7c65572952360 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-6.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-6.yaml @@ -24,8 +24,8 @@ topology_template: granularity: 120 aggregation_method: mean resource_type: - location: watershed - server: watershed + flame_location: watershed + flame_server: watershed comparison_operator: gt action: implementation: @@ -45,9 +45,9 @@ topology_template: granularity: 60 aggregation_method: last resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: diff --git a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-7.yaml b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-7.yaml index 1c048919c59a560397405ae2991b90de414849e2..acb00ed3ac6ff2380c90d12424d6b386b3a45498 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-7.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-7.yaml @@ -24,7 +24,7 @@ topology_template: granularity: 120 aggregation_method: mean resource_type: - location: watershed + flame_location: watershed comparison_operator: gt action: implementation: @@ -44,9 +44,9 @@ topology_template: granularity: 60 aggregation_method: last resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: @@ -63,7 +63,7 @@ topology_template: threshold: 0 granularity: 60 resource_type: - sfp: storage + flame_sfp: storage action: implementation: - http://sfemc.flame.eu/notify \ No newline at end of file diff --git a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-8.yaml b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-8.yaml index d108984b55ece5ed26e2437d90f67e9d3c0eabed..a2c3009707631525caa656294f0cf2461ba2a0b9 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-8.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-8.yaml @@ -30,9 +30,9 @@ topology_template: granularity: 60 aggregation_method: last resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: @@ -51,9 +51,9 @@ topology_template: threshold: 100 # requests have increased by at least 100 granularity: 120 resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: gte action: implementation: @@ -68,9 +68,9 @@ topology_template: threshold: -100 # requests have decreased by at least 100 granularity: 120 resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lte action: implementation: diff --git a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-9.yaml b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-9.yaml index b6f981977b6b3ae62e3edde1b5648216d7070b97..102c476d55265c73c22b46d889fa2a44d0e85930 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-9.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/invalid/alerts_test_config-9.yaml @@ -22,7 +22,7 @@ topology_template: granularity: 120 aggregation_method: mean resource_type: - location: watershed + flame_location: watershed comparison_operator: gt action: implementation: @@ -42,9 +42,9 @@ topology_template: granularity: 60 aggregation_method: last resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: diff --git a/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-1.yaml b/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-1.yaml index 1d87586297cd5024463c0091f9eb2062eb92001c..eba786b9bed5f58890851a95b76f8bba7fc19d7e 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-1.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-1.yaml @@ -24,7 +24,7 @@ topology_template: granularity: 120 aggregation_method: mean resource_type: - location: watershed + flame_location: watershed comparison_operator: gt action: implementation: @@ -45,9 +45,9 @@ topology_template: granularity: 60 aggregation_method: last resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: diff --git a/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-2.yaml b/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-2.yaml index 6fe0e903cafd74389923598f5618d7bb6b769753..5169f5d4d205f3f9121c5c390a2596235e05de49 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-2.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-2.yaml @@ -25,11 +25,11 @@ topology_template: threshold: -100 # requests have decreased by at least 100 granularity: 120 resource_type: - sfc: companyA-VR # sfc tag is also allowed, even though it is already included in the metadata - sfci: companyA-VR-premium # sfci tag is also allowed, even though it is already included in the metadata - sfp: storage - sf: storage-users - location: watershed + flame_sfc: companyA-VR # sfc tag is also allowed, even though it is already included in the metadata + flame_sfci: companyA-VR-premium # sfci tag is also allowed, even though it is already included in the metadata + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lte action: implementation: @@ -48,7 +48,7 @@ topology_template: threshold: 0 # if requests are less than or equal to 0 (in other words, no measurements are reported) granularity: 60 # check for for missing data for the last 60 seconds resource_type: - sfp: storage + flame_sfp: storage action: implementation: - http://sfemc.flame.eu/notify \ No newline at end of file diff --git a/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-3.yaml b/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-3.yaml index d076ed779187aeb0ece7e6e798e5d106b92a6fa1..ef1c542aa86bbcd08809b850c1bdfb28de2b693b 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-3.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-3.yaml @@ -24,7 +24,7 @@ topology_template: granularity: 120 # aggregation_method is optional, default value is "mean" resource_type: - location: watershed + flame_location: watershed # comparison operator is optional, default value is >= or "gte" action: implementation: @@ -42,9 +42,9 @@ topology_template: granularity: 60 aggregation_method: first resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: diff --git a/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-4.yaml b/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-4.yaml index f6a64217a5306f527e1dc4493d9555dbd6f95606..87e31406e07c0b33767108e9c9de2091a160ef79 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-4.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-4.yaml @@ -24,8 +24,8 @@ topology_template: granularity: 120 aggregation_method: median resource_type: - location: watershed - server: watershed + flame_location: watershed + flame_server: watershed comparison_operator: gt action: implementation: @@ -61,7 +61,7 @@ topology_template: threshold: 0 # if requests are less than or equal to 0 (in other words, no measurements are reported) granularity: 60 # check for for missing data for the last 60 seconds resource_type: - sfp: storage + flame_sfp: storage comparison_operator: gte # although events of type deadman do not use a comparison operator, the validator will not complain if one is given, it will simply ignore it action: implementation: diff --git a/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-5.yaml b/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-5.yaml index e6506877ada6021654d47e1b9c94e012e68be327..f03c52382b2eccbc268617a975cf018bdc8d7c18 100644 --- a/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-5.yaml +++ b/src/service/resources/tosca/test-data/clmc-validator/valid/alerts_test_config-5.yaml @@ -24,7 +24,7 @@ topology_template: granularity: 120 aggregation_method: median resource_type: - location: watershed + flame_location: watershed comparison_operator: gt action: implementation: @@ -61,9 +61,9 @@ topology_template: granularity: 120 aggregation_method: first # Although events of type relative do not require an aggregation method, the validator will not complain if one is given, it will simply ignore it resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: gte action: implementation: diff --git a/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-1.yaml b/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-1.yaml index ce07a9f036302a16b230017d83220f7a58b4b186..a5e9ed304db8f77be067a18b0cb4561b85dd8ce7 100644 --- a/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-1.yaml +++ b/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-1.yaml @@ -13,7 +13,7 @@ triggers: granularity: 120 aggregation_method: mean resource_type: - location: watershed + flame_location: watershed comparison_operator: gt action: implementation: @@ -30,9 +30,9 @@ triggers: granularity: 60 aggregation_method: last resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: diff --git a/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-2.yaml b/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-2.yaml index 3b0515936958d6d5d825a4975e9c242d9ac03260..7bd6e44b5b14bb7431630a2549530ee62774d22f 100644 --- a/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-2.yaml +++ b/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-2.yaml @@ -23,7 +23,7 @@ topology_template: granularity: 120 aggregation_method: mean global_tags: # correct field is called resource_type, not global_tags - location: watershed + flame_location: watershed comparison_operator: gt action: implementation: @@ -42,9 +42,9 @@ topology_template: threshold: 100 granularity: 120 resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: gte action: implementation: diff --git a/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-3.yaml b/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-3.yaml index e8b1c0d8604220aa7520b482b40aa3d345adfc60..94891fe31c116e93a49f9fc5718e6842849a0a9c 100644 --- a/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-3.yaml +++ b/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-3.yaml @@ -23,8 +23,8 @@ topology_template: granularity: 120 aggregation_method: mean resource_type: - location: watershed - server: watershed + flame_location: watershed + flame_server: watershed comparison_operator: gt action: implementation: @@ -44,9 +44,9 @@ topology_template: granularity: 60 aggregation_method: last resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: diff --git a/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-4.yaml b/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-4.yaml index 23b74df548e21c8c42ec82f1cd13ed2a7c6090ca..76b8a0cd04ca08872f104bbb3e3aff9a505b0de6 100644 --- a/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-4.yaml +++ b/src/service/resources/tosca/test-data/tosca-parser/invalid/alerts_test_config-4.yaml @@ -24,7 +24,7 @@ alerts: granularity: 120 aggregation_method: mean resource_type: - location: watershed + flame_location: watershed comparison_operator: gt action: implementation: @@ -44,9 +44,9 @@ alerts: granularity: 60 aggregation_method: last resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: diff --git a/src/service/resources/tosca/test-data/tosca-parser/valid/alerts_test_config-1.yaml b/src/service/resources/tosca/test-data/tosca-parser/valid/alerts_test_config-1.yaml index d70a41697d01b993be13e21d223f24c8b5edb30f..928c25ed767ba906158e52c1649d76f184ae64b2 100644 --- a/src/service/resources/tosca/test-data/tosca-parser/valid/alerts_test_config-1.yaml +++ b/src/service/resources/tosca/test-data/tosca-parser/valid/alerts_test_config-1.yaml @@ -24,8 +24,8 @@ topology_template: granularity: 120 aggregation_method: mean resource_type: - location: watershed - server: watershed + flame_location: watershed + flame_server: watershed comparison_operator: gt action: implementation: @@ -45,9 +45,9 @@ topology_template: granularity: 60 aggregation_method: last resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: @@ -66,9 +66,9 @@ topology_template: threshold: 100 granularity: 120 resource_type: - sf_package: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: gte action: implementation: @@ -83,9 +83,9 @@ topology_template: threshold: -100 granularity: 120 resource_type: - sf_package: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lte action: implementation: @@ -101,7 +101,7 @@ topology_template: threshold: 0 granularity: 60 resource_type: - sf_package: storage + flame_sfp: storage action: implementation: - http://sfemc.flame.eu/notify diff --git a/src/service/resources/tosca/test-data/tosca-parser/valid/alerts_test_config-2.yaml b/src/service/resources/tosca/test-data/tosca-parser/valid/alerts_test_config-2.yaml index 5de75ef4f5e9c8b60715fbc0575a644a17409b3d..5924c13817555788959d792044500d7e0dfe00bb 100644 --- a/src/service/resources/tosca/test-data/tosca-parser/valid/alerts_test_config-2.yaml +++ b/src/service/resources/tosca/test-data/tosca-parser/valid/alerts_test_config-2.yaml @@ -56,7 +56,7 @@ topology_template: threshold: 0 granularity: 60 resource_type: - sfp: storage + flame_sfp: storage action: implementation: - http://sfemc.flame.eu/notify \ No newline at end of file diff --git a/src/service/resources/tosca/test-data/tosca-parser/valid/alerts_test_config-4.yaml b/src/service/resources/tosca/test-data/tosca-parser/valid/alerts_test_config-4.yaml index 4be8c2f8dce4e2e0169c813a3ca20304749fa606..64b19cbe37225546b4e5c73adfb83ee47c9d981d 100644 --- a/src/service/resources/tosca/test-data/tosca-parser/valid/alerts_test_config-4.yaml +++ b/src/service/resources/tosca/test-data/tosca-parser/valid/alerts_test_config-4.yaml @@ -26,9 +26,9 @@ topology_template: granularity: 60 aggregation_method: last resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: lt action: implementation: @@ -43,9 +43,9 @@ topology_template: threshold: 100 granularity: 120 resource_type: - sfp: storage - sf: storage-users - location: watershed + flame_sfp: storage + flame_sf: storage-users + flame_location: watershed comparison_operator: gte action: implementation: diff --git a/src/test/clmctest/alerts/alerts_test_config.yaml b/src/test/clmctest/alerts/alerts_test_config.yaml index 8c469c023b537a7ec20f278b6e1b42942bfa5f39..54d504e78466a7b324d9b1e1dcfe957edac8a857 100644 --- a/src/test/clmctest/alerts/alerts_test_config.yaml +++ b/src/test/clmctest/alerts/alerts_test_config.yaml @@ -26,7 +26,7 @@ topology_template: granularity: 5 aggregation_method: mean resource_type: - location: DC1 + flame_location: DC1 comparison_operator: gte action: implementation: @@ -40,8 +40,8 @@ topology_template: granularity: 10 aggregation_method: mean resource_type: - location: DC1 - sfp: nginx + flame_location: DC1 + flame_sfp: nginx comparison_operator: gte action: implementation: @@ -54,11 +54,12 @@ topology_template: threshold: 5 granularity: 10 resource_type: - sfc: MS_Template_1 # value is already given in metadata so this is optional - sfci: MS_I1 # value is already given in metadata so this is optional - sfp: nginx - sf: adaptive_streaming_nginx_I1 - location: DC1 + flame_sfc: MS_Template_1 # value is already given in metadata so this is optional + flame_sfci: MS_I1 # value is already given in metadata so this is optional + flame_sfp: nginx + flame_sf: adaptive_streaming_nginx_I1 + flame_location: DC1 + flame_server: DC1 comparison_operator: gte action: implementation: @@ -75,11 +76,12 @@ topology_template: threshold: 0 granularity: 5 resource_type: - sfc: MS_Template_1 # value is already given in metadata so this is optional - sfci: MS_I1 # value is already given in metadata so this is optional - sfp: nginx - sf: adaptive_streaming_nginx_I1 - location: DC1 + flame_sfc: MS_Template_1 # value is already given in metadata so this is optional + flame_sfci: MS_I1 # value is already given in metadata so this is optional + flame_sfp: nginx + flame_sf: adaptive_streaming_nginx_I1 + flame_location: DC1 + flame_server: DC1 action: implementation: - http://172.40.231.200:9999/ \ No newline at end of file diff --git a/src/test/clmctest/dashboards/dc_dash.json b/src/test/clmctest/dashboards/dc_dash.json index 7d98cf5c9422218b10513de1e66564c78450a639..318e467dbacf337964df9d6988420f4e141a6c47 100644 --- a/src/test/clmctest/dashboards/dc_dash.json +++ b/src/test/clmctest/dashboards/dc_dash.json @@ -10,7 +10,7 @@ "name": "Mean %CPU", "queries": [ { - "query": "SELECT mean(\"cpu_usage\") AS \"mean_cpu_usage\" FROM \"MSDemo\".\"autogen\".\"procstat\" WHERE time > :dashboardTime: AND \"location\"= :location: GROUP BY time(:interval:) FILL(null)", + "query": "SELECT mean(\"cpu_usage\") AS \"mean_cpu_usage\" FROM \"MSDemo\".\"autogen\".\"procstat\" WHERE time > :dashboardTime: AND \"flame_location\"= :location: GROUP BY time(:interval:) FILL(null)", "queryConfig": { "database": "", "measurement": "", @@ -22,7 +22,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "SELECT mean(\"cpu_usage\") AS \"mean_cpu_usage\" FROM \"MSDemo\".\"autogen\".\"procstat\" WHERE time > :dashboardTime: AND \"location\"= :location: GROUP BY time(:interval:) FILL(null)", + "rawText": "SELECT mean(\"cpu_usage\") AS \"mean_cpu_usage\" FROM \"MSDemo\".\"autogen\".\"procstat\" WHERE time > :dashboardTime: AND \"flame_location\"= :location: GROUP BY time(:interval:) FILL(null)", "range": null, "shifts": null }, @@ -129,7 +129,7 @@ "influxql": "SHOW TAG VALUES ON :database: FROM :measurement: WITH KEY=:tagKey:", "db": "MSDemo", "measurement": "cpu", - "tagKey": "location", + "tagKey": "flame_location", "fieldKey": "" }, "links": { diff --git a/src/test/clmctest/dashboards/minio_dash.json b/src/test/clmctest/dashboards/minio_dash.json index f2976c0bff63b2d213322e7a6c0312d30f42798d..a92200dd7b0129b8648a6c45694fce2da48c700b 100644 --- a/src/test/clmctest/dashboards/minio_dash.json +++ b/src/test/clmctest/dashboards/minio_dash.json @@ -10,7 +10,7 @@ "name": "minio2: Network RX", "queries": [ { - "query": "SELECT derivative(max(\"bytes_recv\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"=:minio2: GROUP BY time(1m)", + "query": "SELECT derivative(max(\"bytes_recv\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"=:minio2: GROUP BY time(1m)", "queryConfig": { "database": "", "measurement": "", @@ -22,7 +22,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "SELECT derivative(max(\"bytes_recv\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"=:minio2: GROUP BY time(1m)", + "rawText": "SELECT derivative(max(\"bytes_recv\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"=:minio2: GROUP BY time(1m)", "range": null, "shifts": null }, @@ -120,7 +120,7 @@ "name": "minio1: Network RX", "queries": [ { - "query": "SELECT derivative(max(\"bytes_recv\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"=:minio1: GROUP BY time(1m)", + "query": "SELECT derivative(max(\"bytes_recv\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"=:minio1: GROUP BY time(1m)", "queryConfig": { "database": "", "measurement": "", @@ -132,7 +132,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "SELECT derivative(max(\"bytes_recv\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"=:minio1: GROUP BY time(1m)", + "rawText": "SELECT derivative(max(\"bytes_recv\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"=:minio1: GROUP BY time(1m)", "range": null, "shifts": null }, @@ -230,7 +230,7 @@ "name": "minio2: Network TX", "queries": [ { - "query": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"=:minio2: GROUP BY time(1m)", + "query": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"=:minio2: GROUP BY time(1m)", "queryConfig": { "database": "", "measurement": "", @@ -242,7 +242,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"=:minio2: GROUP BY time(1m)", + "rawText": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"=:minio2: GROUP BY time(1m)", "range": null, "shifts": null }, @@ -340,7 +340,7 @@ "name": "minio1: Network TX", "queries": [ { - "query": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"=:minio1: GROUP BY time(1m)", + "query": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"=:minio1: GROUP BY time(1m)", "queryConfig": { "database": "", "measurement": "", @@ -352,7 +352,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"=:minio1: GROUP BY time(1m)", + "rawText": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"=:minio1: GROUP BY time(1m)", "range": null, "shifts": null }, @@ -450,7 +450,7 @@ "name": "minio2: Response time", "queries": [ { - "query": "SELECT 100*last(\"0.001\") / last(\"count\") AS \"0.001\", 100*last(\"0.003\") / last(\"count\") AS \"0.003\", 100*last(\"0.005\") / last(\"count\") AS \"0.005\", 100*last(\"0.1\") / last(\"count\") AS \"0.1\", 100*last(\"0.5\") / last(\"count\") AS \"0.5\", 100*last(\"1\") / last(\"count\") AS \"1\" FROM \"MSDemo\".\"autogen\".\"minio_http_requests_duration_seconds\" WHERE time > :dashboardTime: and \"sfe\"=:minio2: GROUP BY time(:interval:) FILL(null)", + "query": "SELECT 100*last(\"0.001\") / last(\"count\") AS \"0.001\", 100*last(\"0.003\") / last(\"count\") AS \"0.003\", 100*last(\"0.005\") / last(\"count\") AS \"0.005\", 100*last(\"0.1\") / last(\"count\") AS \"0.1\", 100*last(\"0.5\") / last(\"count\") AS \"0.5\", 100*last(\"1\") / last(\"count\") AS \"1\" FROM \"MSDemo\".\"autogen\".\"minio_http_requests_duration_seconds\" WHERE time > :dashboardTime: and \"flame_sfe\"=:minio2: GROUP BY time(:interval:) FILL(null)", "queryConfig": { "database": "", "measurement": "", @@ -462,7 +462,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "SELECT 100*last(\"0.001\") / last(\"count\") AS \"0.001\", 100*last(\"0.003\") / last(\"count\") AS \"0.003\", 100*last(\"0.005\") / last(\"count\") AS \"0.005\", 100*last(\"0.1\") / last(\"count\") AS \"0.1\", 100*last(\"0.5\") / last(\"count\") AS \"0.5\", 100*last(\"1\") / last(\"count\") AS \"1\" FROM \"MSDemo\".\"autogen\".\"minio_http_requests_duration_seconds\" WHERE time > :dashboardTime: and \"sfe\"=:minio2: GROUP BY time(:interval:) FILL(null)", + "rawText": "SELECT 100*last(\"0.001\") / last(\"count\") AS \"0.001\", 100*last(\"0.003\") / last(\"count\") AS \"0.003\", 100*last(\"0.005\") / last(\"count\") AS \"0.005\", 100*last(\"0.1\") / last(\"count\") AS \"0.1\", 100*last(\"0.5\") / last(\"count\") AS \"0.5\", 100*last(\"1\") / last(\"count\") AS \"1\" FROM \"MSDemo\".\"autogen\".\"minio_http_requests_duration_seconds\" WHERE time > :dashboardTime: and \"flame_sfe\"=:minio2: GROUP BY time(:interval:) FILL(null)", "range": null, "shifts": null }, @@ -560,7 +560,7 @@ "name": "minio1: Response time", "queries": [ { - "query": "SELECT 100*last(\"0.001\") / last(\"count\") AS \"0.001\", 100*last(\"0.003\") / last(\"count\") AS \"0.003\", 100*last(\"0.005\") / last(\"count\") AS \"0.005\", 100*last(\"0.1\") / last(\"count\") AS \"0.1\", 100*last(\"0.5\") / last(\"count\") AS \"0.5\", 100*last(\"1\") / last(\"count\") AS \"1\" FROM \"MSDemo\".\"autogen\".\"minio_http_requests_duration_seconds\" WHERE time > :dashboardTime: and \"sfe\"=:minio1: GROUP BY time(:interval:) FILL(null)", + "query": "SELECT 100*last(\"0.001\") / last(\"count\") AS \"0.001\", 100*last(\"0.003\") / last(\"count\") AS \"0.003\", 100*last(\"0.005\") / last(\"count\") AS \"0.005\", 100*last(\"0.1\") / last(\"count\") AS \"0.1\", 100*last(\"0.5\") / last(\"count\") AS \"0.5\", 100*last(\"1\") / last(\"count\") AS \"1\" FROM \"MSDemo\".\"autogen\".\"minio_http_requests_duration_seconds\" WHERE time > :dashboardTime: and \"flame_sfe\"=:minio1: GROUP BY time(:interval:) FILL(null)", "queryConfig": { "database": "", "measurement": "", @@ -572,7 +572,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "SELECT 100*last(\"0.001\") / last(\"count\") AS \"0.001\", 100*last(\"0.003\") / last(\"count\") AS \"0.003\", 100*last(\"0.005\") / last(\"count\") AS \"0.005\", 100*last(\"0.1\") / last(\"count\") AS \"0.1\", 100*last(\"0.5\") / last(\"count\") AS \"0.5\", 100*last(\"1\") / last(\"count\") AS \"1\" FROM \"MSDemo\".\"autogen\".\"minio_http_requests_duration_seconds\" WHERE time > :dashboardTime: and \"sfe\"=:minio1: GROUP BY time(:interval:) FILL(null)", + "rawText": "SELECT 100*last(\"0.001\") / last(\"count\") AS \"0.001\", 100*last(\"0.003\") / last(\"count\") AS \"0.003\", 100*last(\"0.005\") / last(\"count\") AS \"0.005\", 100*last(\"0.1\") / last(\"count\") AS \"0.1\", 100*last(\"0.5\") / last(\"count\") AS \"0.5\", 100*last(\"1\") / last(\"count\") AS \"1\" FROM \"MSDemo\".\"autogen\".\"minio_http_requests_duration_seconds\" WHERE time > :dashboardTime: and \"flame_sfe\"=:minio1: GROUP BY time(:interval:) FILL(null)", "range": null, "shifts": null }, @@ -679,7 +679,7 @@ "influxql": "SHOW TAG VALUES ON :database: FROM :measurement: WITH KEY=:tagKey:", "db": "MSDemo", "measurement": "cpu", - "tagKey": "sfe", + "tagKey": "flame_sfe", "fieldKey": "" }, "links": { @@ -702,7 +702,7 @@ "influxql": "SHOW TAG VALUES ON :database: FROM :measurement: WITH KEY=:tagKey:", "db": "MSDemo", "measurement": "cpu", - "tagKey": "sfe", + "tagKey": "flame_sfe", "fieldKey": "" }, "links": { diff --git a/src/test/clmctest/dashboards/nginx_dash.json b/src/test/clmctest/dashboards/nginx_dash.json index 55378a193432fc03b674f199634c3db3d169db82..70a6a3c7035412e24a9f615905c2d0305e05d9f4 100644 --- a/src/test/clmctest/dashboards/nginx_dash.json +++ b/src/test/clmctest/dashboards/nginx_dash.json @@ -10,7 +10,7 @@ "name": "nginx_ep_2: Requests / s", "queries": [ { - "query": "SELECT non_negative_derivative(\"requests\") AS \"requests/sec\" FROM \"MSDemo\".\"autogen\".\"nginx\" WHERE time > :dashboardTime: AND \"sfe\"='nginx_1_ep2'", + "query": "SELECT non_negative_derivative(\"requests\") AS \"requests/sec\" FROM \"MSDemo\".\"autogen\".\"nginx\" WHERE time > :dashboardTime: AND \"flame_sfe\"='nginx_1_ep2'", "queryConfig": { "database": "", "measurement": "", @@ -22,7 +22,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "SELECT non_negative_derivative(\"requests\") AS \"requests/sec\" FROM \"MSDemo\".\"autogen\".\"nginx\" WHERE time > :dashboardTime: AND \"sfe\"='nginx_1_ep2'", + "rawText": "SELECT non_negative_derivative(\"requests\") AS \"requests/sec\" FROM \"MSDemo\".\"autogen\".\"nginx\" WHERE time > :dashboardTime: AND \"flame_sfe\"='nginx_1_ep2'", "range": null, "shifts": null }, @@ -120,7 +120,7 @@ "name": "nginx_ep_2: Network TX", "queries": [ { - "query": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"='nginx_1_ep2' GROUP BY time(1m)", + "query": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"='nginx_1_ep2' GROUP BY time(1m)", "queryConfig": { "database": "", "measurement": "", @@ -132,7 +132,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"='nginx_1_ep2' GROUP BY time(1m)", + "rawText": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"='nginx_1_ep2' GROUP BY time(1m)", "range": null, "shifts": null }, @@ -230,7 +230,7 @@ "name": "nginx_ep_2: Network RX", "queries": [ { - "query": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"='nginx_1_ep2' GROUP By time(1m) fill(previous)", + "query": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"='nginx_1_ep2' GROUP By time(1m) fill(previous)", "queryConfig": { "database": "", "measurement": "", @@ -242,7 +242,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"='nginx_1_ep2' GROUP By time(1m) fill(previous)", + "rawText": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"='nginx_1_ep2' GROUP By time(1m) fill(previous)", "range": null, "shifts": null }, @@ -340,7 +340,7 @@ "name": "nginx_ep_1: Requests / s", "queries": [ { - "query": "SELECT non_negative_derivative(\"requests\") AS \"requests/sec\" FROM \"MSDemo\".\"autogen\".\"nginx\" WHERE time > :dashboardTime: AND \"sfe\"='nginx_1_ep1'", + "query": "SELECT non_negative_derivative(\"requests\") AS \"requests/sec\" FROM \"MSDemo\".\"autogen\".\"nginx\" WHERE time > :dashboardTime: AND \"flame_sfe\"='nginx_1_ep1'", "queryConfig": { "database": "", "measurement": "", @@ -352,7 +352,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "SELECT non_negative_derivative(\"requests\") AS \"requests/sec\" FROM \"MSDemo\".\"autogen\".\"nginx\" WHERE time > :dashboardTime: AND \"sfe\"='nginx_1_ep1'", + "rawText": "SELECT non_negative_derivative(\"requests\") AS \"requests/sec\" FROM \"MSDemo\".\"autogen\".\"nginx\" WHERE time > :dashboardTime: AND \"flame_sfe\"='nginx_1_ep1'", "range": null, "shifts": null }, @@ -450,7 +450,7 @@ "name": "nginx_ep_1: Network TX", "queries": [ { - "query": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"='nginx_1_ep1' GROUP BY time(1m)", + "query": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"='nginx_1_ep1' GROUP BY time(1m)", "queryConfig": { "database": "", "measurement": "", @@ -462,7 +462,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"='nginx_1_ep1' GROUP BY time(1m)", + "rawText": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"TX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"='nginx_1_ep1' GROUP BY time(1m)", "range": null, "shifts": null }, @@ -560,7 +560,7 @@ "name": "nginx_ep_1: Network RX", "queries": [ { - "query": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"='nginx_1_ep1' GROUP By time(1m) fill(previous)", + "query": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"='nginx_1_ep1' GROUP By time(1m) fill(previous)", "queryConfig": { "database": "", "measurement": "", @@ -572,7 +572,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfe\"='nginx_1_ep1' GROUP By time(1m) fill(previous)", + "rawText": "SELECT derivative(max(\"bytes_sent\")) / 62914560 AS \"RX_Mb_per_second\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfe\"='nginx_1_ep1' GROUP By time(1m) fill(previous)", "range": null, "shifts": null }, @@ -670,7 +670,7 @@ "name": "nginx_ep_2: CPU usage", "queries": [ { - "query": "SELECT mean(\"cpu_usage\") AS \"mean_cpu_usage\" FROM \"MSDemo\".\"autogen\".\"procstat\" WHERE time > :dashboardTime: AND \"exe\"='nginx' AND \"sfe\"='nginx_1_ep2' GROUP BY time(:interval:) FILL(null)", + "query": "SELECT mean(\"cpu_usage\") AS \"mean_cpu_usage\" FROM \"MSDemo\".\"autogen\".\"procstat\" WHERE time > :dashboardTime: AND \"exe\"='nginx' AND \"flame_sfe\"='nginx_1_ep2' GROUP BY time(:interval:) FILL(null)", "queryConfig": { "database": "MSDemo", "measurement": "procstat", @@ -693,7 +693,7 @@ "exe": [ "nginx" ], - "sfe": [ + "flame_sfe": [ "nginx_1_ep2" ] }, @@ -801,7 +801,7 @@ "name": "nginx_ep_1: CPU usage", "queries": [ { - "query": "SELECT mean(\"cpu_usage\") AS \"mean_cpu_usage\" FROM \"MSDemo\".\"autogen\".\"procstat\" WHERE time > :dashboardTime: AND \"exe\"='nginx' AND \"sfe\"='nginx_1_ep1' GROUP BY time(:interval:) FILL(null)", + "query": "SELECT mean(\"cpu_usage\") AS \"mean_cpu_usage\" FROM \"MSDemo\".\"autogen\".\"procstat\" WHERE time > :dashboardTime: AND \"exe\"='nginx' AND \"flame_sfe\"='nginx_1_ep1' GROUP BY time(:interval:) FILL(null)", "queryConfig": { "database": "MSDemo", "measurement": "procstat", @@ -824,7 +824,7 @@ "exe": [ "nginx" ], - "sfe": [ + "flame_sfe": [ "nginx_1_ep1" ] }, diff --git a/src/test/clmctest/dashboards/sf_dash.json b/src/test/clmctest/dashboards/sf_dash.json index 10b2da9a5c0d74608c84072f555d2a2e66bdb599..a131ad0c75a47609329daebb7d9ad4557016ddaf 100644 --- a/src/test/clmctest/dashboards/sf_dash.json +++ b/src/test/clmctest/dashboards/sf_dash.json @@ -10,7 +10,7 @@ "name": "Average MB/s sent/recv for service-function 2", "queries": [ { - "query": "select derivative(total_RX_MB, 1m) / 60 as RX_MB_per_s, derivative(total_TX_MB, 1m) / 60 as TX_MB_per_s from (select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfp\"=:sf2: GROUP BY time(1m), sfe FILL(null)) group by time(1m)) ", + "query": "select derivative(total_RX_MB, 1m) / 60 as RX_MB_per_s, derivative(total_TX_MB, 1m) / 60 as TX_MB_per_s from (select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfp\"=:sf2: GROUP BY time(1m), \"flame_sfe\" FILL(null)) group by time(1m)) ", "queryConfig": { "database": "", "measurement": "", @@ -22,7 +22,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "select derivative(total_RX_MB, 1m) / 60 as RX_MB_per_s, derivative(total_TX_MB, 1m) / 60 as TX_MB_per_s from (select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfp\"=:sf2: GROUP BY time(1m), sfe FILL(null)) group by time(1m)) ", + "rawText": "select derivative(total_RX_MB, 1m) / 60 as RX_MB_per_s, derivative(total_TX_MB, 1m) / 60 as TX_MB_per_s from (select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfp\"=:sf2: GROUP BY time(1m), \"flame_sfe\" FILL(null)) group by time(1m)) ", "range": null, "shifts": null }, @@ -120,7 +120,7 @@ "name": "Total MB sent/recv for service-function 2", "queries": [ { - "query": "select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfp\"=:sf2: GROUP BY time(1m), sfe FILL(null)) group by time(1m)", + "query": "select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfp\"=:sf2: GROUP BY time(1m), \"flame_sfe\" FILL(null)) group by time(1m)", "queryConfig": { "database": "", "measurement": "", @@ -132,7 +132,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfp\"=:sf2: GROUP BY time(1m), sfe FILL(null)) group by time(1m)", + "rawText": "select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfp\"=:sf2: GROUP BY time(1m), \"flame_sfe\" FILL(null)) group by time(1m)", "range": null, "shifts": null }, @@ -230,7 +230,7 @@ "name": "Average MB/s sent/recv for service-function 1", "queries": [ { - "query": "select derivative(total_RX_MB, 1m) / 60 as RX_MB_per_s, derivative(total_TX_MB, 1m) / 60 as TX_MB_per_s from (select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfp\"=:sf1: GROUP BY time(1m), sfe FILL(null)) group by time(1m)) ", + "query": "select derivative(total_RX_MB, 1m) / 60 as RX_MB_per_s, derivative(total_TX_MB, 1m) / 60 as TX_MB_per_s from (select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfp\"=:sf1: GROUP BY time(1m), \"flame_sfe\" FILL(null)) group by time(1m)) ", "queryConfig": { "database": "", "measurement": "", @@ -242,7 +242,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "select derivative(total_RX_MB, 1m) / 60 as RX_MB_per_s, derivative(total_TX_MB, 1m) / 60 as TX_MB_per_s from (select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfp\"=:sf1: GROUP BY time(1m), sfe FILL(null)) group by time(1m)) ", + "rawText": "select derivative(total_RX_MB, 1m) / 60 as RX_MB_per_s, derivative(total_TX_MB, 1m) / 60 as TX_MB_per_s from (select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfp\"=:sf1: GROUP BY time(1m), \"flame_sfe\" FILL(null)) group by time(1m)) ", "range": null, "shifts": null }, @@ -340,7 +340,7 @@ "name": "Total MB sent/recv for service-function 1", "queries": [ { - "query": "select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfp\"=:sf1: GROUP BY time(1m), sfe FILL(null)) group by time(1m)", + "query": "select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfp\"=:sf1: GROUP BY time(1m), \"flame_sfe\" FILL(null)) group by time(1m)", "queryConfig": { "database": "", "measurement": "", @@ -352,7 +352,7 @@ "tags": [] }, "areTagsAccepted": false, - "rawText": "select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"sfp\"=:sf1: GROUP BY time(1m), sfe FILL(null)) group by time(1m)", + "rawText": "select sum(RX_MB) as total_RX_MB, sum(TX_MB) as total_TX_MB from (SELECT last(\"bytes_recv\") / 1048576 AS \"RX_MB\", last(\"bytes_sent\") / 1048576 AS \"TX_MB\" FROM \"MSDemo\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"flame_sfp\"=:sf1: GROUP BY time(1m), \"flame_sfe\" FILL(null)) group by time(1m)", "range": null, "shifts": null }, @@ -459,7 +459,7 @@ "influxql": "SHOW TAG VALUES ON :database: FROM :measurement: WITH KEY=:tagKey:", "db": "MSDemo", "measurement": "cpu", - "tagKey": "sfp", + "tagKey": "flame_sfp", "fieldKey": "" }, "links": { @@ -482,7 +482,7 @@ "influxql": "SHOW TAG VALUES ON :database: FROM :measurement: WITH KEY=:tagKey:", "db": "MSDemo", "measurement": "cpu", - "tagKey": "sfp", + "tagKey": "flame_sfp", "fieldKey": "" }, "links": { diff --git a/src/test/clmctest/inputs/test_telegraf_agents.py b/src/test/clmctest/inputs/test_telegraf_agents.py index d8951d375e6965191983a9be71591cfe8aac9f10..952eb35f0290c1df184b545842dc56bcfadeed29 100644 --- a/src/test/clmctest/inputs/test_telegraf_agents.py +++ b/src/test/clmctest/inputs/test_telegraf_agents.py @@ -81,4 +81,4 @@ def test_global_tag_filtering(influxdb, query): query_result = influxdb.query(query).items()[0] tags = query_result[0][1].keys() - assert set(tags).issuperset({"sfc", "sfci", "sfp", "sf", "sfe", "server", "location"}) + assert set(tags).issuperset({"flame_sfc", "flame_sfci", "flame_sfp", "flame_sf", "flame_sfe", "flame_server", "flame_location"}) diff --git a/src/test/clmctest/monitoring/test_simresults.py b/src/test/clmctest/monitoring/test_simresults.py index 9bbacc41f21fde261b9f4d1c16a2070767f3d58e..46feff406a4b14c4d3d6db8fe7639f338bdcbb66 100644 --- a/src/test/clmctest/monitoring/test_simresults.py +++ b/src/test/clmctest/monitoring/test_simresults.py @@ -53,45 +53,45 @@ class TestSimulation(object): ('SELECT count(*) FROM "media_service_A"."autogen"."net_port_io"', {"time": "1970-01-01T00:00:00Z", "count_RX_BYTES_PORT_M": 7200, "count_TX_BYTES_PORT_M": 7200}), - ('SELECT count(*) FROM "media_service_A"."autogen"."endpoint_config" WHERE sfe=\'endpoint1.ms-A.ict-flame.eu\'', + ('SELECT count(*) FROM "media_service_A"."autogen"."endpoint_config" WHERE "flame_sfe"=\'endpoint1.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "count_current_state_time": 3639, "count_unplaced_sum": 3639, "count_unplaced_mst": 3639, "count_placing_sum": 3639, "count_placing_mst": 3639, "count_placed_sum": 3639, "count_placed_mst": 3639, "count_booting_sum": 3639, "count_booting_mst": 3639, "count_booted_sum": 3639, "count_booted_mst": 3639, "count_connecting_sum": 3639, "count_connecting_mst": 3639, "count_connected_sum": 3639, "count_connected_mst": 3639, "count_cpus": 3639, "count_memory": 3639, "count_storage": 3639}), - ('SELECT count(*) FROM "media_service_A"."autogen"."endpoint_config" WHERE sfe=\'endpoint2.ms-A.ict-flame.eu\'', + ('SELECT count(*) FROM "media_service_A"."autogen"."endpoint_config" WHERE "flame_sfe"=\'endpoint2.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "count_current_state_time": 3639, "count_unplaced_sum": 3639, "count_unplaced_mst": 3639, "count_placing_sum": 3639, "count_placing_mst": 3639, "count_placed_sum": 3639, "count_placed_mst": 3639, "count_booting_sum": 3639, "count_booting_mst": 3639, "count_booted_sum": 3639, "count_booted_mst": 3639, "count_connecting_sum": 3639, "count_connecting_mst": 3639, "count_connected_sum": 3639, "count_connected_mst": 3639, "count_cpus": 3639, "count_memory": 3639, "count_storage": 3639}), - ('SELECT count(*) FROM "media_service_A"."autogen"."mpegdash_mc_config" WHERE sfe=\'endpoint1.ms-A.ict-flame.eu\'', + ('SELECT count(*) FROM "media_service_A"."autogen"."mpegdash_mc_config" WHERE "flame_sfe"=\'endpoint1.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "count_current_state_time": 3607, "count_running_mst": 3607, "count_running_sum": 3607, "count_starting_mst": 3607, "count_starting_sum": 3607, "count_stopped_mst": 3607, "count_stopped_sum": 3607, "count_stopping_mst": 3607, "count_stopping_sum": 3607}), - ('SELECT count(*) FROM "media_service_A"."autogen"."mpegdash_mc_config" WHERE sfe=\'endpoint2.ms-A.ict-flame.eu\'', + ('SELECT count(*) FROM "media_service_A"."autogen"."mpegdash_mc_config" WHERE "flame_sfe"=\'endpoint2.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "count_current_state_time": 3607, "count_running_mst": 3607, "count_running_sum": 3607, "count_starting_mst": 3607, "count_starting_sum": 3607, "count_stopped_mst": 3607, "count_stopped_sum": 3607, "count_stopping_mst": 3607, "count_stopping_sum": 3607}), - ('SELECT mean(unplaced_mst) as "unplaced_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE unplaced_mst <> 0 and sfe=\'endpoint1.ms-A.ict-flame.eu\'', + ('SELECT mean(unplaced_mst) as "unplaced_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE unplaced_mst <> 0 and "flame_sfe"=\'endpoint1.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "unplaced_mst": 0.7}), - ('SELECT mean(placing_mst) as "placing_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE placing_mst <> 0 and sfe=\'endpoint1.ms-A.ict-flame.eu\'', + ('SELECT mean(placing_mst) as "placing_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE placing_mst <> 0 and "flame_sfe"=\'endpoint1.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "placing_mst": 9.4}), - ('SELECT mean(placed_mst) as "placed_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE placed_mst <> 0 and sfe=\'endpoint1.ms-A.ict-flame.eu\'', + ('SELECT mean(placed_mst) as "placed_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE placed_mst <> 0 and "flame_sfe"=\'endpoint1.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "placed_mst": 1.7000000000000002}), - ('SELECT mean(booting_mst) as "booting_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE booting_mst <> 0 and sfe=\'endpoint1.ms-A.ict-flame.eu\'', + ('SELECT mean(booting_mst) as "booting_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE booting_mst <> 0 and "flame_sfe"=\'endpoint1.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "booting_mst": 9.6}), - ('SELECT mean(booted_mst) as "booted_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE booted_mst <> 0 and sfe=\'endpoint1.ms-A.ict-flame.eu\'', + ('SELECT mean(booted_mst) as "booted_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE booted_mst <> 0 and "flame_sfe"=\'endpoint1.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "booted_mst": 2.1}), - ('SELECT mean(connecting_mst) as "connecting_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE connecting_mst <> 0 and sfe=\'endpoint1.ms-A.ict-flame.eu\'', + ('SELECT mean(connecting_mst) as "connecting_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE connecting_mst <> 0 and "flame_sfe"=\'endpoint1.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "connecting_mst": 10.2}), - ('SELECT mean(connected_mst) as "connected_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE connected_mst <> 0 and sfe=\'endpoint1.ms-A.ict-flame.eu\'', + ('SELECT mean(connected_mst) as "connected_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE connected_mst <> 0 and "flame_sfe"=\'endpoint1.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "connected_mst": 3605.0}), - ('SELECT mean(unplaced_mst) as "unplaced_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE unplaced_mst <> 0 and sfe=\'endpoint2.ms-A.ict-flame.eu\'', + ('SELECT mean(unplaced_mst) as "unplaced_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE unplaced_mst <> 0 and "flame_sfe"=\'endpoint2.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "unplaced_mst": 0.7}), - ('SELECT mean(placing_mst) as "placing_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE placing_mst <> 0 and sfe=\'endpoint2.ms-A.ict-flame.eu\'', + ('SELECT mean(placing_mst) as "placing_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE placing_mst <> 0 and "flame_sfe"=\'endpoint2.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "placing_mst": 9.4}), - ('SELECT mean(placed_mst) as "placed_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE placed_mst <> 0 and sfe=\'endpoint2.ms-A.ict-flame.eu\'', + ('SELECT mean(placed_mst) as "placed_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE placed_mst <> 0 and "flame_sfe"=\'endpoint2.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "placed_mst": 1.7000000000000002}), - ('SELECT mean(booting_mst) as "booting_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE booting_mst <> 0 and sfe=\'endpoint2.ms-A.ict-flame.eu\'', + ('SELECT mean(booting_mst) as "booting_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE booting_mst <> 0 and "flame_sfe"=\'endpoint2.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "booting_mst": 9.6}), - ('SELECT mean(booted_mst) as "booted_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE booted_mst <> 0 and sfe=\'endpoint2.ms-A.ict-flame.eu\'', + ('SELECT mean(booted_mst) as "booted_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE booted_mst <> 0 and "flame_sfe"=\'endpoint2.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "booted_mst": 2.1}), - ('SELECT mean(connecting_mst) as "connecting_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE connecting_mst <> 0 and sfe=\'endpoint2.ms-A.ict-flame.eu\'', + ('SELECT mean(connecting_mst) as "connecting_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE connecting_mst <> 0 and "flame_sfe"=\'endpoint2.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "connecting_mst": 10.2}), - ('SELECT mean(connected_mst) as "connected_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE connected_mst <> 0 and sfe=\'endpoint2.ms-A.ict-flame.eu\'', + ('SELECT mean(connected_mst) as "connected_mst" FROM "media_service_A"."autogen"."endpoint_config" WHERE connected_mst <> 0 and "flame_sfe"=\'endpoint2.ms-A.ict-flame.eu\'', {"time": "1970-01-01T00:00:00Z", "connected_mst": 3605.0}), ('SELECT mean(stopped_sum) as "stopped_sum" FROM "media_service_A"."autogen"."mpegdash_mc_config" WHERE stopped_sum <> 0',