lordgamez commented on code in PR #1695:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1695#discussion_r1439539348
##########
bootstrap.sh:
##########
@@ -339,6 +339,9 @@ add_option PROMETHEUS_ENABLED ${TRUE} "ENABLE_PROMETHEUS"
add_option OPENSSL_ENABLED ${TRUE} "OPENSSL_OFF"
add_dependency OPENSSL_ENABLED "opensslbuild"
+add_option GRAFANA_LOKI_ENABLED ${TRUE} "ENABLE_GRAFANA_LOKI"
+set_dependency GRAFANA_LOKI_ENABLED HTTP_CURL_ENABLED
Review Comment:
It should be false, updated in 083c28ee59f96352e89d5675d635ea3b91bd9942
##########
docker/test/integration/cluster/checkers/GrafanaLokiChecker.py:
##########
@@ -0,0 +1,54 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+import requests
+from typing import List
+from utils import wait_for
+
+
+class GrafanaLokiChecker:
+ def __init__(self):
+ self.url = "localhost:3100/loki/api/v1/query"
+
+ def veify_log_lines_on_grafana_loki(self, lines: List[str], ssl: bool,
tenant_id: str):
+ labels = '{job="minifi"}'
+ prefix = "http://"
+ if ssl:
+ prefix = "https://"
+
+ query_url = f"{prefix}{self.url}?query={labels}"
+
+ headers = None
+ if tenant_id:
+ headers = {'X-Scope-OrgID': tenant_id}
+
+ response = requests.get(query_url, verify=False, timeout=30,
headers=headers)
+ if response.status_code >= 200 and response.status_code < 300:
Review Comment:
Updated in 083c28ee59f96352e89d5675d635ea3b91bd9942
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]