summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorAndrew Maguire <andrewm4894@gmail.com>2023-05-29 08:54:40 +0100
committerGitHub <noreply@github.com>2023-05-29 08:54:40 +0100
commit430c0ec56a7cf0d8672e5a5ee9a73455f030b1ad (patch)
treeb72257e745a030a84aa724b4b09ef64ee2e7ca08 /daemon
parentf0211f9f310f51c437842619655cf58996c7eaf7 (diff)
update agent telemetry url to be cloud function instead of posthog (#15085)
* update agent events telemetry url to be cloud function instead of posthog.
Diffstat (limited to 'daemon')
-rwxr-xr-xdaemon/anonymous-statistics.sh.in7
1 files changed, 3 insertions, 4 deletions
diff --git a/daemon/anonymous-statistics.sh.in b/daemon/anonymous-statistics.sh.in
index 8676ffbe7f..32cbc71dbd 100755
--- a/daemon/anonymous-statistics.sh.in
+++ b/daemon/anonymous-statistics.sh.in
@@ -74,7 +74,6 @@ NETDATA_PREBUILT_DISTRO="${42}"
# define body of request to be sent
REQ_BODY="$(cat << EOF
{
- "api_key": "mqkwGT0JNFqO-zX2t0mW6Tec9yooaVu7xCBlXtHnt5Y",
"event": "${ACTION} ${ACTION_RESULT}",
"properties": {
"distinct_id": "${NETDATA_REGISTRY_UNIQUE_ID}",
@@ -164,9 +163,9 @@ REQ_BODY="$(cat << EOF
EOF
)"
-# send the anonymous statistics to the Netdata PostHog
+# send the anonymous statistics to Netdata
if [ -n "$(command -v curl 2> /dev/null)" ]; then
- curl --silent -o /dev/null --write-out '%{http_code}' -X POST --max-time 2 --header "Content-Type: application/json" -d "${REQ_BODY}" https://app.posthog.com/capture/
+ curl --silent -o /dev/null --write-out '%{http_code}' -X POST --max-time 2 --header "Content-Type: application/json" -d "${REQ_BODY}" https://us-east1-netdata-analytics-bi.cloudfunctions.net/ingest_agent_events
else
wget -q -O - --no-check-certificate \
--server-response \
@@ -174,5 +173,5 @@ else
--timeout=1 \
--header 'Content-Type: application/json' \
--body-data "${REQ_BODY}" \
- 'https://app.posthog.com/capture/' 2>&1 | awk '/^ HTTP/{print $2}'
+ 'https://us-east1-netdata-analytics-bi.cloudfunctions.net/ingest_agent_events' 2>&1 | awk '/^ HTTP/{print $2}'
fi