monarc-project / stats-service Goto Github PK
View Code? Open in Web Editor NEWStats Service for @monarc-project
Home Page: https://dashboard.monarc.lu
License: GNU Affero General Public License v3.0
Stats Service for @monarc-project
Home Page: https://dashboard.monarc.lu
License: GNU Affero General Public License v3.0
The service is already providing an API but it could be convenient to provide a ZeroMQ feed.
It can for example be used to publish new stats to subscribers (like a live dashboard) or to synchronize several stats-api instances.
It would be safer to check the format of stats sent to Stats Service. The function to check the format is already implemented, partly.
This would prevent the processors from failing when trying to evaluate stats based on data with some missing properties.
Example:
[
{
"anr": "0a3ca941-35e1-42f7-8003-9b7bfa03cc2d",
"type": "vulnerability",
"date": "2021-03-05",
"data": [
{
"averageRate": "3",
"count": 1,
"label1": "Mauvais dimensionnement des dispositifs de secours énergie (onduleur, batteries...)",
"label2": "Incorrect sizing of emergency power supply equipment (inverter, batteries, etc.)",
"label3": "Schlechte Dimensionierung der Notversorgungseinheiten (Wechselrichter, Batterien usw.)",
"label4": "Verkeerde dimensionering van de noodvoedingssystemen (omzetter, batterijen ...)",
"maxRisk": 6,
"uuid": "69fc280e-4591-11e9-9173-0800277f0571"
}
]
}
]
It will check the format of the value of the data field.
For example if the key "uuid" is missing, the stats must not be accepted. Else the processors.
Describe the bug
When installing the Stats service using Docker Compose, the following error message is issued.
[+] Building 0.0s (0/0)
[+] Running 0/0
⠋ Container statsservice Creating 0.0s
Error response from daemon: invalid mount config for type "volume": invalid mount path: 'statsservice/static' mount path must be absolute
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Starting the Docker container without error message during mount
Desktop (please complete the following information):
Questions | Answers |
---|---|
Type of issue | Bug |
OS version (server) | Ubuntu 22.04 |
Docker version | 24.0.1, build 6802122 |
Docker Compose Version | v2.18.1 |
MONARC Stats Service, the service behind dashboard.monarc.lu, operated by CASES Luxembourg, aims to provide relevant data about the current cybersecurity trends, focused in the Luxembourg area. This is inherent to the core mission of CASES and the fact that most of MONARC users are located in the Luxembourg Greater Region. However, MONARC is used more and more and all over the world. And threats can vary around the world. This is why it could be nice to add a geolocation attribute to clients (not necessary something precise - city or region level is enough). This attribute could be set via a form by the users.
Also it would be simply useful to be able to filter out data from some users (with a cybersecurity geographical context too much different). After all, we are using a .lu TLD.
These filtered data could still be displayed, but why not on a map (OpenStreet map)...
Originally posted by @cedricbonhomme in #7
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.