@cryptotaxi247 / netdata-1 / commits / 6f587f5ac

chore(packaging): remove python-pymongo (#14196)

Ilya Mashchenko committed Jan 13, 2023 at 19:43 UTC 6f587f5aced38d7f55a95fe815bb59499552345d
2 files changed +2 -59
packaging/installer/install-required-packages.sh
+1 -55
@@ -20,7 +20,6 @@ fi
20 PACKAGES_NETDATA=${PACKAGES_NETDATA-1}
21 PACKAGES_NETDATA_PYTHON=${PACKAGES_NETDATA_PYTHON-0}
22 PACKAGES_NETDATA_PYTHON3=${PACKAGES_NETDATA_PYTHON3-1}
23 -PACKAGES_NETDATA_PYTHON_MONGO=${PACKAGES_NETDATA_PYTHON_MONGO-0}
23 PACKAGES_DEBUG=${PACKAGES_DEBUG-0}
24 PACKAGES_IPRANGE=${PACKAGES_IPRANGE-0}
25 PACKAGES_FIREHOL=${PACKAGES_FIREHOL-0}
@@ -105,8 +104,6 @@ Supported packages (you can append many of them):
104
105 - python3 install python3
106
108 - - python-pymongo install python-pymongo (or python3-pymongo for python3)
109 -
107 - sensors install lm_sensors for monitoring h/w sensors
108
109 - firehol-all packages required for FireHOL, FireQOS, update-ipsets
@@ -935,41 +932,6 @@ declare -A pkg_python3_pip=(
932 ['default']="python3-pip"
933 )
934
938 -declare -A pkg_python_pymongo=(
939 - ['alpine']="WARNING|"
940 - ['arch']="python2-pymongo"
941 - ['centos']="WARNING|"
942 - ['debian']="python-pymongo"
943 - ['gentoo']="dev-python/pymongo"
944 - ['suse']="python-pymongo"
945 - ['clearlinux']="WARNING|"
946 - ['rhel']="WARNING|"
947 - ['ol']="WARNING|"
948 - ['macos']="WARNING|"
949 - ['default']="python-pymongo"
950 -)
951 -
952 -declare -A pkg_python3_pymongo=(
953 - ['alpine']="WARNING|"
954 - ['arch']="python-pymongo"
955 - ['centos']="WARNING|"
956 - ['debian']="python3-pymongo"
957 - ['gentoo']="dev-python/pymongo"
958 - ['suse']="python3-pymongo"
959 - ['clearlinux']="WARNING|"
960 - ['rhel']="WARNING|"
961 - ['ol']="WARNING|"
962 - ['freebsd']="py37-pymongo"
963 - ['macos']="WARNING|"
964 - ['default']="python3-pymongo"
965 -
966 - ['centos-7']="python36-pymongo"
967 - ['centos-8']="python3-pymongo"
968 - ['rhel-7']="python36-pymongo"
969 - ['rhel-8']="python3-pymongo"
970 - ['ol-8']="python3-pymongo"
971 -)
972 -
935 declare -A pkg_python_requests=(
936 ['alpine']="py-requests"
937 ['arch']="python2-requests"
@@ -1294,7 +1256,6 @@ packages() {
1256 if [ "${PACKAGES_NETDATA_PYTHON}" -ne 0 ]; then
1257 require_cmd python || suitable_package python
1258
1297 - [ "${PACKAGES_NETDATA_PYTHON_MONGO}" -ne 0 ] && suitable_package python-pymongo
1259 # suitable_package python-requests
1260 # suitable_package python-pip
1261 fi
@@ -1305,7 +1266,6 @@ packages() {
1266 if [ "${PACKAGES_NETDATA_PYTHON3}" -ne 0 ]; then
1267 require_cmd python3 || suitable_package python3
1268
1308 - [ "${PACKAGES_NETDATA_PYTHON_MONGO}" -ne 0 ] && suitable_package python3-pymongo
1269 # suitable_package python3-requests
1270 # suitable_package python3-pip
1271 fi
@@ -1847,7 +1807,7 @@ EOF
1807 remote_log() {
1808 # log success or failure on our system
1809 # to help us solve installation issues
1850 - curl > /dev/null 2>&1 -Ss --max-time 3 "https://registry.my-netdata.io/log/installer?status=${1}&error=${2}&distribution=${distribution}&version=${version}&installer=${package_installer}&tree=${tree}&detection=${detection}&netdata=${PACKAGES_NETDATA}&python=${PACKAGES_NETDATA_PYTHON}&python3=${PACKAGES_NETDATA_PYTHON3}&pymongo=${PACKAGES_NETDATA_PYTHON_MONGO}&sensors=${PACKAGES_NETDATA_SENSORS}&database=${PACKAGES_NETDATA_DATABASE}&ebpf=${PACKAGES_NETDATA_EBPF}&firehol=${PACKAGES_FIREHOL}&fireqos=${PACKAGES_FIREQOS}&iprange=${PACKAGES_IPRANGE}&update_ipsets=${PACKAGES_UPDATE_IPSETS}&demo=${PACKAGES_NETDATA_DEMO_SITE}"
1810 + curl > /dev/null 2>&1 -Ss --max-time 3 "https://registry.my-netdata.io/log/installer?status=${1}&error=${2}&distribution=${distribution}&version=${version}&installer=${package_installer}&tree=${tree}&detection=${detection}&netdata=${PACKAGES_NETDATA}&python=${PACKAGES_NETDATA_PYTHON}&python3=${PACKAGES_NETDATA_PYTHON3}&sensors=${PACKAGES_NETDATA_SENSORS}&database=${PACKAGES_NETDATA_DATABASE}&ebpf=${PACKAGES_NETDATA_EBPF}&firehol=${PACKAGES_FIREHOL}&fireqos=${PACKAGES_FIREQOS}&iprange=${PACKAGES_IPRANGE}&update_ipsets=${PACKAGES_UPDATE_IPSETS}&demo=${PACKAGES_NETDATA_DEMO_SITE}"
1811 }
1812
1813 if [ -z "${1}" ]; then
@@ -1910,10 +1870,8 @@ while [ -n "${1}" ]; do
1870 PACKAGES_NETDATA=1
1871 if [ "${pv}" -eq 2 ]; then
1872 PACKAGES_NETDATA_PYTHON=1
1913 - PACKAGES_NETDATA_PYTHON_MONGO=1
1873 else
1874 PACKAGES_NETDATA_PYTHON3=1
1916 - PACKAGES_NETDATA_PYTHON3_MONGO=1
1875 fi
1876 PACKAGES_NETDATA_SENSORS=1
1877 PACKAGES_NETDATA_DATABASE=1
@@ -1935,16 +1893,6 @@ while [ -n "${1}" ]; do
1893 PACKAGES_NETDATA_PYTHON3=1
1894 ;;
1895
1938 - python-pymongo)
1939 - if [ "${pv}" -eq 2 ]; then
1940 - PACKAGES_NETDATA_PYTHON=1
1941 - PACKAGES_NETDATA_PYTHON_MONGO=1
1942 - else
1943 - PACKAGES_NETDATA_PYTHON3=1
1944 - PACKAGES_NETDATA_PYTHON3_MONGO=1
1945 - fi
1946 - ;;
1947 -
1896 sensors | netdata-sensors)
1897 PACKAGES_NETDATA=1
1898 PACKAGES_NETDATA_PYTHON3=1
@@ -1964,10 +1912,8 @@ while [ -n "${1}" ]; do
1912 PACKAGES_NETDATA=1
1913 if [ "${pv}" -eq 2 ]; then
1914 PACKAGES_NETDATA_PYTHON=1
1967 - PACKAGES_NETDATA_PYTHON_MONGO=1
1915 else
1916 PACKAGES_NETDATA_PYTHON3=1
1970 - PACKAGES_NETDATA_PYTHON3_MONGO=1
1917 fi
1918 PACKAGES_DEBUG=1
1919 PACKAGES_IPRANGE=1
packaging/installer/methods/manual.md
+1 -4
@@ -96,10 +96,7 @@ Netdata plugins and various aspects of Netdata can be enabled or benefit when th
96 | `python`|for most of the external plugins|
97 | `python-yaml`|used for monitoring **beanstalkd**|
98 | `python-beanstalkc`|used for monitoring **beanstalkd**|
99 -| `python-dnspython`|used for monitoring DNS query time|
100 -| `python-ipaddress`|used for monitoring **DHCPd**<br/>this package is required only if the system has python v2. python v3 has this functionality embedded|
99 | `python-mysqldb`<br/>or<br/>`python-pymysql`|used for monitoring **mysql** or **mariadb** databases<br/>`python-mysqldb` is a lot faster and thus preferred|
102 -| `python-pymongo`|used for monitoring **mongodb** databases|
100 | `nodejs`|used for `node.js` plugins for monitoring **named** and **SNMP** devices|
101 | `lm-sensors`|for monitoring **hardware sensors**|
102 | `libelf`|for monitoring kernel-level metrics using eBPF|
@@ -123,7 +120,7 @@ Netdata Cloud support may require the following packages to be installed:
120 |:---------:|--------------------------------------------------------------------------------------------------------------------------------------|
121 | `cmake` | Needed at build time if you aren't using your distribution's version of libwebsockets or are building on a platform other than Linux |
122 | `openssl` | Needed to secure communications with the Netdata Cloud |
126 -| `protobuf`| Used for the new Cloud<->Agent binary protocol
123 +| `protobuf`| Used for the new Cloud<->Agent binary protocol |
124
125 *Netdata will greatly benefit if you have the above packages installed, but it will still work without them.*
126