Feature monitor the resource over proxy
#840
Open
ugurerkan wants to merge 4 commits from rebasesoftware/feature/request-with-http-proxy
into master
pull from: rebasesoftware/feature/request-with-http-proxy
merge into: topaLE:master
topaLE:1.6.X
topaLE:1.7.X
topaLE:1.9.X
topaLE:Mikhail5555/feature/remote-header-auth
topaLE:Nuckerr/master
topaLE:Saibamen/fix_871
topaLE:WillianRod/feat/add-favicon-badges
topaLE:andreasbrett/logging
topaLE:andreasbrett/securepush
topaLE:bertyhell/bugfix/heartbeat-bar-animation
topaLE:bertyhell/feature/monitor-checks
topaLE:bertyhell/feature/translations-extraction-script
topaLE:cert-notification
topaLE:chakflying/settings-redesign
topaLE:debian-docker
topaLE:deefdragon/Template-Engine
topaLE:deefdragon/notif-tests
topaLE:e2e-test
topaLE:fdcastel/push-api-tags
topaLE:free-disk-space
topaLE:ivanbratovic/http-basicauth
topaLE:ivanbratovic/improve-translatables
topaLE:k8s-unofficial
topaLE:lucasra1/overall_status
topaLE:master
topaLE:mhkarimi1383/master
topaLE:mrphuongbn/master
topaLE:no-need-build
topaLE:philippdormann/feature/release-management
topaLE:proffalken/feature/680_add_labels_to_prometheus_metrics
topaLE:proffalken/feature/auto_build_and_release
topaLE:restructure-status-page
topaLE:sqlite-upgrade-prebuilt
topaLE:tarun7singh/master
topaLE:thomasleveil/feature/565-duplicate-monitor
topaLE:thomasleveil/ux/add-group-at-the-top
Reviewers
Request review
No reviewers
Labels
Something isn't working dependencies
Pull requests that update a dependency file discussion doc
Improvements or additions to documentation duplicate
This issue or pull request already exists feature-request
New feature or request good first issue
Good for newcomers hacktoberfest hacktoberfest-accepted help help wanted
Extra attention is needed High
High Priority impossible invalid
This doesn't seem right investigating k8s Low
Low Priority Medium
Medium Priority News prerelease bug question
Further information is requested resolved Unknown wontfix
This will not be worked on
Apply labels
Clear labels
bug
Something isn't working dependencies
Pull requests that update a dependency file discussion doc
Improvements or additions to documentation duplicate
This issue or pull request already exists feature-request
New feature or request good first issue
Good for newcomers hacktoberfest hacktoberfest-accepted help help wanted
Extra attention is needed High
High Priority impossible invalid
This doesn't seem right investigating k8s Low
Low Priority Medium
Medium Priority News prerelease bug question
Further information is requested resolved Unknown wontfix
This will not be worked on
No Label
bug
dependencies
discussion
doc
duplicate
feature-request
good first issue
hacktoberfest
hacktoberfest-accepted
help
help wanted
High
impossible
invalid
investigating
k8s
Low
Medium
News
prerelease bug
question
resolved
Unknown
wontfix
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
No due date set.
Dependencies
This pull request currently doesn't have any dependencies.
Reference in new issue
There is no content yet.
Delete Branch 'rebasesoftware/feature/request-with-http-proxy'
Deleting a branch is permanent. It CANNOT be undone. Continue?
No
Yes
Description
Added new proxy feature based on http and https proxy agents. Proxy feature works like notifications, there is many proxy could be related one proxy entry.
Supported features
Reviews are welcome 🤩
Fixes #470
Type of change
Checklist
Screenshots
to monitor or to function (missing
or
?)Missing i18n for
Default
Missing i18n for
Default
@Saibamen Thank you for your quick reviews, I have updated them.
This is based from notification description. It is tries to explain with "must be assigned to a monitor to function" the proxy does not effect until assigned to a monitor, so I think this should be stay same but if it is not descriptive enough sure we could update.
Please add
Default
key toen.js
Looking good. As a note, I think the switches should be "Enabled" and "Set As Default" instead of "Activated" and "Default Enabled".
Wondering why it looks like that it is allowed to select multiple proxies for a monitor.
If it is single selection, dropdown (select-option) would be better.
Or radio button
Radio button is also better for
Edit
URL andDefault
label@louislam I have used them as radio buttons and multiple proxy can not selected. I prefer radios over dropdown because look more fancy but dropdown also considerable.
https://user-images.githubusercontent.com/473959/140033912-d1dd6c87-b7fc-411d-bf28-83322126654c.mp4
@Saibamen I did not understand this, could you please clarify? 🤔
edit url
triggers modal to edit proxy configuration and thedefault label
is just indicator does not have interaction.@deefdragon Thank you for your advice, agree on this and updated accordingly. Now, it is more expressive.
@ugurerkan
It is OK. I just wanted to say in my previous comment, that you can't implement working
Edit
orDefault
label in dropdown ;)@ugurerkan nice work, there are a few monitors I cannot yet create because I need to go through a proxy. Would this feature work with sock5 type proxies ?
@thomasleveil thank you very much.
Currently, the feature supports only HTTP and HTTPS protocols. But, the base proxy agent library is supporting SOCKS and PAC proxy as well. So, this could be easily integrated. I will take a look and try to improve accordingly. SOCKS proxies have common usage, it looks like this feature should have it at least.
SOCKS proxy agent library and protocol support added.
@ugurerkan may I suggest using

{{ proxy.host }}:{{ proxy.port }} ({{ proxy.protocol }})
to describe a proxy@thomasleveil good point, thank you.
Proxies was able to be mistaken by other protocols and ports with same host, updated accordingly.
Reviewers