|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| .circleci/ | H | 09-Jul-2021 | - | 180 | 176 |
| .github/ | H | 09-Jul-2021 | - | 66 | 42 |
| .hooks/ | H | 09-Jul-2021 | - | 24 | 17 |
| _tools/tmpl/ | H | 09-Jul-2021 | - | 310 | 225 |
| client/ | H | 09-Jul-2021 | - | 4,702 | 3,758 |
| cmd/ | H | 09-Jul-2021 | - | 22,070 | 17,795 |
| coordinator/ | H | 09-Jul-2021 | - | 3,779 | 2,970 |
| docker/ | H | 09-Jul-2021 | - | 134 | 97 |
| etc/ | H | 09-Jul-2021 | - | 795 | 604 |
| flux/ | H | 09-Jul-2021 | - | 6,834 | 5,862 |
| importer/ | H | 09-Jul-2021 | - | 490 | 349 |
| internal/ | H | 09-Jul-2021 | - | 1,194 | 935 |
| kit/ | H | 09-Jul-2021 | - | 6,731 | 5,178 |
| logger/ | H | 09-Jul-2021 | - | 494 | 358 |
| man/ | H | 03-May-2022 | - | 80 | 55 |
| mock/ | H | 09-Jul-2021 | - | 317 | 253 |
| models/ | H | 09-Jul-2021 | - | 6,188 | 4,902 |
| monitor/ | H | 09-Jul-2021 | - | 1,511 | 1,148 |
| patches/ | H | 09-Jul-2021 | - | 3,947 | 3,852 |
| pkg/ | H | 09-Jul-2021 | - | 14,913 | 11,749 |
| prometheus/ | H | 09-Jul-2021 | - | 470 | 375 |
| query/ | H | 09-Jul-2021 | - | 45,287 | 36,118 |
| releng/ | H | 09-Jul-2021 | - | 1,122 | 832 |
| scripts/ | H | 09-Jul-2021 | - | 426 | 292 |
| services/ | H | 09-Jul-2021 | - | 27,881 | 21,866 |
| storage/ | H | 09-Jul-2021 | - | 35,419 | 30,644 |
| tcp/ | H | 09-Jul-2021 | - | 532 | 383 |
| tests/ | H | 09-Jul-2021 | - | 13,340 | 11,772 |
| toml/ | H | 09-Jul-2021 | - | 551 | 453 |
| tsdb/ | H | 09-Jul-2021 | - | 93,753 | 70,694 |
| uuid/ | H | 09-Jul-2021 | - | 117 | 60 |
| .dockerignore | H A D | 09-Jul-2021 | 6 | 2 | 1 |
| .gitignore | H A D | 09-Jul-2021 | 1,004 | 94 | 69 |
| .mention-bot | H A D | 09-Jul-2021 | 166 | 7 | 6 |
| CHANGELOG.md | H A D | 09-Jul-2021 | 251.3 KiB | 3,440 | 2,704 |
| CODING_GUIDELINES.md | H A D | 09-Jul-2021 | 3.7 KiB | 83 | 67 |
| CONTRIBUTING.md | H A D | 09-Jul-2021 | 11.8 KiB | 302 | 218 |
| DEPENDENCIES.md | H A D | 09-Jul-2021 | 4.5 KiB | 62 | 47 |
| Dockerfile | H A D | 09-Jul-2021 | 603 | 21 | 17 |
| Dockerfile_build_ubuntu64 | H A D | 09-Jul-2021 | 1.1 KiB | 50 | 42 |
| LICENSE | H A D | 09-Jul-2021 | 1.1 KiB | 21 | 16 |
| Makefile | H A D | 09-Jul-2021 | 58 | 5 | 3 |
| QUERIES.md | H A D | 09-Jul-2021 | 5.3 KiB | 191 | 131 |
| README.md | H A D | 09-Jul-2021 | 3.9 KiB | 80 | 54 |
| TODO.md | H A D | 09-Jul-2021 | 467 | 10 | 6 |
| appveyor.yml | H A D | 09-Jul-2021 | 870 | 38 | 31 |
| build.py | H A D | 09-Jul-2021 | 40.9 KiB | 1,000 | 869 |
| build.sh | H A D | 09-Jul-2021 | 519 | 23 | 12 |
| checkfmt.sh | H A D | 09-Jul-2021 | 1.2 KiB | 32 | 21 |
| errors.go | H A D | 09-Jul-2021 | 1.1 KiB | 43 | 26 |
| go.mod | H A D | 09-Jul-2021 | 2.3 KiB | 57 | 54 |
| go.sum | H A D | 09-Jul-2021 | 116.5 KiB | 1,199 | 1,198 |
| influxdb.go | H A D | 09-Jul-2021 | 303 | 7 | 1 |
| nightly.sh | H A D | 09-Jul-2021 | 1.3 KiB | 58 | 43 |
| node.go | H A D | 09-Jul-2021 | 2 KiB | 122 | 97 |
| pkg-config.sh | H A D | 09-Jul-2021 | 456 | 15 | 8 |
| test-flux.sh | H A D | 09-Jul-2021 | 1,015 | 50 | 41 |
| test.sh | H A D | 09-Jul-2021 | 4.1 KiB | 166 | 107 |
| tools.go | H A D | 09-Jul-2021 | 249 | 12 | 8 |
| write-gdm-deps.sh | H A D | 09-Jul-2021 | 62 | 3 | 1 |
README.md
1# InfluxDB [![Circle CI](https://circleci.com/gh/influxdata/influxdb/tree/master-1.x.svg?style=svg)](https://circleci.com/gh/influxdata/influxdb/tree/master-1.x) [![Go Report Card](https://goreportcard.com/badge/github.com/influxdata/influxdb)](https://goreportcard.com/report/github.com/influxdata/influxdb) [![Docker pulls](https://img.shields.io/docker/pulls/library/influxdb.svg)](https://hub.docker.com/_/influxdb/)
2
3# ATTENTION:
4
5Around January 11th, 2019, `master` on this repository will become InfluxDB 2.0 code. The content of `infludata/platform` will be moved to this repository. If you rely on `master`, you should update your dependencies to track the `maxter-1.x` branch.
6
7## An Open-Source Time Series Database
8
9InfluxDB is an open source **time series database** with
10**no external dependencies**. It's useful for recording metrics,
11events, and performing analytics.
12
13## Features
14
15* Built-in [HTTP API](https://docs.influxdata.com/influxdb/latest/guides/writing_data/) so you don't have to write any server side code to get up and running.
16* Data can be tagged, allowing very flexible querying.
17* SQL-like query language.
18* Simple to install and manage, and fast to get data in and out.
19* It aims to answer queries in real-time. That means every data point is
20 indexed as it comes in and is immediately available in queries that
21 should return in < 100ms.
22
23## Installation
24
25We recommend installing InfluxDB using one of the [pre-built packages](https://influxdata.com/downloads/#influxdb). Then start InfluxDB using:
26
27* `service influxdb start` if you have installed InfluxDB using an official Debian or RPM package.
28* `systemctl start influxdb` if you have installed InfluxDB using an official Debian or RPM package, and are running a distro with `systemd`. For example, Ubuntu 15 or later.
29* `$GOPATH/bin/influxd` if you have built InfluxDB from source.
30
31## Getting Started
32
33### Create your first database
34
35```
36curl -XPOST "http://localhost:8086/query" --data-urlencode "q=CREATE DATABASE mydb"
37```
38
39### Insert some data
40```
41curl -XPOST "http://localhost:8086/write?db=mydb" \
42-d 'cpu,host=server01,region=uswest load=42 1434055562000000000'
43
44curl -XPOST "http://localhost:8086/write?db=mydb" \
45-d 'cpu,host=server02,region=uswest load=78 1434055562000000000'
46
47curl -XPOST "http://localhost:8086/write?db=mydb" \
48-d 'cpu,host=server03,region=useast load=15.4 1434055562000000000'
49```
50
51### Query for the data
52```JSON
53curl -G "http://localhost:8086/query?pretty=true" --data-urlencode "db=mydb" \
54--data-urlencode "q=SELECT * FROM cpu WHERE host='server01' AND time < now() - 1d"
55```
56
57### Analyze the data
58```JSON
59curl -G "http://localhost:8086/query?pretty=true" --data-urlencode "db=mydb" \
60--data-urlencode "q=SELECT mean(load) FROM cpu WHERE region='uswest'"
61```
62
63## Documentation
64
65* Read more about the [design goals and motivations of the project](https://docs.influxdata.com/influxdb/latest/).
66* Follow the [getting started guide](https://docs.influxdata.com/influxdb/latest/introduction/getting_started/) to learn the basics in just a few minutes.
67* Learn more about [InfluxDB's key concepts](https://docs.influxdata.com/influxdb/latest/concepts/key_concepts/).
68
69## Contributing
70
71If you're feeling adventurous and want to contribute to InfluxDB, see our [contributing doc](https://github.com/influxdata/influxdb/blob/master-1.x/CONTRIBUTING.md) for info on how to make feature requests, build from source, and run tests.
72
73## Licensing
74
75See [LICENSE](./LICENSE) and [DEPENDENCIES](./DEPENDENCIES).
76
77## Looking for Support?
78
79InfluxDB offers a number of services to help your project succeed. We offer Developer Support for organizations in active development, Managed Hosting to make it easy to move into production, and Enterprise Support for companies requiring the best response times, SLAs, and technical fixes. Visit our [support page](https://influxdata.com/services/) or contact [sales@influxdb.com](mailto:sales@influxdb.com) to learn how we can best help you succeed.
80