]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Revert "Add counter for vmod-goto, only for Varnish Plus 6"
authorMatthias Runge <mrunge@redhat.com>
Fri, 13 Mar 2020 14:10:40 +0000 (15:10 +0100)
committerMatthias Runge <mrunge@redhat.com>
Fri, 13 Mar 2020 14:10:40 +0000 (15:10 +0100)
This reverts commit bbe35ddec9a20a63be5d7ae05c30e24efca8fe6d.

src/collectd.conf.in
src/collectd.conf.pod
src/varnish.c

index c09a0c1f52808e397e59f401885684cd2539d51f..b3401561b11c830c9e79f1d90b6bb7d4b822aace 100644 (file)
 #      CollectSMF false
 #      CollectVBE false
 #      CollectMSE false           # Varnish-Plus only
-#      CollectGOTO false           # Varnish-Plus 6 only
 #   </Instance>
 #</Plugin>
 
index 09ea15fc2b2e3c3cb0ec5d84999d9f98a8a2adf1..7eade44c00fe5feb660a2618857e52b9835df7b5 100644 (file)
@@ -9975,10 +9975,6 @@ Varnish, replacing the traditional malloc and file storages. Only available
 with Varnish-Plus 4.x. Note: SMA, SMF and MSE share counters, enable only the
 one used by the Varnish instance. False by default.
 
-=item B<CollectGOTO> B<true>|B<false>
-
-vmod-goto counters. Only available with Varnish Plus 6.x. False by default.
-
 =back
 
 =head2 Plugin C<virt>
index d4f3c5ac719ae8759675f0471dad8bb50ebf05fe..e8d8ec347cb93941f450f9a606edcf59eab97e17 100644 (file)
@@ -63,9 +63,6 @@ struct user_config_s {
   bool collect_smf;
   bool collect_vbe;
   bool collect_mse;
-#if HAVE_VARNISH_V6
-  bool collect_goto;
-#endif
 };
 typedef struct user_config_s user_config_t; /* }}} */
 
@@ -936,20 +933,6 @@ static int varnish_monitor(void *priv,
                                    "total_operations", "sniped_objects", val);
   }
 
-#if HAVE_VARNISH_V6
-  if (conf->collect_goto) {
-    if (strcmp(name, "goto_dns_cache_hits") == 0)
-      return varnish_submit_derive(conf->instance, "goto", "total_operations",
-                                   "dns_cache_hits", val);
-    else if (strcmp(name, "goto_dns_lookups") == 0)
-      return varnish_submit_derive(conf->instance, "goto", "total_operations",
-                                   "dns_lookups", val);
-    else if (strcmp(name, "goto_dns_lookup_fails") == 0)
-      return varnish_submit_derive(conf->instance, "goto", "total_operations",
-                                   "dns_lookup_fails", val);
-  }
-#endif
-
   return 0;
 
 } /* }}} static int varnish_monitor */
@@ -1095,9 +1078,6 @@ static int varnish_config_apply_default(user_config_t *conf) /* {{{ */
   conf->collect_smf = false;
   conf->collect_vbe = false;
   conf->collect_mse = false;
-#if HAVE_VARNISH_V6
-  conf->collect_goto = false;
-#endif
 
   return 0;
 } /* }}} int varnish_config_apply_default */
@@ -1222,13 +1202,6 @@ static int varnish_config_instance(const oconfig_item_t *ci) /* {{{ */
       cf_util_get_boolean(child, &conf->collect_vbe);
     else if (strcasecmp("CollectMSE", child->key) == 0)
       cf_util_get_boolean(child, &conf->collect_mse);
-    else if (strcasecmp("CollectGOTO", child->key) == 0)
-#if HAVE_VARNISH_V6
-      cf_util_get_boolean(child, &conf->collect_goto);
-#else
-      WARNING("Varnish plugin: \"%s\" is available for Varnish %s only.",
-              child->key, "v6");
-#endif
     else {
       WARNING("Varnish plugin: Ignoring unknown "
               "configuration option: \"%s\". Did "
@@ -1248,11 +1221,7 @@ static int varnish_config_instance(const oconfig_item_t *ci) /* {{{ */
       && !conf->collect_vsm
 #endif
       && !conf->collect_vbe && !conf->collect_smf && !conf->collect_mgt &&
-      !conf->collect_lck && !conf->collect_mempool && !conf->collect_mse
-#if HAVE_VARNISH_V6
-      && !conf->collect_goto
-#endif
-  ) {
+      !conf->collect_lck && !conf->collect_mempool && !conf->collect_mse) {
     WARNING("Varnish plugin: No metric has been configured for "
             "instance \"%s\". Disabling this instance.",
             (conf->instance == NULL) ? "localhost" : conf->instance);