Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ RUN apt update && apt upgrade -y

COPY pkg/*.txt ${PKG_DIR}/
RUN pip install --upgrade pip && \
pip install --upgrade --use-deprecated=legacy-resolver -r ${PKG_DIR}/pip_requirements.txt && \
pip install --upgrade spaceone-api
pip install --upgrade --use-deprecated=legacy-resolver -r ${PKG_DIR}/pip_requirements.txt

COPY src ${SRC_DIR}

Expand Down
4 changes: 3 additions & 1 deletion pkg/pip_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
google-api-python-client
schematics
schematics
spaceone-api>=1.0.0,<2.0.0
spaceone-core>=1.0.0,<2.0.0
6 changes: 6 additions & 0 deletions src/cloudforet/monitoring/conf/global_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
'filters': {
'masking': {
'rules': {
'DataSource.verify': [
'secret_data'
],
'Log.list': [
'secret_data'
],
'Log.list_logs':[
'secret_data'
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def list_log_entries(self, params):
'pageSize': 10000
}

_LOGGER.debug(f'Cloud Logging Filter: {body["filter"]}')
_LOGGER.info(f'Cloud Logging Filter: {body["filter"]}')

request = self.client.entries().list(body=body)

Expand Down
2 changes: 2 additions & 0 deletions src/cloudforet/monitoring/manager/monitoring_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ def list_logs(self, params):
except Exception as e:
raise ERROR_CONVERT_EVENT(event=log, error=e)

if not event_vos:
continue
yield Log({'results': event_vos})
2 changes: 2 additions & 0 deletions src/cloudforet/monitoring/service/monitoring_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@


@authentication_handler
@authorization_handler
@event_handler
class MonitoringService(BaseService):
def __init__(self, metadata):
super().__init__(metadata)
Expand Down
Loading