ISOiptables

iptables  时间:2021-01-12  阅读:()
NetAppQuickStart:InstallingGraphiteandGrafanaChristopherMadden,NetApp7September,2015AbstractThisguidehasbasicinstallationstepsfortheOpenSourcesoftwareGraphiteandGrafana.
ThesesoftwarearecommonlyusedwithOnCommandPerformanceManager(OPM)and/orNetAppHarvestavailableontheToolChest.
2QuickStart:InstallingGraphiteandGrafanaTABLEOFCONTENTS1Introduction.
31.
1AboutGraphite31.
2AboutGrafana.
31.
3AboutOnCommandPerformanceManagerExternalDataProvider.
31.
4AboutNetAppHarvest32InstallationPreparation42.
1SystemRequirements.
42.
2ProtocolandPortRequirements.
53InstallationonUbuntu63.
1Basicserversetup63.
2InstallGraphiteandPrerequisites.
63.
3ConfigureGraphite63.
4InstallGrafana.
83.
5ConfigureGrafana84InstallationonRHEL114.
1Basicserversetup114.
2InstallGraphiteandPrerequisites.
114.
3ConfigureGraphite144.
4InstallGrafana.
164.
5ConfigureGrafana175VerifyOperations.
205.
1Graphite(graphite-webandcarbon-cache)205.
2Grafana.
216Troubleshooting.
236.
1Start,stop,checkstatusofGraphiteandGrafanaservices.
236.
2Whisperstoragedirectoryavailablespace.
236.
3Logfilelocations.
247References258VersionHistory253QuickStart:InstallingGraphiteandGrafana1Introduction1.
1AboutGraphiteGraphiteisanopensourceenterprise-scalemonitoringtoolthatdoestwothings:Storenumerictime-seriesdataRendergraphsorAPIresponsesofthisdataondemandGraphiteconsistsofthreemaincomponents,allwritteninPython:1)carbon–aTwisteddaemonthatlistensfortime-seriesdata2)whisper-asimpledatabaselibraryforstoringtime-seriesdata(similarindesigntoRRD)3)graphitewebapp-ADjangowebappthatrendersgraphson-demandusingCairoandrequiresawebserversuchasApacheornginxGraphiteitselfhasnometricscollectionenginebutratherreceivesmetricssenttoit.
Graphitesupportsvarioustechniquestoscaleupandoutthethreemaincomponentsandisquitepowerful;3millionmetricsperminuteonasinglephysicalserverhasbeenreported!
MetricscanberetainedbyGraphiteforaconfigurableretentionperiodandfrequency.
TheGraphitewebappalsosupportsdozensoffunctionsthatallowforeasymanipulationofcollecteddataintousefulinformation.
1.
2AboutGrafanaGrafanaisanopensourcefeaturerichmetricsdashboardandgrapheditorforGraphite[andothermetricsdatabases].
Itprovidesapowerfulandelegantwaytocreate,share,andexploredataanddashboardsfromyourdisparatemetricdatabases.
Itsupportsawidevarietyofgraphingoptionsforultimateflexibility.
Grafanasupportsauthenticatedloginandabasicrolebasedaccesscontrolimplementation.
GrafanaisdeployedasasinglesoftwareinstallationandincludesawebserverandpresentationlogicandiswritteninGoandJavascript.
1.
3AboutOnCommandPerformanceManagerExternalDataProviderBeginningwithOnCommandPerformanceManager1.
1afeaturetoforwardmetricstoan'ExternalDataProvider'wasintroduced.
ThisintegrationallowsmetricstobeforwardedtoaGraphiteinstallationforlong-termretentionandintegrationintoothermetricsportals.
1.
4AboutNetAppHarvestNetAppHarvestisaflexibledatacollectoravailableontheNetAppToolChestthatcollectsperformancemetricsfromClusteredDataONTAP,DataONTAP7-mode,andcapacitymetricsfromOnCommandUnifiedManager6.
xservers.
ThemetricsarethenforwardedtoaGraphiteinstallationforlong-termretentionandintegrationintoothermetricsportals.
4QuickStart:InstallingGraphiteandGrafana2InstallationPreparationWithenougheffortandexpertiseGraphitecanbeinstalledonprettymuchanyLinuxflavor.
WhiletheoverallstepsaredocumentedintheGraphitedocumentationtheexactcommandsforagivenLinuxflavorandreleasearenot.
ToeaseinstallationwehaveinstalledanddocumentedthestepsforthefollowingLinuxreleases:Ubuntu14.
04RedHatEnterpriseLinux6.
6RedHatEnterpriseLinux7.
1OurexperiencehasshownthatinstallationonUbuntu,usingthenativepackagerepositories,isaneasychoiceforaquickimplementationatzerocost.
WealsoseethatmanyenterpriseshavestandardizedonRedHatEnterpriseLinux(RHEL),andthusprefertodeployonthisLinuxflavor.
ForRHELwehavedocumentedinstructionsforbothonline(installationfrominternetarchives)andoffline(installationviacopyingfiles)scenarios.
Eitherwayyougo,thefeature/functionofthesolutionisthesamesochoosetheLinuxflavorandstepsthatbestmeetyourneeds.
2.
1SystemRequirementsPlatformrequirementsvarybasedonthequantityofnodesbeingmonitored,amountofinstancesmonitored(i.
e.
#vols,luns,lifs,etc),andthefrequencyofmonitoring.
Thisdocumentincludesabasicinstallationcapableofservicingapproximately75,000metricupdatesperminute.
Atypicalmonitorednodemightsubmitanywherefrom500to5000metricsperpollinginterval(1or5mintypically).
IfthisisinsufficientGraphitecanbescaledinvariouswaystosupportmillionsofmetricsupdatesperminuteifneeded.
Discussionofscalinghigherishoweveroutsidethescopeofthisdocument.
Systemrequirements:LinuxOSx86-64,oneof:oUbuntu14.
04LTSoRHEL6.
6oRHEL7.
1CPU:1vCPUMemory:1GBRAMDiskcapacity:2.
5-5GBpermonitorednodeDiskperformance:20-200randomIOPspermonitorednodeoUseNetAppstorage(NFS,LUN,vmdk,vhd,vhdx)orlocalSSDAdditionally,softwarepackagesarerequiredfrom:UbuntuoUbuntupackagerepositoryoGrafanapackagerepositoryRHELoRedHatpackagerepository(InstallISOorRedHatpackagerepository)oPythonPIPpackagerepositoryoGithuboGrafanapackagerepository5QuickStart:InstallingGraphiteandGrafana2.
2ProtocolandPortRequirementsVariousnetworkprotocolsandportreachabilityisrequiredbetweenGraphite,Grafana,andtheclientwebbrowser.
Belowaredetailsoftherequirednetworkconnectivity.
Firewallsmustbeconfiguredtoallowaccess.
Theportnumbersusedintheinstructionstepsarelistedbutanyitemwitha'*'canoptionallybemodifiedtootherportsorprotocol(HTTPtoHTTPS)tomatchyourenvironmentstandards.
Initiatedbythedatacollector(OPM,NetAppHarvest):DestinationProtocolPortDescriptionGraphiteServerIPGraphiteplaintextprotocol2003/TCP*UsedtopostmetricstotheGraphitemetricsDBInitiatedbytheGrafanaserver(inthisguidebothGraphiteandGrafanarunonthesamehost):DestinationProtocolPortDescriptionGraphiteServerIPHTTP*81/TCP*UsestherenderandqueryAPIstofetchJSONformattedmetricsInitiatedbytheClientbrowser(inthisguidebothGraphiteandGrafanarunonthesamehost):DestinationProtocolPortDescriptionGraphiteServerIPHTTP*81/TCP*AccesstheGraphitenativewebGUIGrafanaServerIPHTTPS*443/TCP*AccesstheGrafanadashboardGUI6QuickStart:InstallingGraphiteandGrafana3InstallationonUbuntuToinstallonUbuntufollowthestepsinthischapter.
ForRHELinstallationstepsseethechapterInstallationonRHEL.
3.
1BasicserversetupPerformabasicinstallationofUbuntuServer14.
04LTS.
DuringinstallationbesuretosetyourstaticIPaddressanddefaultgateway,DNSservers,andtimezone.
Alsoensuretimeiscorrectandwillbesyncedwithtruetimebyeither(a)usingthehypervisorguesttoolstosynctheVMclockwiththehostclockthatissync'dtotruetimeor(b)installandconfigureNTPsoftwaretohavetheVMsyncwithtruetime,andthendisableclocksyncinthehypervisorguesttools.
3.
2InstallGraphiteandPrerequisitesGraphiteisveryeasytoinstallusingnativepackagesusingtheshortinstallationinstructionsthatfollow.
Foradditionaldetailsanddiscussionthisblogpostmaybeusefulasitservedasthebasisfortheseinstructions.
First,installallneededpackages:sudoapt-getupdatesudoapt-get–yinstallapache2libapache2-mod-wsgigraphite-webgraphite-carbonAnswerYtoinstallotherprerequisitepackagesAquestionisaskedifyouwanttoremoveyourdatabasefilesifpurginggraphite-carbon.
Answer"No".
Ifyouuninstalllateryoucanalwaysremovethedatadirectory(/var/lib/graphite/whisper)manually.
3.
3ConfigureGraphite3.
3.
1ConfigureCarboncache1.
EdittheCarboncacheservicestartupfile:sudonano/etc/default/graphite-carbona.
FindthelinewithCARBON_CACHE_ENABLEDandmodifyitfromfalsetotruetoenabletheservicetoautostartonboot:CARBON_CACHE_ENABLED=falsechangetoCARBON_CACHE_ENABLED=trueb.
Savethefileandexittothecommandprompt.
2.
EdittheCarboncacheserviceconfigurationfile:sudonano/etc/carbon/carbon.
confa.
FindthelinewithENABLE_LOGROTATIONandmodifyitfromfalsetotruetoenablelogstoberotated:ENABLE_LOGROTATION=FalsechangetoENABLE_LOGROTATION=Trueb.
FindthelinewithMAX_CREATES_PER_MINUTEandmodifyitfrom50to600somorenewmetricfilescanbecreatedperminutespeedingdisplayofnewlyaddedmonitoredhosts:7QuickStart:InstallingGraphiteandGrafanaMAX_CREATES_PER_MINUTE=50changetoMAX_CREATES_PER_MINUTE=600c.
Savethefileandexittothecommandprompt.
3.
Copyadefaultstorage-aggregation.
conffileinplace:sudocp/usr/share/doc/graphite-carbon/examples/storage-aggregation.
conf.
example/etc/carbon/storage-aggregation.
conf4.
StarttheCarboncacheservice:sudoservicecarbon-cachestart3.
3.
2Configuregraphite-web1.
EdittheGraphitewebappconfigurationfile:sudonano/etc/graphite/local_settings.
pya.
FindthelinewithSECRET_KEY,uncommentit,andfillthevaluewithsomelongrandomsetofcharacters:#SECRET_KEY='UNSAFE_DEFAULT'changeto(butfillwithyourownrandomcharacters!
)SECRET_KEY='KJKzzxcviouzxcvytwkdd94944asmdf9ads9ds9dspp83jlkjLKJL98798KLOIK'b.
UncommentandpopulatetheTIME_ZONEvariablewiththetimezonefortheGraphiteUI(seelisthere,useTZcolumnvalues):#TIME_ZONE='America/Los_Angeles'changeto(butreplacewithyourTimezone!
)TIME_ZONE='Europe/Amsterdam'c.
Savethefileandexittothecommandprompt.
2.
InitializetheGraphiteconfigurationDB:sudographite-managesyncdba.
Youwillbepromptedtocreateasuperuseraccount.
Chooseyesandentercredentials.
ThesecanbeusedintheGraphiteinterfacetosavegraphs.
3.
Setownershipforaccessbythe_graphiteuser:sudochown_graphite:_graphite/var/lib/graphite/graphite.
db3.
3.
3ConfigureApache1.
Configurewebsites:sudoa2dissite000-defaultsudocp/usr/share/graphite-web/apache2-graphite.
conf/etc/apache2/sites-availablesudoa2ensiteapache2-graphite2.
Opentheportsconfigurationfileinatexteditor.
8QuickStart:InstallingGraphiteandGrafanasudonano/etc/apache2/ports.
confa.
FindthelinewithListenandsetittoavalueof81Listen80changetoListen81b.
Savethefileandexittothecommandprompt.
3.
OpentheGraphitevhosthttpconfigurationfileinatexteditor.
sudonano/etc/apache2/sites-available/apache2-graphite.
confa.
Findthelinewithandmodifythelinetolistenonport81andthenaddthethreeHeadersetentrieslistedbelow.
changeto4.
ReloadApacheconfiguration:sudoserviceapache2reload3.
4InstallGrafanaGrafanaisveryeasytoinstallbyaddingacustomrepository.
Belowareshortinstallationinstructions.
ForadditionaldetailspleaseseetheGrafanaprojectwebsiteinstructionsInstallingonDebian/Ubuntu.
1.
Edittheapt-getsourcesfile:sudonano/etc/apt/sources.
lista.
AddthelinefortheGrafanaserverrepositorytotheendofthefile:debhttps://packagecloud.
io/grafana/stable/debian/wheezymainb.
Savethefileandexittothecommandprompt.
2.
Addthepackagecloudkeytoallowinstallationofsignedpackages:sudocurlhttps://packagecloud.
io/gpg.
key|sudoapt-keyadd-3.
UpdateAptrepositoriesandinstallGrafana:sudoapt-getupdatesudoapt-getinstallgrafana3.
5ConfigureGrafana1.
ToconfigureGrafanatorunoverHTTPSeitherprovidecertificateandkeyfilesfromatrustedCA,orcreateyourownselfsignedcertificate.
Ifcreatingaself-signedcertificateasamplecommandsyntaxisshown.
Youwillbepromptedwithquestionswhichshouldbeansweredaccordingtoyourenvironment:cd/etc/grafanasudoopensslreq-x509-newkeyrsa:2048-keyoutcert.
key-outcert.
pem-days3650-nodes9QuickStart:InstallingGraphiteandGrafana2.
OpentheGrafanaconfigurationfileinatexteditor.
sudonano/etc/grafana/grafana.
inia.
Findthelinewith;protocol,removethesemi-colon,andsetittoavalueofhttpsasshownbelow:;protocol=httpchangetoprotocol=httpsb.
Findthelinewith;http_port,removethesemi-colon,andsetittoavalueof443asshownbelow:;http_port=3000changetohttp_port=443c.
Findthesectionwithhttpscertificateinformationandremovethesemi-colonsandsetthevaluesofthecertificateandkeyfilescreatedearlier:#httpscerts&keyfile;cert_file=;cert_key=changeto#httpscerts&keyfilecert_file=/etc/grafana/cert.
pemcert_key=/etc/grafana/cert.
keyd.
Savethefileandexittothecommandprompt.
3.
Setgrafana-servertobeabletorunonanyport(shouldyouchooselatertorunonaprivilegedport):sudosetcap'cap_net_bind_service=+ep'/usr/sbin/grafana-server4.
SetGrafanatostartonbootandstartitnow:sudoupdate-rc.
dgrafana-serverdefaults9510sudoservicegrafana-serverstart10QuickStart:InstallingGraphiteandGrafana5.
Openyourwebbrowsertohttps://IP_ADDRESS_OR_HOSTNAMEandyoushouldseetheGrafanaloginpage.
Loginwiththedefaultusernameof'admin'andpasswordof'admin':6.
Changetheadminpasswordbyclickingthelogointhecorner(1)andthentheAdminaccount(2)andthenChangepasswordlink(3):CompletethecurrentandnewpasswordandclicktheChangePasswordbutton.
Ifsuccessfulagreenboxwillbedisplayedthatthepasswordhasbeenchangedsuccessfully.
11QuickStart:InstallingGraphiteandGrafana4InstallationonRHELToinstallonRHELfollowthestepsinthischapter.
ForUbuntuinstallationstepsseethechapterInstallationonUbuntu.
Note:Executeallstepsinthischapterastherootuser.
Loginasrootoruse"sudo-i"toacquirerootprivileges4.
1BasicserversetupPerformabasicinstallationofRHEL6orRHEL7.
DuringinstallationbesuretosetyourstaticIPaddressanddefaultgateway,DNSservers,andtimezone.
Alsoensuretimeiscorrectandwillbesyncedwithtruetimebyeither(a)usingthehypervisorguesttoolstosynctheVMclockwiththehostclockthatissync'dtotruetimeor(b)installandconfigureNTPsoftwaretohavetheVMsyncwithtruetime,andthendisableclocksyncinthehypervisorguesttools.
4.
1.
1DisableSELinux1.
Opentheselinuxconfigurationfileinatexteditor.
nano/etc/sysconfig/selinuxa.
ModifythevalueofSELINUXtobedisabled:SELINUX=enforcingchangeto:SELINUX=disabledb.
Savethefileandexittothecommandprompt.
c.
Rebootthehost:reboot4.
1.
2ModifyFirewallRulesBydefaultincomingtrafficisblockedforremoteaccessbytheLinuxfirewall.
Thesoftwareinstalledinlaterstepswillrunontheseportssowemustopenthem.
Portsopenedare443(Grafana),81(Graphite),and2003(Carboncachemetricsreceiver).
ForRHEL6usethefollowingcommands:iptables-IINPUT-ptcp--dport443-jACCEPTiptables-IINPUT-ptcp--dport81-jACCEPTiptables-IINPUT-ptcp--dport2003-jACCEPTserviceiptablessaveForRHEL7usethefollowingcommands:firewall-cmd--permanent--add-port443/tcpfirewall-cmd--permanent--add-port81/tcpfirewall-cmd--permanent--add-port2003/tcpfirewall-cmd–-reload4.
2InstallGraphiteandPrerequisitesAsopensourcesoftwareGraphiteiseasiesttoinstallwheninternetaccessisavailable.
Ifinternetaccessisnotavailableanalternativesetofofflineinstallationinstructionsisalsoincluded.
Followtheappropriatesectionforyourenvironment.
12QuickStart:InstallingGraphiteandGrafana4.
2.
1Online/InternetbasedinstallationThissectioncontainsinstallationstepstobeusedifyourGraphitehosthasadirectaccesstotheInternet(i.
e.
viaatransparentproxy).
Ifaccessisviaanamedproxyserverconfiguretheproxyfirstusingenvironmentvariableswhichcurl,yum,andgitwilluse:exporthttp_proxy=http://proxy.
myproxy.
com:####exporthttps_proxy=https://proxy.
myproxy.
com:####ForPIPaproxyservercanbeconfiguredusingamodifiedpipinstallsyntaxlike:pipinstall--proxy="user:password@server:port"packagenameRPMpackagesInstallprerequisiteand/orhelpfulsystempackages:yuminstall-ypython-develmod_wsgipycairodejavu-sans-fontsgccgitpytzpython-memcachedncnet-toolslsofunzipPythonpackagesInstallpip,andthenusepiptoinstallprerequisitePythonpackages:cd/tmpcurl-Ohttps://bootstrap.
pypa.
io/get-pip.
pypythonget-pip.
pypipinstallpyparsingpipinstall'Twistedandmodifythelinetolistenonport81andthenaddthethreeHeadersetentrieslistedbelow.
changetoHeadersetAccess-Control-Allow-Origin"*"HeadersetAccess-Control-Allow-Methods"GET,OPTIONS"HeadersetAccess-Control-Allow-Headers"origin,authorization,accept"b.
Findthelinewithandreplacethatsection(includingdirectorypath!
)asshownbelowtakingcarethatthetexttoreplacediffersbetweenRHEL6andRHEL7:Orderdeny,allowAllowfromallchangetoforRHEL6OptionsAllAllowOverrideAllOr,changetoforRHEL7OptionsAllAllowOverrideAllRequireallgrantedc.
Savethefileandexittothecommandprompt.
3.
SetApachetoautostartatsystembootandstartit.
OnthefirststartupsomestructuresarecreatedintheSQLitedbanditispossiblethatduetoaraceconditionitwillbecomelockedforGUIaccess.
Forthisreasonwerestartonceafterthisinitializationshouldhavecompleted:chkconfighttpdonservicehttpdstart;sleep15;servicehttpdrestart4.
4InstallGrafanaAsopensourcesoftwareGraphiteiseasiesttoinstallwheninternetaccessisavailable.
Ifinternetaccessisnotavailableanalternativesetofofflineinstallationinstructionsisalsoincluded.
Followtheappropriatesectionforyourenvironment.
17QuickStart:InstallingGraphiteandGrafana4.
4.
1Online/InternetbasedinstallationGrafanaisveryeasytoinstallbyaddingacustomrepository.
Belowareshortinstallationinstructions.
ForadditionaldetailspleaseseetheGrafanaprojectinstallationinstructionsInstallingonRPM-basedLinux.
1.
CreateanewyumrepositoryforGrafanausingatexteditor.
nano/etc/yum.
repos.
d/grafana.
repoa.
Placethefollowingtextinthefile:.
[grafana]name=grafanabaseurl=https://packagecloud.
io/grafana/stable/el/6/$basearchrepo_gpgcheck=1enabled=1gpgcheck=1gpgkey=https://packagecloud.
io/gpg.
keyhttps://grafanarel.
s3.
amazonaws.
com/RPM-GPG-KEY-grafanasslverify=1sslcacert=/etc/pki/tls/certs/ca-bundle.
crtb.
Savethefileandexittothecommandprompt.
2.
InstallGrafanausingyumyuminstall–ygrafana4.
4.
2Offline/JumphostbasedinstallationGrafanacanalsobeeasilydownloadedandinstalledfromasingleRPM.
1.
DownloadthelatestRPMfromhttp://grafana.
org/download/fromyourhostwithInternetaccess2.
CopythedownloadedfiletotheGraphitehost/tmp/directory.
3.
Installfromthelocalarchivereplacingwithyouractualreleaselevelrpm-i/tmp/grafana-.
x86_64.
rpm4.
5ConfigureGrafana1.
ToconfigureGrafanatorunoverHTTPSeitherprovidecertificateandkeyfilesfromatrustedCA,orcreateyourownselfsignedcertificate.
Ifcreatingaself-signedcertificateasamplecommandsyntaxisshown.
Youwillbepromptedwithquestionswhichshouldbeansweredaccordingtoyourenvironment:cd/etc/grafanaopensslreq-x509-newkeyrsa:2048-keyoutcert.
key-outcert.
pem-days3650-nodes2.
OpentheGrafanaconfigurationfileinatexteditor.
nano/etc/grafana/grafana.
inia.
Findthelinewith;protocol,removethesemi-colon,andsetittoavalueofhttpsasshownbelow:;protocol=httpchangetoprotocol=httpsb.
Findthelinewith;http_port,removethesemi-colon,andsetittoavalueof443asshownbelow:;http_port=300018QuickStart:InstallingGraphiteandGrafanachangetohttp_port=443c.
Findthesectionwithhttpscertificateinformationandremovethesemi-colonsandsetthevaluesofthecertificateandkeyfilescreatedearlier:#httpscerts&keyfile;cert_file=;cert_key=changeto#httpscerts&keyfilecert_file=/etc/grafana/cert.
pemcert_key=/etc/grafana/cert.
keyd.
Savethefileandexittothecommandprompt.
3.
Setgrafana-servertobeabletorunonareservedport:setcap'cap_net_bind_service=+ep'/usr/sbin/grafana-server4.
SetGrafanatoautostartatsystembootandstartit:chkconfig--addgrafana-serverchkconfiggrafana-serveronservicegrafana-serverstart5.
Openyourwebbrowsertohttps://IP_ADDRESS_OR_HOSTNAMEandyoushouldseetheGrafanaloginpage.
Loginwiththedefaultusernameof'admin'andpasswordof'admin':6.
Changetheadminpasswordbyclickingthelogointhecorner(1)andthentheAdminaccount(2)andthenChangepasswordlink(3):19QuickStart:InstallingGraphiteandGrafanaCompletethecurrentandnewpasswordandclicktheChangePasswordbutton.
Ifsuccessfulagreenboxwillbedisplayedthatthepasswordhasbeenchangedsuccessfully.
20QuickStart:InstallingGraphiteandGrafana5VerifyOperations5.
1Graphite(graphite-webandcarbon-cache)OpenawebbrowserandbrowsetoyourGraphiteserver(http://IP_ADDRESS_OR_HOSTNAME:81)andyoushouldseeascreenthatlookslikethis:Next,sendametrictoverifythatcarboncacheisrunning,acceptsit,andthewebgraphitewebUIcandisplayit:echo"test.
metric50`date+%s`"|nc127.
0.
0.
12003Inyourbrowser,reloadthepage(F5)andexpandtheGraphitefolderandyoushouldseeatestfolderandmetricnamedmetric:21QuickStart:InstallingGraphiteandGrafana5.
2GrafanaOpenyourwebbrowsertohttps://IP_ADDRESS_OR_HOSTNAMEandyoushouldseetheGrafanaloginpage.
Loginwiththedefaultusernameof'admin'andthepasswordsetintheconfigurationstepearlier.
1.
AddadatasoucebyclickingDataSources(1)andthenAddNew(2):2.
IntheadddatasourcedialoggiveanameforyourGraphiteserver(1),checktheDefaultcheckbox(2),andentertheURLofthegraphiteserver(3),thenclickAdd:22QuickStart:InstallingGraphiteandGrafana3.
VerifythedatasourceisreachablebyclickingtheTestConnectionbutton:YoushouldseeaGreenSuccessmessage.
Grafanaisnowinstalledandyoucanproceedtocreateorimportdashboards.
23QuickStart:InstallingGraphiteandGrafana6TroubleshootingFulltroubleshootingproceduresfortheGraphiteandGrafanasolutionisoutofscopeofthisdocumentbutinthefollowingsubsectionsaresomehintstogetyoustarted.
6.
1Start,stop,checkstatusofGraphiteandGrafanaservicesCheckstatusofservices:UbuntuRHELsudoservicecarbon-cachestatussudoservicegrafana-serverstatussudoserviceapache2statussudoservicecarbon-cachestatussudoservicegrafana-serverstatussudoservicehttpdstatusStopservices:UbuntuRHELsudoservicecarbon-cachestopsudoservicegrafana-serverstopsudoserviceapache2stopsudoservicecarbon-cachestopsudoservicegrafana-serverstopsudoservicehttpdstopTostartservices:UbuntuRHELsudoservicecarbon-cachestartsudoservicegrafana-serverstartsudoserviceapache2startsudoservicecarbon-cachestartsudoservicegrafana-serverstartsudoservicehttpdstart6.
2WhisperstoragedirectoryavailablespaceWhenametricisfirstreceivedacorrespondingwhisper.
wspfileiscreated.
Thefilesizeofthe.
wspwillcorrespondtotheconfiguredfrequencyandretention;itiscreated'thick'andwillnotgrowovertime.
ThestoragedirectoryisdifferentonUbuntuandRHEL.
SeetheappropriatecommandtocheckdiskspaceontheWhisperstoragedirectory.
ChecksufficientdiskspaceisavailableonUbuntu:df-h/var/lib/graphiteFilesystemSizeUsedAvailUse%Mountedon/dev/sda129G5.
0G23G18%/ChecksufficientdiskspaceisavailableonRHEL:df-h/opt/graphite/storageFilesystemSizeUsedAvailUse%Mountedon/dev/mapper/vg_sdtgraphite2-lv_root45G2.
2G41G6%/24QuickStart:InstallingGraphiteandGrafana6.
3LogfilelocationsEachcomponenthasoneormorelogfileswithdetailsasfoundinthetablebelow:TIP:usels-ltrtoreversesortthefilesbymodificationtimestamp;thelastfileintheoutputisagoodplacetostart!
ComponentLogdirectoryLogfiledescriptionApachewebserverUbuntu:/var/log/apache2RHEL:/var/log/httpderror.
logshowsoverallwebserverstatusmessagesgraphite-web_access.
logshowswebpageviews.
Usethereferrerfieldtoseewhichdashboardsaremostpopular!
graphite-web_error.
logshowserrormessagerelatedtothevirtualhostservingtheGraphitewebappGraphitewebappUbuntu:/var/log/graphiteRHEL:/opt/graphite/storage/log/webappexception.
logshowswebappexceptionsrendering.
logshowsuseoffunctionsandresponsetimeofeach.
Foraslowloadingpagethislogmightgiveanideaofwhichfunction(s)areslowestmetricaccess.
logshowsmetricsrequestedcache.
logshowswebapplookupstocarboncachefordatapointsinfo.
logshowswebappquerydetails(buildingindexformetricsearches)CarboncachemetricsreceiverUbuntu:/var/log/carbonRHEL:/opt/graphite/storage/log/carbon-cache/carbon-cache-alistener.
logshowsTCPsessionsconnectedanddisconnectedfrommetricssendingclientscreates.
logshowsmetricsdbfilecreationdetailssuchasmatchingschemaandfrequencyandretentiontimesused.
GrafanaUbuntuandRHEL:/var/log/grafanagrafana.
logshowsaccessesanderrors25QuickStart:InstallingGraphiteandGrafana7ReferencesThefollowingreferenceswereusedinthispaper:Ubuntuserverdownloadhttp://www.
ubuntu.
com/download/serverRedHathttp://www.
redhat.
com/Graphiteprojectsitehttp://graphite.
readthedocs.
org/en/latest/Grafanaprojectsitehttp://grafana.
orgNetAppOnCommandPerformanceManagerhttp://mysupport.
netapp.
com/NOW/cgi-bin/software/NetAppHarvestDataCollectorhttp://mysupport.
netapp.
com/tools/index.
html8VersionHistoryVersionDateDocumentVersionHistoryVersion1.
0July2015InitialReleaseVersion1.
1July2015AdditionofsizinginformationandminorupdatestoformattingVersion1.
2August2015AddedtroubleshootingsectionVersion1.
3August2015AddedstepsforRedHat6and7Version1.
4September2015Correctedservicestop/startstepsforRedHatNetAppprovidesnorepresentationsorwarrantiesregardingtheaccuracy,reliability,orserviceabilityofanyinformationorrecommendationsprovidedinthispublication,orwithrespecttoanyresultsthatmaybeobtainedbytheuseoftheinformationorobservanceofanyrecommendationsprovidedherein.
TheinformationinthisdocumentisdistributedASIS,andtheuseofthisinformationortheimplementationofanyrecommendationsortechniqueshereinisacustomer'sresponsibilityanddependsonthecustomer'sabilitytoevaluateandintegratethemintothecustomer'soperationalenvironment.
ThisdocumentandtheinformationcontainedhereinmaybeusedsolelyinconnectionwiththeNetAppproductsdiscussedinthisdocument.
2015NetApp,Inc.
Allrightsreserved.
NoportionsofthisdocumentmaybereproducedwithoutpriorwrittenconsentofNetApp,Inc.
Specificationsaresubjecttochangewithoutnotice.
NetAppandtheNetApplogoaretrademarksorregisteredtrademarksofNetApp,Inc.
intheUnitedStatesand/orothercountries.
Allotherbrandsorproductsaretrademarksorregisteredtrademarksoftheirrespectiveholdersandshouldbetreatedassuch.

justhost:“第4次VPS测评”,8.3元/月,200M带宽,不限流量,KVM虚拟,4个俄罗斯机房应有适合你的

justhost.ru官方来消息说已经对网络进行了比较全面的优化,针对中国电信、联通、移动来说,4个机房总有一个适合中国用户,让站长进行一下测试,这不就有了这篇有关justhost的VPS的第四次测评。本帖主要关注的是网络,对于其他的参数一概不管! 官方网站:https://justhost.ru 最低配VPS:8.3元/月,KVM,512M内存,5G硬盘,200M带宽,不限流量 购买链接:...

Megalayer(48元)新增 美国CN2优化线路特价服务器和VPS方案

Megalayer 商家算是新晋的服务商,商家才开始的时候主要是以香港、美国独立服务器。后来有新增菲律宾机房,包括有VPS云服务器、独立服务器、站群服务器等产品。线路上有CN2优化带宽、全向带宽和国际带宽,这里有看到商家的特价方案有增加至9个,之前是四个的。在这篇文章中,我来整理看看。第一、香港服务器系列这里香港服务器会根据带宽的不同区别。我这里将香港机房的都整理到一个系列里。核心内存硬盘IP带宽...

virmach:AMD平台小鸡,赌一把,单车变摩托?$7.2/年-512M内存/1核/10gSSD/1T流量,多机房可选

virmach送来了夏季促销,价格低到爆炸,而且在低价的基础上还搞首年8折,也就是说VPS低至7.2美元/年。不过,这里有一点要说明:你所购买的当前的VPS将会在09/30/2021 ~ 04/30/2022进行服务器转移,而且IP还会改变,当前的Intel平台会换成AMD平台,机房也会变动(目前来看以后会从colocrossing切换到INAP和Psychz),采取的是就近原则,原来的水牛城可能...

iptables为你推荐
国内域名注册请问中国可以注册一级域名的是哪几个网站?域名价格为什么很多网站域名价格差别很大,价格贵贱有什么关系啊linux虚拟主机如何安装LINUX虚拟机独立ip主机有用过独立IP主机吗linux主机linux优点和缺点有哪些啊?com域名空间域名和空间是什么意思虚拟空间免费试用哪有免费试用的虚拟主机?免费网站空间申请哪个网站可以申请免费的网页空间虚拟主机软件哪种虚拟机软件好用北京虚拟主机北京的虚拟主机提供商哪个经济实惠?
北京租服务器 美国独立服务器 高防dns 80vps 免费个人博客 服务器怎么绑定域名 华为4核 云全民 韩国名字大全 泉州移动 河南移动网 中国电信宽带测速网 云营销系统 沈阳idc ubuntu安装教程 vi命令 域名商城 海尔t68g 招聘瓦工 ddos防火墙 更多