Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12589

metrics name should not contains "/" path seperator while using SolrGangliaReporter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 7.3.1, 7.4, 8.0
    • None
    • metrics
    • None

    Description

      As I was using SolrGangliaReporter, default metrics names will contains "/", which is
      offen used in FileSystem as an seperator, than it encounters ERROR cause creating
      metrics data file failed, bellow is the Exception in /var/log/messages:

      Jul 25 15:01:37 hb-bp1tg6t003y04p201-001 gmetad: Unable to write meta data for metric solr.node.QUERY.httpShardHandler.http_//hb-bp1tg6t003y04p201-003.hbase.rds.aliyuncs.com_8983/solr/admin/cores.post.requests.p999 to RRD
      Jul 25 15:01:37 hb-bp1tg6t003y04p201-001 gmetad: RRD_create: creating '/var/lib/ganglia/rrds/_SummaryInfo_/solr.node.ADMIN./admin/cores.requestTimes.p999.rrd': No such file or directory
      Jul 25 15:01:37 hb-bp1tg6t003y04p201-001 gmetad: Unable to write meta data for metric solr.node.ADMIN./admin/cores.requestTimes.p999 to RRD
      Jul 25 15:01:37 localhost gmetad: RRD_create: creating '/var/lib/ganglia/rrds/_SummaryInfo_/solr.node.ADMIN./admin/collections.requestTimes.min.rrd': No such file or directory
      Jul 25 15:01:37 localhost gmetad: Unable to write meta data for metric solr.node.ADMIN./admin/collections.requestTimes.min to RRD
      Jul 25 15:01:37 localhost gmetad: RRD_create: creating '/var/lib/ganglia/rrds/_SummaryInfo_/solr.node.ADMIN./admin/authorization.requestTimes.stddev.rrd': No such file or directory
      Jul 25 15:01:37 localhost gmetad: Unable to write meta data for metric solr.node.ADMIN./admin/authorization.requestTimes.stddev to RRD
      Jul 25 15:01:37 localhost gmetad: RRD_create: creating '/var/lib/ganglia/rrds/_SummaryInfo_/solr.node.ADMIN./admin/autoscaling/history.requestTimes.p99.rrd': No such file or directory
      Jul 25 15:01:37 localhost gmetad: Unable to write meta data for metric solr.node.ADMIN./admin/autoscaling/history.requestTimes.p99 to RRD
      Jul 25 15:01:37 localhost gmetad: RRD_create: creating '/var/lib/ganglia/rrds/_SummaryInfo_/solr.node.QUERY./admin/autoscaling.timeouts.m1_rate.rrd': No such file or directory

      I think the metrics name should be normalized for different reporter,such as SolrGangliaReport.
      Some times other normalization is used for other reason,but now,for ganglia,It must
      replace the "/" .

      Attachments

        1. SOLR-12589-3.diff
          3 kB
          tinswzy
        2. SOLR-12589-2.diff
          3 kB
          tinswzy
        3. SOLR-12589-1.diff
          2 kB
          tinswzy

        Activity

          People

            Unassigned Unassigned
            tinswzy tinswzy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: