Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L3af on windows #68

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Conversation

evershalik
Copy link
Contributor

Signed-off-by: SHANKAR shankar.s@ramanujan.du.ac.in

@@ -71,4 +71,4 @@ enabled: false
# san-match-rules: .+l3afd.l3af.io,.*l3af.l3af.io,^l3afd.l3af.io$

[l3af-config-store]
filename: /var/l3afd/l3af-config.json
filename: /var/l3afd/l3af-config.json
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert?

dev_environment/cfg/l3afd_win.cfg Outdated Show resolved Hide resolved
- Clang
- nmake
- [Golang](https://aka.ms/vs/17/release/vs_buildtools.exe)
- C++ using: [MSYS2](https://www.msys2.org/)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to know why MSYS2 is needed, so we can work to remove that dependency

dev_environment/l3af_on_windows.md Outdated Show resolved Hide resolved
dev_environment/l3af_on_windows.md Outdated Show resolved Hide resolved
dev_environment/l3af_on_windows.md Outdated Show resolved Hide resolved
dev_environment/l3af_on_windows.md Outdated Show resolved Hide resolved
dev_environment/l3af_on_windows.md Outdated Show resolved Hide resolved
dev_environment/l3af_on_windows.md Outdated Show resolved Hide resolved
@evershalik evershalik marked this pull request as ready for review August 10, 2023 06:30
dev_environment/l3af_on_windows.md Outdated Show resolved Hide resolved
dev_environment/l3af_on_windows.md Outdated Show resolved Hide resolved
dev_environment/l3af_on_windows.md Show resolved Hide resolved
dev_environment/l3af_on_windows.md Outdated Show resolved Hide resolved
dev_environment/l3af_on_windows.md Outdated Show resolved Hide resolved
dev_environment/l3af_on_windows.md Outdated Show resolved Hide resolved
dev_environment/cfg/l3afd_win.cfg Outdated Show resolved Hide resolved
@dthaler
Copy link
Collaborator

dthaler commented Aug 30, 2023

Please rebase to resolve conflicts.

evershalik and others added 17 commits September 1, 2023 13:31
Signed-off-by: SHANKAR <shankar.s@ramanujan.du.ac.in>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Signed-off-by: SHANKAR <shankar.s@ramanujan.du.ac.in>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Signed-off-by: SHANKAR <shankar.s@ramanujan.du.ac.in>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Signed-off-by: SHANKAR <shankar.s@ramanujan.du.ac.in>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Signed-off-by: SHANKAR <shankar.s@ramanujan.du.ac.in>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Signed-off-by: SHANKAR <shankar.s@ramanujan.du.ac.in>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Signed-off-by: SHANKAR <shankar.s@ramanujan.du.ac.in>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Signed-off-by: SHANKAR <shankar.s@ramanujan.du.ac.in>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Signed-off-by: SHANKAR <shankar.s@ramanujan.du.ac.in>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
Signed-off-by: evershalik <shankar.s@ramanujan.du.ac.in>
@@ -0,0 +1,85 @@
## Installing Grafana and Prometheus on Windows System
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Installing Grafana and Prometheus on Windows System
## Installing Grafana and Prometheus on Windows

dev_environment/Prometheus_Grafana_Win.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@dthaler dthaler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need images/l3af-on-windows/prometheus_grafana/Grafana_Dashboard1.png files in this PR? Shouldn't dashboard images not be windows specific?


### Installation of Prometheus as Service in Windows

You can download Prometheus for windows from https://prometheus.io/download/. However, installing prometheus as a service you need to use `NSSM explorer`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You can download Prometheus for windows from https://prometheus.io/download/. However, installing prometheus as a service you need to use `NSSM explorer`.
You can download Prometheus for Windows from https://prometheus.io/download/. However, installing prometheus as a service you need to use `NSSM explorer`.

For example:
![Prometheus_Install](../images/l3af-on-windows/prometheus_grafana/Prometheus_Install.png)

Open `service.msc` and you can see prometheus service is installed
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Open `service.msc` and you can see prometheus service is installed
Open `service.msc` and you can see the prometheus service is installed


Navigate to prometheus `config file path` and open the “**prometheus.yml**”

You need to add job for `wmi exporter` and `l3afd` , as shown below:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You need to add job for `wmi exporter` and `l3afd` , as shown below:
You need to add a job for `wmi exporter` and `l3afd` , as shown below:


![prometheus_dashboard](../images/l3af-on-windows/prometheus_grafana/prometheus_dashboard.png)

Now you can access Prometheus service.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Now you can access Prometheus service.
Now you can access the Prometheus service.


![prometheus_svc](../images/l3af-on-windows/prometheus_grafana/prometheus_svc.png)

After starting Prometheus service, navigate to http://localhost:9090/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: sometimes Prometheus is capitalized in this document, sometimes not. be consistent throughout.


![prometheus_graph](../images/l3af-on-windows/prometheus_grafana/prometheus_graph.png)

## Grafana Dashboard files by l3af:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Grafana Dashboard files by l3af:
## Grafana Dashboard files by L3AF:


### Steps to Build l3afd on Windows:

1. Clone l3afd repo:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Clone l3afd repo:
1. Clone the l3afd repository:

cmake --build build
```

>l3afd.exe file will be created after this.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
>l3afd.exe file will be created after this.
>l3afd.exe will be created after this.

Co-authored-by: Dave Thaler <dthaler1968@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants