Added curl for docker grafana
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								all-monitor.tar
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								all-monitor.tar
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -9,27 +9,49 @@ volumes: | ||||
|   grafana_ds:  | ||||
|  | ||||
| services: | ||||
|   influxdb: | ||||
| #  influxdb: | ||||
| #    image: influxdb:alpine | ||||
| #    container_name: influxdb | ||||
| #    ports: | ||||
| #      - "8087:8086" | ||||
| #    networks: | ||||
| #      - public | ||||
| #      - private | ||||
| #    volumes: | ||||
| #      - ./data/influxdb:/var/lib/influxdb:rw | ||||
| #    environment: | ||||
| #      INFLUXDB_REPORTING_DISABLED: "true" | ||||
| #      INFLUXDB_DB: telegraf | ||||
| #      INFLUXDB_USER: telegraf | ||||
| #      INFLUXDB_USER_PASSWORD: nimda321 | ||||
|  | ||||
|   influxdb_cli: | ||||
| #    links: | ||||
| #      - influxdb | ||||
|     image: influxdb:alpine | ||||
|     container_name: influxdb | ||||
|     ports: | ||||
|     container_name: influxdb2 | ||||
|     ports:  | ||||
|       - "8086:8086" | ||||
|     networks: | ||||
|       - public | ||||
|       - private | ||||
|     volumes: | ||||
|       - ./data/influxdb:/var/lib/influxdb | ||||
|     environment: | ||||
|       INFLUXDB_REPORTING_DISABLED: "true" | ||||
|       INFLUXDB_DB: telegraf | ||||
|       INFLUXDB_USER: telegraf | ||||
|       INFLUXDB_USER_PASSWORD: nimda321 | ||||
|     volumes:  | ||||
|       - ./data/influxdb:/var/lib/influxdb:rw | ||||
|     environment:  | ||||
|       - DOCKER_INFLUXDB_INIT_MODE=setup | ||||
|       - DOCKER_INFLUXDB_INIT_USERNAME=admin | ||||
|       - DOCKER_INFLUXDB_INIT_PASSWORD=startadmin | ||||
|       - DOCKER_INFLUXDB_INIT_ORG=myorg | ||||
|       - DOCKER_INFLUXDB_INIT_BUCKET=start | ||||
|       - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=2il9Lpevo6ujoaLhxN5Euinz39UxfzeKaChv7O99B69NDxH2XNvu-zxow5vL-1StZ0Sxu7uw4UyIySEI95H1IQ== | ||||
|     entrypoint: ["./entrypoint.sh"] | ||||
|     restart: on-failure:10 | ||||
|  #   depends_on: | ||||
|  #     - influxdb | ||||
|  | ||||
|   grafana: | ||||
|       image: grafana/grafana:5.1.3 | ||||
| #      image: grafana/grafana:5.1.3 | ||||
|       image: grafana/grafana:latest | ||||
|       container_name: grafana | ||||
|       ports: | ||||
|         - "3001:3000" | ||||
|         - "3000:3000" | ||||
|       networks: | ||||
|         - public | ||||
|         - private | ||||
| @@ -62,6 +84,10 @@ services: | ||||
|     environment: | ||||
|       # real influx host | ||||
|       INFLUXDB_URI: "http://localhost:8086" | ||||
|       DOCKER_INFLUXDB_INIT_ORG: "myorg" | ||||
|       DOCKER_INFLUXDB_INIT_BUCKET: "start" | ||||
|       DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: "2il9Lpevo6ujoaLhxN5Euinz39UxfzeKaChv7O99B69NDxH2XNvu-zxow5vL-1StZ0Sxu7uw4UyIySEI95H1IQ==" | ||||
|  | ||||
|  | ||||
|   prometheus: | ||||
|     image: quay.io/prometheus/prometheus:v2.0.0 | ||||
|   | ||||
| @@ -1,6 +1,8 @@ | ||||
| #!/bin/bash | ||||
| #set -e | ||||
|  | ||||
| apk add curl | ||||
|  | ||||
| # ADD INFLUXDB DATASOURCE | ||||
| curl -s -H "Content-Type: application/json" \ | ||||
|     -XPOST http://admin:nimda321@localhost:3000/api/datasources \ | ||||
| @@ -9,7 +11,7 @@ curl -s -H "Content-Type: application/json" \ | ||||
|     "name": "influxdb", | ||||
|     "type": "influxdb", | ||||
|     "access": "proxy", | ||||
|     "url": "http://influxdb:8086", | ||||
|     "url": "http://influxdb2:8086", | ||||
|     "database": "telegraf", | ||||
|     "user":"telegraf", | ||||
|     "password":"nimda321", | ||||
|   | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -42,29 +42,29 @@ omit_hostname = false | ||||
| ############################################################################### | ||||
|  | ||||
| # Configuration for influxdb server to send metrics to | ||||
| [[outputs.influxdb]] | ||||
| # [[outputs.influxdb]] | ||||
|  | ||||
| ## The full HTTP or UDP endpoint URL for your InfluxDB instance. | ||||
| ## Multiple urls can be specified as part of the same cluster, | ||||
| ## this means that only ONE of the urls will be written to each interval. | ||||
| # urls = ["udp://localhost:8089"] # UDP endpoint example | ||||
|  | ||||
| urls = ["$INFLUXDB_URI"] # required | ||||
| # urls = ["$INFLUXDB_URI"] # required | ||||
|  | ||||
|  | ||||
| ## The target database for metrics (telegraf will create it if not exists). | ||||
| database = "telegraf" # required | ||||
| # database = "telegraf" # required | ||||
| ## Retention policy to write to. Empty string writes to the default rp. | ||||
| retention_policy = "" | ||||
| # retention_policy = "" | ||||
| ## Write consistency (clusters only), can be: "any", "one", "quorum", "all" | ||||
| write_consistency = "any" | ||||
| # write_consistency = "any" | ||||
| ## Write timeout (for the InfluxDB client), formatted as a string. | ||||
| ## If not provided, will default to 5s. 0s means no timeout (not recommended). | ||||
| timeout = "5s" | ||||
| username = "telegraf" | ||||
| password = "nimda321" | ||||
| # timeout = "5s" | ||||
| # username = "telegraf" | ||||
| # password = "nimda321" | ||||
| ## Set the user agent for HTTP POSTs (can be useful for log differentiation) | ||||
| user_agent = "telegraf-agent" | ||||
| # user_agent = "telegraf-agent" | ||||
| ## Set UDP payload size, defaults to InfluxDB UDP Client default (512 bytes) | ||||
| # udp_payload = 512 | ||||
|  | ||||
| @@ -75,6 +75,24 @@ user_agent = "telegraf-agent" | ||||
| ## Use SSL but skip chain & host verification | ||||
| # insecure_skip_verify = false | ||||
|  | ||||
| # Configuration for sending metrics to InfluxDB 2.0 | ||||
| [[outputs.influxdb_v2]] | ||||
|   ## The URLs of the InfluxDB cluster nodes. | ||||
|   ## | ||||
|   ## Multiple URLs can be specified for a single cluster, only ONE of the | ||||
|   ## urls will be written to each interval. | ||||
|   ##   ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"] | ||||
|   urls = ["http://127.0.0.1:8086"] | ||||
|  | ||||
|   ## Token for authentication. | ||||
| #  token = "2il9Lpevo6ujoaLhxN5Euinz39UxfzeKaChv7O99B69NDxH2XNvu-zxow5vL-1StZ0Sxu7uw4UyIySEI95H1IQ==" | ||||
|   token = "$DOCKER_INFLUXDB_INIT_ADMIN_TOKEN" | ||||
|  | ||||
|   ## Organization is the name of the organization you wish to write to. | ||||
|   organization = "$DOCKER_INFLUXDB_INIT_ORG" | ||||
|  | ||||
|   ## Destination bucket to write into. | ||||
|   bucket = "$DOCKER_INFLUXDB_INIT_BUCKET" | ||||
|  | ||||
| ############################################################################### | ||||
| #                            INPUT PLUGINS                                    # | ||||
| @@ -148,3 +166,8 @@ ignore_fs = ["tmpfs", "devtmpfs"] | ||||
|   ## Directories to search within for the conntrack files above. | ||||
|   ## Missing directrories will be ignored. | ||||
|   dirs = ["/proc/sys/net/ipv4/netfilter","/proc/sys/net/netfilter"] | ||||
|  | ||||
| [[inputs.x509_cert]] | ||||
|   ## List certificate sources | ||||
|   sources = ["https://www.dataport.de:443", "https://mail.unixweb.de:443", "https://chat.socialnetwork24.com:443", "https://cloud.unixweb.net:443", "https://blog.unixweb.de:443", "https://video.openws.de:443"] | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Joachim
					Joachim