亚洲精品视频一区二区,一级毛片在线观看视频,久久国产a,狠狠狠色丁香婷婷综合久久五月,天天做天天欢摸夜夜摸狠狠摸

當前位置: > 投稿>正文

普羅米修斯英文,Prometheus是什么意思,Prometheus中文翻譯,Prometheus發(fā)音、用法及例句

2025-06-19 投稿

普羅米修斯英文,Prometheus是什么意思,Prometheus中文翻譯,Prometheus發(fā)音、用法及例句

?Prometheus

Prometheus發(fā)音

英:[pr??m?θju:s]  美:[pr??m?θ??s, -?θjus]

英:  美:

Prometheus中文意思翻譯

n. [希神]普羅米修斯

Prometheus常見(jiàn)例句

1 、Zeus warned Prometheus not to try and trick him again, but did not punish him.───宙斯警告普羅米修斯不要想再次欺騙他,但并沒(méi)有懲罰普羅米修斯。

2 、Prometheus, despite the Lions made a big, tall and the United States, as his teeth, his feet fitted with claws, he is more powerful than other animals, but the Lions said: "But I fear rooster .───盡管普羅米修斯把獅子造得又高又大又美,給他牙齒當作器,給他腳上裝上爪子,讓他比別的野獸更強大,但是獅子說(shuō):“可是我卻害怕公雞?!?/p>

3 、By Jove's order Prometheus was chained to a rock on Mount Caucasus, and subjected to the attack of an eagle which, for ages, preyed upon his liver, yet succeeded not in consuming it.───為此,朱庇特命令將普羅米修斯鎖在高加索山上的一塊絕巖峭壁上,成年累月地受著(zhù)一頭老鷹的折磨,它天天啄食他的肝臟卻總不能把它吃光。

4 、There are lots of tragedies in western literature such as Oedipus, Prometheus Bound, Romeo and Juliet, Macbeth, Hamlet, Faust, etc.───中文摘要:文學(xué)作品是現實(shí)生活的一面鏡子,反映了生活的方方面面。

5 、He, as the flame toward human Prometheus, he is different from any other description of Marx scholars and politicians, he is a true spread of Marxism in China, the first man.───他如同把圣火引向人間的普羅米修斯,他不同于任何其他介紹馬克思的學(xué)者和政客,他是名副其實(shí)的在中國傳播馬克思主義的第一人。

6 、It is the record of a promise, a reminder of a duty as well as and unbreakable restriction that rivals the bonds of Prometheus or Fenrir the Wolf.───它是一個(gè)約定的記錄,提醒他職責的記錄,也是可以和普羅米修斯的和芬瑞爾之狼(注1)相比的牢固禁錮。

7 、In Athens, people race to be held, including Prometheus, the expression of respect for the gods.───在雅典,人們舉行賽跑向包括普羅米修斯在內的眾神表達敬意。

8 、So in a masterful way he took away the gift of fire from mankind. However, Prometheus managed to steal fire from heaven and secretly brought it down tomen.───因此,他專(zhuān)橫地把火從人類(lèi)手中奪走。然而,普羅米修斯設法竊走了天火,偷偷地把它帶給人類(lèi)。

9 、He took Prometheus into the mountains and 33) chained him to a large stone.───他把普羅米修斯帶到山里,將他鎖在一塊大石頭上。

10 、But prometheus regained the treasure, stealing it from heaven in a hollow tube───但是普羅米修斯用一根空心管子從天府偷盜火種,再次取得了寶貴的天火。

11 、The story (absurd enough!) is that Jupiter made the first woman and sent her to Prometheus and his brother, to punish them for their presumption in stealing fire from heaven; and man, for accepting the gift.───傳說(shuō)(雖然相當荒唐)朱庇特造了第一個(gè)女人并把她送給了普羅米修斯兄弟二人,以懲罰他們偷盜天火的狂妄行為,也懲罰人類(lèi),因為他們接受了天火。

12 、Prometheus, after escaping unhurt, said to his younger brother, "Epimethius, we can do nothing among these Titans.───及時(shí)躲避而未受傷害的普羅米修斯對他的弟弟說(shuō):"厄庇墨透斯,我們在這些泰坦之中無(wú)法有所作為。

13 、After a great victory to who is going to make a decision Wang, Zeus and his brothers have refused to give ground, they also saw the war, this time put forward by Prometheus picked lots to decide.───偉大的勝利之后到了決定誰(shuí)來(lái)作王,宙斯和他的兄弟們都互不相讓?zhuān)劭此麄冎g又要開(kāi)戰,這時(shí)普羅米修斯提出用拈鬮來(lái)決定。

14 、But Prometheus said that Epimetheus had to be careful with Zeus' gift .───但普羅米修斯卻說(shuō)伊比米修斯必須小心天神宙斯送來(lái)的這個(gè)禮物。

15 、Aeschylus wrote such plays as [b][color=#990000]Prometheus Bound,Persians[/color][/b] and [b][color=#990000]Agamemnon[/color][/b].Aeschylus is noted for his vivid character portrayal and majestic poetry.───埃斯庫羅斯因其鮮貨的人物描寫(xiě)和大氣磅礴的戲劇詩(shī)而聞名遐邇,他的代表作品有《被縛的普羅米修斯》、《波斯人》和《阿迦門(mén)儂》。

16 、Kratos is unable to reach the remaining chain that holds Prometheus.───奎托斯無(wú)法夠到那條束縛普羅米修斯的鏈條。

17 、In mythology ,prometheus smelted a ring from the fire of the gods for manking ,out of love.───在神話(huà)中,出于愛(ài),普羅米修斯用誅神之火為人類(lèi)煉制了一枚戒指,人間第一枚戒指。

18 、Saturn's F ring appears to be herded by Prometheus and Pandora.───土星的F環(huán)似乎是由土衛十六與土衛十七看管。

19 、Prometheus, after escaping unhurt, said to his younger brother, "Epimetheus, we can do nothing among these Titans.───及時(shí)躲避而未受傷害的普羅米修斯對他的弟弟說(shuō):“厄庇墨透斯,在這些泰坦之中無(wú)法有所。

20 、At last the time came when Zeus's throne was in danger, and Prometheus, pitying his enemy, told him a secret which helped him to make everything safe again.───及時(shí)躲避而未受傷害的普羅米修斯對他的弟弟說(shuō):“厄庇墨透斯,我們在這些泰坦之中無(wú)法有所作為。

21 、Prometheus is bound for eternity as a vulture snacks on his regenerating liver.─── 普羅米修斯要永遠 被一只禿鷲啄食他能重生的肝臟

22 、Aspasia was created in case a mistress should be needed for Prometheus ."───亞斯巴昔是為了普羅米修斯需要一個(gè)尤物的原故而生的?!?/p>

23 、Aeschylus wrote such plays as Prometheus Bound, Persians and Agamemnon. Aeschylus is noted for his vivid character portrayal and majestic poetry.───埃斯庫羅斯因其鮮貨的人物描寫(xiě)和大氣磅礴的戲劇詩(shī)而聞名遐邇,他的代表作品有《被縛的普羅米修斯》、波斯人》和《阿迦門(mén)儂》。

24 、In the conflict between Cronus and Jupiter, Prometheus had adopted the cause of the Olympian deities───在克洛諾斯反對朱庇特的斗爭中,普羅米修斯站到了奧林波斯山諸神的一邊。

25 、In the conflict between Cronus and Zeus, Prometheus had adopted the cause of the Olympian deities.───在克洛諾斯反對宙斯的斗爭中,普羅米修斯站在奧林帕斯山諸神這邊。

26 、Zeus is a god of power without wisdom, Prometheus a god of wisdom without power;each is a finite god and as such tainted with anthropomorphism.───宙斯是一個(gè)無(wú)所不能,有所不知的神;

27 、In the Ancient Greek Games, the always-burning torch commemorated Prometheus, the Titan who dared to steal fire from the god Zeus and hand it over to we mere mortals.───在古代希臘運動(dòng)會(huì ),永不熄滅的火炬是用來(lái)紀念普羅米修斯,一個(gè)膽敢從宙斯那里偷來(lái)火種給我們這些凡人的人。

28 、"Deucalion:a son of Prometheus who with his wife, Pyrrha, built an ark and floated in it to survive the deluge sent by Zeus.The couple became the ancestors of the renewed human race.───"杜卡里恩:普羅米修斯的一個(gè)兒子,他與妻子琶拉制造了諾亞方舟,并乘著(zhù)它在宙斯引發(fā)的大洪水中逃生.這對夫婦成為現在(更新后的)人類(lèi)的祖先.

29 、" Then he called his two slaves, Strength and Force, and told them to take Prometheus and bind him fast to a great rock in the lonely Caucasian Mountains.───他說(shuō)。于是,他命令力氣和武力兩個(gè)奴隸去捉拿普羅米修斯,把他牢牢地綁在荒蕪的高加索山上的一塊巨石上。

30 、To some extent, King, like Prometheus, illuminated the road to liberation for the American black people.───從某種程度上說(shuō),金就象美國黑人的普羅米修斯,照亮了美國黑人解放的道路。

31 、By Zeus' order Prometheus was chained to a rock on Mount Caucasus, and subjected to the attack of an eagle which, for ages, preyed upon his liver, yet succeeded not in consuming it.───為此,宙斯下令將普羅火修斯鎖在高加索山上的一塊絕巖峭壁上,成年累月地受著(zhù)一只老鷹的折磨,它天天啄食他的肝,卻總不把它吃光。

32 、"Prometheus loves man too well," said he, "he shall be punished.───"普羅米修斯對人類(lèi)的感情太深了。他應該受到懲罰。"

33 、The story(absurd enough!) is that Jupiter made the first woman and sent her to Prometheus and his brother, to punish them for their presumption in stealing fire from heaven; and man, for accepting the gift.───傳說(shuō)(雖然相當荒唐)朱庇特造了第一個(gè)女人并把她送給了普羅米修斯兄弟二人,以懲罰他們偷盜天火的狂妄行為,也懲罰人類(lèi),因為他們接受了天火。

34 、Androgyny, Prometheus, and the Gender of Mother───雙性合體、普羅米修斯與母親的性別

35 、He killed the eagle and set Prometheus free.───他殺了老鷹,解放了普羅米修斯。

36 、The Olympic flame derives comes Prometheus, an ancient Greek god.───圣火,起源于古希臘神話(huà)傳說(shuō)。

37 、Prometheus overtakes Pandora in orbit around Saturn about every 25 days.───土衛十六在土衛十七上面,大約每25天環(huán)繞土星一圈。

38 、Son of Prometheus, Deucalion had been warned beforehand by his father of the coming flood and made himself a hugechest.───丟卡利翁的父親事先就警告他會(huì )爆發(fā)洪水,因此,他制了個(gè)巨大的箱子。

39 、To pay tribute to Prometheus and the fire, the ancient Greeks used torches during religious ceremonies and by keeping a sacred fire burning in certain temples.───古希臘人為表達對普羅米修斯和火的敬意,在宗教儀式上都會(huì )使用火炬,并在某些神廟讓圣火一直燃燒。

40 、He might have wished that Prometheus could have been less unbending in his spirit, but he feared for himself if he were to do more in the matter.───他不敢對此事**手過(guò)多,只能但愿在普羅米修斯的靈魂中能少一些耿直。

41 、The main different between the Land Raider and the Prometheus is its weaponsry. the quad-mounted heavy bolters in each sponson replace the Land Raider's lascannons.───基本型蘭德掠襲者與普羅米修斯型之間最主要的不同在于他們的武器系統,四聯(lián)裝的重型爆矢**取代了兩側的光束加農炮。

42 、But Prometheus, the Titan, who was earth-born himself, and loved these men of the earth, bagged Zeus so earnestly to shae them, that Zeus consented to do so.───但是,那個(gè)生長(cháng)在人間并熱愛(ài)人類(lèi)的泰坦普羅米修斯,卻很誠懇地請求宙斯寬恕他們。宙斯答應了他的請求。

43 、Specifically, an orbital dance involving Saturn's moon Prometheus keeps creating unusual light and dark streamers in the F-Ring of Saturn.───具體來(lái)說(shuō),土星衛星普羅米修斯的美麗軌道不斷產(chǎn)生不尋常的明暗條紋(土星F環(huán))。

44 、Zeus ordered Prometheus to make a wise animal, and this we call man.───宙斯命令普羅米修斯創(chuàng )造一種有智慧的動(dòng)物,我們稱(chēng)之為人類(lèi)。

45 、One day, Prometheus said to his brother Titans, "What is the use of wasting so much strength?───一天,普羅米修斯對他的兄弟們說(shuō):“我們浪費這么多力氣到底有什么好處呢?

46 、When Zeus saw these changes in humanity, and understood what Prometheus had done, he was 31) enraged.───宙斯發(fā)現了人類(lèi)的這些轉變、明白普羅米修斯做了什麼事,感到怒不可遏。

47 、He left the self-made caves of rock in which he lived and came up to earth to give Prometheus the best advice he could, urging him to make his submission to Zeus.───他離開(kāi)了自己居住的自制巖洞,來(lái)到地面上給了普羅米修斯他所能給的最好的建議,力勸他向宙斯屈服。

48 、Contrast of Cultural Differences between the East and the West Based on the Tales of Gun and Prometheus───從鯀治水和普羅米修斯盜火看東西文化差異

49 、At last the time came when Zeus's throne was in danger, and Prometheus, pitying his enemy, told him a secret which helped him to make everything safe again.───當宙斯的王位岌岌可危時(shí),這個(gè)時(shí)刻終于到來(lái)了。普羅米修斯同情他的敵人,再次告訴宙斯一個(gè)能幫助他轉危為安的秘訣。

50 、So Hermes then brought her to Epimetheus, brother of Prometheus.───所以赫耳墨斯將她帶給阿皮么撒司,普羅米修斯的兄弟。

51 、Now there were many of the gods who pitied Prometheus and among these was the Titan, Father Oceanus, who surrounded the world with his life-giving stream.───很多神都很同情普羅米修斯,其中有一位泰坦河神之父俄克阿諾斯,他用自己的生命之泉包圍著(zhù)整個(gè)世界。

52 、Son of Prometheus, Deucalion had been warned before hand by his father of the coming flood and made himself a huge chest.───丟卡利翁的父親事先就警告他會(huì )爆發(fā)洪水,因此,他制了個(gè)巨大的箱子。

53 、Zeus had sentenced Prometheus to an eternity of torture by an eagle.───宙斯通過(guò)一只禿鷹已使普羅米修斯遭受永遠的折磨。

54 、A Titan who was the father of Prometheus and Atlas and an ancestor of the human race───伊阿珀托斯一個(gè)提坦巨人,是普羅米修斯和阿特拉斯的父親,而且是人類(lèi)的祖先

55 、Hence, the aporia of aesthetic myth writing derived from Gnosticism's dualism, which was represented in western aesthetic history of Prometheus myth writings.───因此,審美神話(huà)的寓言式書(shū)寫(xiě)困境承諾斯替主義二元論而來(lái),在西方審美思想史上綿延不絕的普羅米修斯神話(huà)創(chuàng )作中見(jiàn)出。

56 、When he was busy with teaching men the art of living, Prometheus had left a big cask in the care of Epimetheus.───當普羅米修斯忙于教授人們生存之道的時(shí)候,他把一個(gè)桶托付給厄庇墨透斯。

57 、However, Prometheus managed to steal fire from heaven and secretly brought it down tomen.───宙斯對他這種肆無(wú)忌憚的違抗行為大發(fā)雷霆。

58 、Flying into an anger at this unjustified act of rebellion,Zeus let the other gods chain Prometheus to a rock on Mountain Caucasus,where a hungry eagle ever tore at his liver which ever GREw again.───他令其他的山神把普羅米修斯用鎖鏈縛在高加索山脈的一塊巖石上。一只饑餓的老鷹天天來(lái)啄食他的肝臟,而他的肝臟又總是重新長(cháng)出來(lái)。

59 、Flying into an anger at this unjustified act of rebellion, Zeus let the other gods chain Prometheus to a rock on Mountain Caucasus, where a hungry eagle ever tore at his liver which ever grew again.───宙斯對他這種肆無(wú)忌憚的違抗行為大發(fā)雷霆。他令其他的山神把普羅米修斯用鎖鏈縛在高加索山脈的一塊巖石上。

60 、So, the sickly child became prometheus, creating man from clay.─── 這么說(shuō)那個(gè)多病的孩子變身普羅米修斯 在用泥土造人

61 、5:One day, after Prometheus had been gone for some time, Hermes came to the cottage of Epimetheus , leading by the hand a beautiful young women, whose name was Pandora.───5:一天,當普羅米修斯已經(jīng)走了一段時(shí)間,赫密士來(lái)到小屋的厄庇墨透斯,用手領(lǐng)導一個(gè)年輕漂亮的女人,名叫潘多拉。

62 、"Deucalion:a son of Prometheus who with his wife, Pyrrha, built an ark and floated in it to survive the deluge sent by Zeus. The couple became the ancestors of the renewed human race."───"杜卡里恩:普羅米修斯的一個(gè)兒子,他與妻子琶拉制造了諾亞方舟,并乘著(zhù)它在宙斯引發(fā)的大洪水中逃生.這對夫婦成為現在(更新后的)人類(lèi)的祖先."

63 、At last the time came when Zeus's throne was in danger,Prometheus, pitying his enemy, told him a secret which helped him to make everything safe again.───當宙斯的王位岌岌可危時(shí),時(shí)刻終于到來(lái)了。普羅米修斯同情他的敵人,再次告訴宙斯一個(gè)能幫助他轉危為安的秘訣。

64 、Prometheus sequence is now harder for higher ranked squads.───在高軍銜的隊伍游戲時(shí)普羅米修司的難度加強。

65 、Prometheus stole fire from the gods, and gave it to man, a gift that burned their hands while it lit their way.─── 普羅米修斯從眾神那里偷出火種 把它交給了人類(lèi) 這份禮物在照亮道路的同時(shí)也灼傷了他們的手

66 、However, Zeus did punish Prometheus.───但是宙斯懲罰了普羅米修斯。

67 、But this frightful punishment did not last forever. Prometheus himself knew that some day he should be set free, and his knowledge made him strong to endure.───不過(guò),這種殘酷的懲罰不會(huì )持久的。普羅米修斯知道,終有一天他會(huì )獲得自由的,正是這個(gè)想法使他勇敢地忍受著(zhù)。

68 、Greek mythology tells the story of Prometheus, who stole sacred fire from the gods on Mount Olympus and gave it to humankind, opening the way to civilization.───古希臘的神話(huà)講述了普羅米修斯的故事,他從奧林匹斯山上的眾神手中**了神圣的火種,并將它賜予人類(lèi),為人類(lèi)開(kāi)啟了文明之門(mén)。

69 、It was Nereus who advised Heracles to seek Prometheus in the hero's search of the golden apples.───在勇敢地尋覓金蘋(píng)果的時(shí)候,納魯斯建議赫格立斯尋找普羅米修斯。

70 、Prometheus Unbound The Lyrical drama───抒情戲劇

71 、Zeus saw through the trick and felt displeased at the Prometheus' favor towards men.───宙斯看穿了他的把戲。普羅米修斯偏袒人類(lèi),這使宙斯感到不快。

72 、They are Ann Radcliffe"s The Mysteries of Udolpho, Matthew Lewis"s The Monk, Mary Shelley"s Frankenstein, or the Modern Prometheus and Charles Maturin"s Melmoth, the Wanderer.───哥特意識形態(tài)所表現的是18世紀末19世紀初新舊時(shí)代交替之時(shí),中下階層在面對時(shí)代劇變而惴惴不安的心理寫(xiě)照。

73 、In addition to creating the ads for the general market, Carmichael Lynch also became the media planning and buying agency for Subaru, assuming those duties from an Omnicom media agency, Prometheus.───??? 卡米高林奇除了為斯巴魯做針對普通市場(chǎng)的**,也承擔了媒體設計和購買(mǎi)**商的工作,試想一下如果由普羅米休斯的奧姆尼康媒體**商承擔這些職責.

74 、We live in the age of Prometheus, the mythological titan who brought fire to humanity and was punished by Zeus, king of the gods.───我們生活在普羅米修斯時(shí)代,這個(gè)神話(huà)巨人為人類(lèi)帶來(lái)了火種,因而被眾神之神宙斯懲罰。

75 、BIOGRAPHY American Prometheus: The Triumph and Tragedy of J. Robert Oppenheimer by Kai Bird and Martin J. Sherwin (Alfred A. Knopf)───傳記類(lèi)獎凱·伯德和馬丁·舍溫共同創(chuàng )作的《美國的普羅米修斯:奧本海默的勝利和悲劇》

76 、Prometheus loves man too well, said he, he shall be punished. Then he called his two slaves, Strength and Force, and told them to take Prometheus and Bind him fast to a great rock in the lonely CaucAsian Mountains.───“普羅米修斯對人類(lèi)的感情太深了。他應該受到懲罰?!彼f(shuō)。于是,他命令力氣和武力兩個(gè)奴隸去捉拿普羅米修斯,把他牢牢地綁在荒蕪的高加索山上的一塊巨石上。

77 、Afterwards, Prometheus returned to Mount Olympus.───后來(lái)普羅米修斯重返奧林帕斯山。

78 、So Hermes them essenger brought her to Epimetheus,brother of Prometheus.───于是信使赫耳墨斯將她帶給普羅米修斯的弟弟厄庇墨透斯。

79 、Zeus allowed it because Hercules was Zeus' son and freeing Prometheus would bring Hercules 38) fame and 39) glory .───宙斯準許了,因為??肆λ故撬膬鹤?,而釋放普羅米修斯將為??肆λ箮?lái)名聲和榮譽(yù)。

80 、Based on their respective time, both Aeschylus and Shelley profoundly reflects the social reality, highly praises the revolutionary spirit of Prometheus and tells the direction of development of their respective age.───埃斯庫羅斯、詩(shī)人雪萊立足于時(shí)代,以普羅米修斯深刻地反映了所處時(shí)代的真實(shí)的社會(huì )現實(shí),頌揚了抗爭者的偉大斗爭精神,為時(shí)代指明了方向。

81 、As they were not stealers, they could avoid being fastened on the top mountain and being pecked by eagles while at the same time they could not get admiration and praise unlike Prometheus.───因為并非偷兒,所以栓在山上,給老雕去啄的災難是免掉了,然而也沒(méi)有普羅米修斯那樣的被傳揚,被崇拜。

82 、He punished Prometheus for giving fire to man by chaining him to a big rock for centuries.───因此他把普羅米修斯用鐵鏈鎖在一塊巨石上達好幾個(gè)世紀,以懲罰他把火交給人類(lèi)。

83 、As part of the Prometheus Project, the space agency is trying to design nuclear reactors that could power ion-propulsion systems for interplanetary spacecraft.───做為普羅米修司計畫(huà)的一部份,航太總署正試圖設計的核反應器,能提供能量給行星際太空船的離子推進(jìn)系統。

2020-08-25

Prometheus 實(shí)現郵件告警(Prometheus+Alertmanager+**郵箱或者網(wǎng)易163郵箱,目前測試過(guò)這兩種郵箱都可以發(fā)送告警郵件)

Prometheus實(shí)現郵件告警原理如下:

Prometheus官方有一個(gè)附帶的中間件:alertmanager,通過(guò)設置rules規則和路由轉發(fā)可以實(shí)現郵件告警,前提是你需要有一個(gè)可以發(fā)送郵件的郵件服務(wù)端(可以自建或者使用互聯(lián)網(wǎng)公司提供的免費郵箱)

告警原理圖

Prometheus完整架構圖

我之前得出的錯誤結論如下:

推薦直接在虛擬機操作系統上直接安裝Prometheus和Alertmanager,不推薦其中任何一方在容器中運行,因為測試過(guò)在容器中運行Prometheus和alertmanager,結果出現如下錯誤情況

第一種情況是:我的node-exporter掉線(xiàn)跌機了(手動(dòng)關(guān)機,模擬突然掉線(xiàn)跌機),Prometheus卻提示節點(diǎn)依然在線(xiàn)?有時(shí)候卻能夠正常顯示節點(diǎn)掉線(xiàn)跌機,生成告警發(fā)送郵件

第二種情況是:我的node-exporter掉線(xiàn)跌機了(手動(dòng)關(guān)機,模擬突然掉線(xiàn)跌機),Prometheus提示節點(diǎn)掉線(xiàn),告警生成,但是沒(méi)有發(fā)送郵件,我手動(dòng)恢復node-exporter后,告警解除,郵件能正常發(fā)送郵件提示告警已經(jīng)解除。。。。

第三種情況是:我的node-exporter掉線(xiàn)跌機了(手動(dòng)關(guān)機,模擬突然掉線(xiàn)跌機),Prometheus提示節點(diǎn)掉線(xiàn),告警生成,正常成功發(fā)送郵件,我手動(dòng)恢復node-exporter后,告警解除,郵件沒(méi)有發(fā)送出來(lái)。。。。

以上三種情況之前經(jīng)常出現,當時(shí)第一步以為是自己設置的scrape_interval不合理導致的,結果調試幾次,問(wèn)題沒(méi)有解決,第二步以為是自己的服務(wù)器時(shí)間沒(méi)有做到精確同步,然后我去設置和阿里云的ntp服務(wù)器同步,結果問(wèn)題依然沒(méi)有解決,第三步,換個(gè)方向,把alertmanager遷移到虛擬機操作系統上安裝運行,問(wèn)題解決!

北京時(shí)間是GMT+8小時(shí),有些同志的時(shí)間可能是UTC的,但是如果是在要求不太十分精確的情況下,UTC時(shí)間是剛剛好等于GMT時(shí)間

為了避免時(shí)區的混亂,prometheus所有的組件內部都強制使用Unix時(shí)間,對外展示使用GMT時(shí)間。

要改時(shí)區有兩個(gè)辦法

1 .修改源碼,重新編譯。

2. 使用 docker 運行 Prometheus,掛載本地時(shí)區文件

docker run --restart always -e TZ=Asia/Shanghai --hostname prometheus --name prometheus-server -d -p 9090:9090 -v /data/prometheus/server/data:/prometheus -v /data/prometheus/server/conf/prometheus.yml:/etc/prometheus/prometheus.yml -u root prom/prometheus:v2.5.0

正文開(kāi)始

安裝alertmanager

容器安裝方式:

docker run -d --name alertmanager -p 9093:9093 -v /usr/local/Prometheus/alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml prom/alertmanager:latest

先在宿主機/usr/local/Prometheus下創(chuàng )建一個(gè)文件夾alertmanager,然后在文件夾里創(chuàng )建alertmanager.yml配置文件,待會(huì )才能映射到alertmanager容器里的/etc/alertmanager目錄下

global:全局配置

   resolve_timeout: 問(wèn)題解決的超時(shí)時(shí)間

   smtp_from: 發(fā)送告警郵件的郵箱賬號

   smtp_smarthost: 郵箱 SMTP 服務(wù)地址,這里是以**郵箱為例,也可以用網(wǎng)易163郵箱,這個(gè)和我之前設置zabbix郵件告警時(shí)的配置一樣

   smtp_auth_username: 如果沒(méi)有設置郵箱別名,那就是賬戶(hù)名

   smtp_auth_password:  郵箱的授權碼,不是 賬戶(hù)密碼,你可以在**郵箱或者網(wǎng)易163郵箱網(wǎng)頁(yè)端設置,開(kāi)啟 POP3/SMTP 服務(wù)時(shí)會(huì )提示,和配置zabbix郵件告警的時(shí)候幾乎一樣

   smtp_require_tls: 是否使用 tls,根據環(huán)境不同,來(lái)選擇開(kāi)啟和關(guān)閉。如果提示報錯 email.loginAuth failed: 530 Must issue a STARTTLS command first,那么就需要設置為 true。著(zhù)重說(shuō)明一下,如果開(kāi)啟了 tls,提示報錯 starttls failed: x509: certificate signed by unknown authority,需要在 email_configs 下配置 insecure_skip_verify: true 來(lái)跳過(guò) tls 驗證。

templates: 告警模板目錄,可以不編寫(xiě)模板,有默認模板

    Subject: '{{ template "email.default.subject" . }}'

    html: '{{ template "email.default.html" . }}'

route:報警的分發(fā)設置

    group_by:分組

    group_wait: 分組等待時(shí)間

    group_interval: 5m 每組時(shí)間間隔

    repeat_interval: 10m 重復間隔

    receiver: 接收方式,請注意!這里的名字要對應下面receivers中的任何一個(gè)名字,不然會(huì )報錯,這里其實(shí)就是選擇方式,有郵箱,企業(yè)微信,wehook,victorops等等

receivers:接受方式匯總,即告警方式匯總

例子:

receivers:

- name:'default-receiver' 

email_configs:

- to:'whiiip@163.com'    

  html: '{{ template "alert.html" . }}'    

  headers: { Subject: "[WARN] 報警郵件test"}

inhibit_rules:   抑制規則

當存在與另一組匹配的警報(源)時(shí),抑制規則將禁用與一組匹配的警報(目標)。

包括源匹配和目標匹配

alertmanager官方是這樣說(shuō)的

Inhibition

Inhibition is a concept of suppressing notifications for certain alerts if certain other alerts are already firing.

Example:  An alert is firing that informs that an entire cluster is not reachable. Alertmanager can be configured to mute all other alerts concerning this cluster if that particular alert is firing. This prevents notifications for hundreds or thousands of firing alerts that are unrelated to the actual issue.

Inhibitions are configured through the Alertmanager's configuration file.

當存在與另一組匹配器匹配的警報(源)時(shí),禁止規則會(huì )使與一組匹配器匹配的警報(目標)靜音。目標警報和源警報的equal列表中的標簽名稱(chēng)都必須具有相同的標簽值。

在語(yǔ)義上,缺少標簽和帶有空值的標簽是同一件事。因此,如果equal源警報和目標警報都缺少列出的所有標簽名稱(chēng),則將應用禁止規則。

為了防止警報禁止自身,與規則的目標和源端 都 匹配的警報不能被警報(包括其本身)為真來(lái)禁止。但是,我們建議選擇目標匹配器和源匹配器,以使警報永遠不會(huì )同時(shí)匹配雙方。這很容易進(jìn)行推理,并且不會(huì )觸發(fā)此特殊情況。

接著(zhù)是規則rules

不解釋了,自己研究官方文檔

alertmanager的非容器安裝方式是

 wget https://github.com/prometheus/alertmanager/releases/download/v0.20.0/alertmanager-0.20.0.linux-amd64.tar.gz

tar xf alertmanager-0.20.0.linux-amd64.tar.gz

mv alertmanager-0.20.0.linux-amd64 /usr/local/alertmanager

vim /usr/lib/systemd/system/alertmanager.service

[Unit]

Description=alertmanager

Documentation=https://github.com/prometheus/alertmanager

After=network.target

[Service]

Type=simple

User=root

ExecStart=/usr/local/alertmanager/alertmanager --config.file=/usr/local/alertmanager/alertmanager.yml

Restart=on-failure

[Install]

WantedBy=multi-user.target

Alertmanager 安裝目錄下默認有 alertmanager.yml 配置文件,可以創(chuàng )建新的配置文件,在啟動(dòng)時(shí)指定即可。

其余方式和上面一樣

接著(zhù)是Prometheus,我之前的博客里有寫(xiě)了容器安裝和非容器安裝的方法,自己去翻閱

然后是在prometheus.yml里修改相關(guān)配置

首先去掉alertmanager的注釋?zhuān)某蒊P加你設置的端口號,默認是9093

接著(zhù)在rule_files: 下面寫(xiě)下規則文件的絕對路徑,可以是具體文件名,也可以是*,也可以分幾級文件,*默認是全部匹配

接著(zhù)是被監控項的設置,這里設置完成可以在Prometheus網(wǎng)頁(yè)里的targets里看得到

請注意,這里設置的參數名字要和rule規則中設置的參數名字一模一樣,否則你的prometheus服務(wù)會(huì )無(wú)法啟動(dòng),然后報錯

如果不在特定的job下設置scrape_interval(優(yōu)先級高于全局),則默認采用gobal下的scrape_interval

最后模擬節點(diǎn)掉線(xiàn),手動(dòng)關(guān)閉node-exporter或者Cadvisor

docker stop node-exporter 或者容器ID

docker stop cadvisor 或者容器ID

或者把up{{job='prometheus'}} == 1 設置成1,反向設置,不用關(guān)掉服務(wù),就可以看看告警成不成功

說(shuō)明一下 Prometheus Alert 告警狀態(tài)有三種狀態(tài):Inactive、Pending、Firing。

Inactive:非活動(dòng)狀態(tài),表示正在監控,但是還未有任何警報觸發(fā)。

Pending:表示這個(gè)警報必須被觸發(fā)。由于警報可以被分組、壓抑/抑制或靜默/靜音,所以等待驗證,一旦所有的驗證都通過(guò),則將轉到 Firing 狀態(tài)。

Firing:將警報發(fā)送到 AlertManager,它將按照配置將警報的發(fā)送給所有接收者。一旦警報解除,則將狀態(tài)轉到 Inactive,如此循環(huán)。

沒(méi)有配置告警模板時(shí)的默認告警格式是這樣的

節點(diǎn)恢復后郵件告知是這樣的

寫(xiě)了模板后是這樣的

還要重新映射模板文件夾路徑到alertmanager容器里的相對路徑,然后重啟alertmanager,當然,如果目錄下沒(méi)有模板文件,則不顯示

告警模板

在alertmanager.yml中修改相關(guān)設置

重啟alertmanager

docker restart alertmanager

最終效果不是很好

普羅米修斯縮寫(xiě)

“PRW”是“Promethean”的縮寫(xiě),意思是“普羅米修斯”。

普羅米修斯(古希臘語(yǔ):Προμηθε__、英語(yǔ):Prometheus,名字的含義是“先見(jiàn)之明”),是古希臘神話(huà)中泰坦一族的神明之一,他是地母蓋亞與烏拉諾斯的兒子伊阿珀托斯與克呂墨涅所生,和厄庇墨透斯是兄弟。

版權聲明: 本站僅提供信息存儲空間服務(wù),旨在傳遞更多信息,不擁有所有權,不承擔相關(guān)法律責任,不代表本網(wǎng)贊同其觀(guān)點(diǎn)和對其真實(shí)性負責。如因作品內容、版權和其它問(wèn)題需要同本網(wǎng)聯(lián)系的,請發(fā)送郵件至 舉報,一經(jīng)查實(shí),本站將立刻刪除。

亚洲精品视频一区二区,一级毛片在线观看视频,久久国产a,狠狠狠色丁香婷婷综合久久五月,天天做天天欢摸夜夜摸狠狠摸