One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| http { | |
| log_format bodylog '$remote_addr - $remote_user [$time_local] ' | |
| '"$request" $status $body_bytes_sent ' | |
| '"$http_referer" "$http_user_agent" $request_time ' | |
| '<"$request_body" >"$resp_body"'; | |
| lua_need_request_body on; | |
| set $resp_body ""; | |
| body_filter_by_lua ' |
| #!/bin/sh | |
| # install stable nginx | |
| # even though nginx will be replaced | |
| # by compiling from source | |
| # this installs latest versions | |
| # of required libs | |
| add-apt-repository -y ppa:nginx/stable \ | |
| && apt-get update \ | |
| && apt-get install -y nginx \ |
| # Exported from npc_groups_profiles.py by JDTech | |
| # | |
| # Values are in following format: | |
| # TargetProfile = [name],[EM %],[Thermal %],[Kinetic %],[Explosive %],[Max velocity m/s],[Signature radius m],[Radius m] | |
| TargetProfile = Sentry Gun,22.499999999999996,18.125000000000004,19.374999999999996,18.75,0.0,100.0,100.0 | |
| TargetProfile = Police Drone,18.458819370802402,19.288617886178862,21.57601235415237,22.222782258064516,2000.0,100.0,100.0 | |
| TargetProfile = Pirate Drone,18.59375,18.281250000000004,21.030745967741936,20.46875,250.0,87.5,87.5 | |
| TargetProfile = LCO Drone,0.0,0.0,0.0,0.0,350.0,100.0,100.0 | |
| TargetProfile = Minor Threat,18.282493368700266,15.714285714285714,23.67302955665025,27.224221627050554,380.0,45.0,45.0 | |
| TargetProfile = Rogue Drone,17.14285714285714,18.571428571428573,24.28571428571429,25.71428571428571,250.0,45.0,45.0 |
(Assuming a Debian 8-like system)
Install prometheus-node-exporter
$ sudo apt update && sudo apt install prometheus-node-exporterConfigure prometheus-node-exporter to expose metrics only to localhost, not on to all networks. Modify file /etc/default/prometheus-node-exporter:
# Set the command-line arguments to pass to the server.