Package: graphite-exporter
graphite_exporterPrometheus Graphite ExporterInstallationpipinstallgraphite_exporterUsageHow to runcan usepython -mafter install graphite_exporter>>python3-mgraphite_exporter-h

usage:__main__.py[-h][-iIP][-cCONFIG][-pPORT][-PLISTEN_PORT][-lLOG_LEVEL][-LAPSCHEDULER_LOG_LEVEL][-sSYSTEM_METRIC][--syslog_addressSYSLOG_ADDRESS][--syslog_facility{auth,authpriv,cron,daemon,ftp,kern,lpr,mail,news,security,syslog,user,uucp,local0,local1,local2,local3,local4,local5,local6,local7}][--request_pool_connectionsREQUEST_POOL_CONNECTIONS][--request_pool_maxsizeREQUEST_POOL_MAXSIZE][--request_max_retriesREQUEST_MAX_RETRIES][--request_pool_blockREQUEST_POOL_BLOCK][--request_timeoutREQUEST_TIMEOUT]optionalarguments:-h,--helpshowthishelpmessageandexit-iIP,--ipIPgraphitewebip.eg:127.0.0.1or127.0.0.1,127.0.0.2-cCONFIG,--configCONFIGMetricconfigpath-pPORT,--portPORTgraphitewebport-PLISTEN_PORT,--listen_portLISTEN_PORTgraphiteexporterlistenport-lLOG_LEVEL,--log_levelLOG_LEVELloglevel-LAPSCHEDULER_LOG_LEVEL,--apscheduler_log_levelAPSCHEDULER_LOG_LEVELapschedulerloglevel,defaultwarning-sSYSTEM_METRIC,--system_metricSYSTEM_METRICSelectthesystemmetrictouse.SystemMetric:carbon_update_operations,carbon_metrics_received,carbon_committed_points,carbon_points_per_update,carbon_cpu_usage,carbon_creates.ThedefaultisSelectAll--syslog_addressSYSLOG_ADDRESSsyslogaddress,enablesysloghandlewhenvalueisnotempty,Ifyouwanttosendtothelocal,thevalueis'/dev/log'--syslog_facility{auth,authpriv,cron,daemon,ftp,kern,lpr,mail,news,security,syslog,user,uucp,local0,local1,local2,local3,local4,local5,local6,local7}syslogfacility,canonlybeusedwhensyslogisenabled--request_pool_connectionsREQUEST_POOL_CONNECTIONSinitconnectionsfortherequestspool,defaultis10--request_pool_maxsizeREQUEST_POOL_MAXSIZEmaxsizefortherequestspool,defaultis10--request_max_retriesREQUEST_MAX_RETRIESmaxretriesfortherequest,defaultis3--request_pool_blockREQUEST_POOL_BLOCKwhethertoblocktherequestwhenpoolisfull,defaultisFalse--request_timeoutREQUEST_TIMEOUTtimeoutofrequestinseconds,defaultis9Custom Metric and ConfigThegraphite_exportercan be configured to translate specific dot-separated graphite metrics into labeled Prometheus metrics via YAML configuration file.An example configuration:# base paramglobal:prefix:graphite# prometheus metric prefixinterval:1m# collection data intervalfrom:-1min# graphite web requests param. learn more: https://graphite.readthedocs.io/en/latest/render_api.html#from-untiluntil:now# graphite web requests param. learn more: https://graphite.readthedocs.io/en/latest/render_api.html#from-untiltimeout:10# requests timeoutmetrics:-metric:example.*.*.user# graphite metricname:user_cnt# prometheus metric namedoc:user cnt# prometheus metric docprefix:gaphite1interval:2mfrom:-10minuntil:nowtimeout:20labels:# prometheus metric tag info:service:${0}#   service: ${0}  -> {service='example'}app:${1}project:${2}-metric:example.*.app1.dauname:daudoc:dau# No base parameters are set,# this metric base param will auto set from global base paramlabels:service_project:${0}-${2}# service_project: ${0}-${2} -> {service_project='example-app1'}app:${1}project:${2}-metric:aliasByMetric(example.*.*.dau)# graphite return metric name: dauname:daudoc:daulabels:metric:dau# metric only be one value: dau