Skip to content

Commit a381dbf

Browse files
committed
feat: add support for external Prometheus URLs
Signed-off-by: Tusharjamdade <tusharnjamdade@gmail.com>
1 parent c81d457 commit a381dbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prometheus/src/components/Settings/Settings.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import { isHttpUrl } from '../../util';
1818
* Supports namespace/service:port and HTTP/HTTPS URLs.
1919
* Examples: monitoring/prometheus:9090, https://prometheus.example.com
2020
*
21-
* @param address - The address string to validate.
22-
* @returns True if the address is valid, false otherwise.
21+
* @param {string} address - The address string to validate.
22+
* @returns {boolean} True if the address is valid, false otherwise.
2323
*/
2424
function isValidAddress(address: string): boolean {
2525
if (!address) return true;

0 commit comments

Comments
 (0)