ISISComputingGroup / IBEX

Top level repository for IBEX stories
5 stars 2 forks source link

genie_python: usage statistics #5447

Closed DominicOram closed 3 years ago

DominicOram commented 4 years ago

As a developer I would like to know who is using which parts of our API. This would be useful as:

Acceptance Criteria

John-Holt-Tessella commented 4 years ago

Part one already sort of exists. All genie commands are logged to C:\Instrument\var\logs\genie_python which is readable from anywhere. However it isn't particularly easy to access or get statistics from.

rerpha commented 3 years ago

assigning myself as I think this would be a good work experience project.

rerpha commented 3 years ago

Some thoughts:

rerpha commented 3 years ago

https://github.com/ISISComputingGroup/ibex_developers_manual/wiki/Graylog created

rerpha commented 3 years ago

https://github.com/ISISComputingGroup/IBEX/issues/6645 created following on from this

rerpha commented 3 years ago

Note that this functionality was not added to the simulation API as it wasn't logging beforehand. This is a replacement and addition to what was previously being logged.

rerpha commented 3 years ago

PRs:

To review:

As a note, we can leave it in the code as it silently doesn't push if there is no graylog instance up, it should still log to file. in #6645 we should change this to point to a central instance.

DominicOram commented 3 years ago
rerpha commented 3 years ago
* Can you make a breadcrumb for the wiki page please?

* Can you add the 2nd bullet above into wiki page?
  I couldn't get the graylog server working. I think it's started up correctly:
  ![image](https://user-images.githubusercontent.com/10086797/126326068-43a567a3-9567-487e-91d7-693fe5a58a2f.png)
  But I can't get into the web interface:
  ![image](https://user-images.githubusercontent.com/10086797/126326155-3c196dd9-b6c6-4197-b5ea-00bd46d5dac1.png)
  When you're back can we have a look at this and make sure the documentation is correct?
  I also think that a system test would be good, if possible.

you need to use 127.0.0.1 instead of localhost, not sure if its a bug but i had the same issue. i think this could be a docker-port binding issue but it can be explicitly set when deployed.

will finish this ticket up when i have some time

rerpha commented 3 years ago

I tried to set up the inputs etc via a content pack but had no luck after a few hours of playing, so we'll have to manually do that on deployment - the wiki page should show instructions on how to add the inputs. I added a breadcrumb as well. will have a go at system testing now

rerpha commented 3 years ago

system testing is going to be a pain to do as we need to automatically set up inputs and extractors each time the graylog docker container is started which i haven't managed to successfully do

DominicOram commented 3 years ago

I added system testing to the creating the central graylog instance ticket