欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

Grafana基礎(chǔ)配置文件

官方是怎么解釋Grafana的:

成都創(chuàng)新互聯(lián)公司服務(wù)項目包括河?xùn)|網(wǎng)站建設(shè)、河?xùn)|網(wǎng)站制作、河?xùn)|網(wǎng)頁制作以及河?xùn)|網(wǎng)絡(luò)營銷策劃等。多年來,我們專注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢、行業(yè)經(jīng)驗、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,河?xùn)|網(wǎng)站推廣取得了明顯的社會效益與經(jīng)濟效益。目前,我們服務(wù)的客戶以成都為中心已經(jīng)輻射到河?xùn)|省份的部分城市,未來相信會繼續(xù)擴大服務(wù)區(qū)域并繼續(xù)獲得客戶的支持與信任!

    grafana是用于可視化大型測量數(shù)據(jù)的開源程序,他提供了強大和優(yōu)雅的方式去創(chuàng)建、共享、瀏覽數(shù)據(jù)。dashboard中顯示了你不同metric數(shù)據(jù)源中的數(shù)據(jù)。

    grafana最常用于因特網(wǎng)基礎(chǔ)設(shè)施和應(yīng)用分析,但在其他領(lǐng)域也有機會用到,比如:工業(yè)傳感器、家庭自動化、過程控制等等。

    grafana有熱插拔控制面板和可擴展的數(shù)據(jù)源,目前已經(jīng)支持Graphite、InfluxDB、OpenTSDB、Elasticsearch。

    

app_mode:應(yīng)用名稱,默認(rèn)是production

[database]

# Either "MySQL", "postgres" or "sqlite3", it's your choice

;type = sqlite3

;host = 127.0.0.1:3306

;name = grafana

;user = root

;password =

# For "postgres" only, either "disable", "require" or "verify-full"

;ssl_mode = disable

# For "sqlite3" only, path relative to data_path setting

;path = grafana.db

默認(rèn)使用sqlite3,可以根據(jù)實際修改存儲數(shù)據(jù)源

[server]

http_addr:監(jiān)聽的ip地址,,默認(rèn)是0.0.0.0

http_port:監(jiān)聽的端口,默認(rèn)是3000

protocol:http或者h(yuǎn)ttps,,默認(rèn)是http

domain:這個設(shè)置是root_url的一部分,當(dāng)你通過瀏覽器訪問grafana時的公開的domian名稱,默認(rèn)是localhost

enforce_domain:如果主機的header不匹配domian,則跳轉(zhuǎn)到一個正確的domain上,默認(rèn)是false

root_url:這是一個web上訪問grafana的全路徑url,默認(rèn)是%(protocol)s://%(domain)s:%(http_port)s/

router_logging:是否記錄web請求日志,默認(rèn)是false

cert_file:如果使用https則需要設(shè)置

cert_key:如果使用https則需要設(shè)置

[database]

grafana默認(rèn)需要使用數(shù)據(jù)庫存儲用戶和dashboard信息,默認(rèn)使用sqlite3來存儲,你也可以換成其他數(shù)據(jù)庫

type:可以是mysql、postgres、sqlite3,默認(rèn)是sqlite3

path:只是sqlite3需要,定義sqlite3的存儲路徑

host:只是mysql、postgres需要,默認(rèn)是127.0.0.1:3306

name:grafana的數(shù)據(jù)庫名稱,默認(rèn)是grafana

user:連接數(shù)據(jù)庫的用戶

password:數(shù)據(jù)庫用戶的密碼

ssl_mode:只是postgres使用

[security]

admin_user:grafana默認(rèn)的admin用戶,默認(rèn)是admin

admin_password:grafana admin的默認(rèn)密碼,默認(rèn)是admin

login_remember_days:多少天內(nèi)保持登錄狀態(tài)

secret_key:保持登錄狀態(tài)的簽名

disable_gravatar:

[users]

allow_sign_up:是否允許普通用戶登錄,如果設(shè)置為false,則禁止用戶登錄,默認(rèn)是true,則admin可以創(chuàng)建用戶,并登錄grafana

allow_org_create:如果設(shè)置為false,則禁止用戶創(chuàng)建新組織,默認(rèn)是true

auto_assign_org:當(dāng)設(shè)置為true的時候,會自動的把新增用戶增加到id為1的組織中,當(dāng)設(shè)置為false的時候,新建用戶的時候會新增一個組織

auto_assign_org_role:新建用戶附加的規(guī)則,默認(rèn)是Viewer,還可以是Admin、Editor

[auth.anonymous]

enabled:設(shè)置為true,則開啟允許匿名訪問,默認(rèn)是false

org_name:為匿名用戶設(shè)置組織名稱

org_role:為匿名用戶設(shè)置的訪問規(guī)則,默認(rèn)是Viewer

[auth.github]

針對github項目的,很明顯,呵呵

enabled = false

allow_sign_up = false

client_id = some_id

client_secret = some_secret

scopes = user:email

auth_url = https://github.com/login/oauth/authorize

token_url = https://github.com/login/oauth/access_token

api_url = https://api.github.com/user

team_ids =

allowed_domains =

allowed_organizations =

[auth.google]

針對google app的

enabled = false

allow_sign_up = false

client_id = some_client_id

client_secret = some_client_secret

scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email

auth_url = https://accounts.google.com/o/oauth3/auth

token_url = https://accounts.google.com/o/oauth3/token

api_url = https://www.googleapis.com/oauth3/v1/userinfo

allowed_domains =

[auth.basic]

enabled:當(dāng)設(shè)置為true,則http api開啟基本認(rèn)證

[auth.ldap]

enabled:設(shè)置為true則開啟LDAP認(rèn)證,默認(rèn)是false

config_file:如果開啟LDAP,指定LDAP的配置文件/etc/grafana/ldap.toml

[auth.proxy]

允許你在一個HTTP反向代理上進行認(rèn)證設(shè)置

enabled:默認(rèn)是false

header_name:默認(rèn)是X-WEBAUTH-USER

header_property:默認(rèn)是個名稱username

auto_sign_up:默認(rèn)是true。開啟自動注冊,如果用戶在grafana DB中不存在

[analytics]

reporting_enabled:如果設(shè)置為true,則會發(fā)送匿名使用分析到stats.grafana.org,主要用于跟蹤允許實例、版本、dashboard、錯誤統(tǒng)計。默認(rèn)是true

google_analytics_ua_id:使用GA進行分析,填寫你的GA ID即可

[dashboards.json]

如果你有一個系統(tǒng)自動產(chǎn)生json格式的dashboard,則可以開啟這個特性試試

enabled:默認(rèn)是false

path:一個全路徑用來包含你的json dashboard,默認(rèn)是/var/lib/grafana/dashboards

[session]

provider:默認(rèn)是file,值還可以是memory、mysql、postgres

provider_config:這個值的配置由provider的設(shè)置來確定,如果provider是file,則是data/xxxx路徑類型,如果provider是mysql,則是user:password@tcp(127.0.0.1:3306)/database_name,如果provider是postgres,則是user=a password=b host=localhost port=5432 dbname=c sslmode=disable

cookie_name:grafana的cookie名稱

cookie_secure:如果設(shè)置為true,則grafana依賴https,默認(rèn)是false

session_life_time:session過期時間,默認(rèn)是86400秒,24小時

在4.0版本alert功能使用

[smtp]

enabled = true

host = smtp.126.com:25

user =gamebarlepus1

password =126的客戶端授權(quán)碼

;cert_file =

;key_file =

;skip_verify = false

from_address = gamebarlepus1@126.com

[emails]

welcome_email_on_sign_up = false

templates_pattern = emails/*.html

[log]

mode:可以是console、file,默認(rèn)是console、file,也可以設(shè)置多個,用逗號隔開

buffer_len:channel的buffer長度,默認(rèn)是10000

level:可以是"Trace", "Debug", "Info", "Warn", "Error", "Critical",默認(rèn)是info

[log.console]

level:設(shè)置級別

[log.file]

level:設(shè)置級別

log_rotate:是否開啟自動輪轉(zhuǎn)

max_lines:單個日志文件的最大行數(shù),默認(rèn)是1000000

max_lines_shift:單個日志文件的最大大小,默認(rèn)是28,表示256MB

daily_rotate:每天是否進行日志輪轉(zhuǎn),默認(rèn)是true

max_days:日志過期時間,默認(rèn)是7,7天后刪除

分享標(biāo)題:Grafana基礎(chǔ)配置文件
文章起源:http://www.chinadenli.net/article24/jogece.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供企業(yè)網(wǎng)站制作定制網(wǎng)站網(wǎng)站設(shè)計用戶體驗營銷型網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運營