re-enable influxdb
This commit is contained in:
parent
2700b4bcb0
commit
2d3f8d9f0f
@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package influxdb
|
package influxdb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package influxdb
|
package influxdb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -17,8 +17,11 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/google/cadvisor/storage"
|
"github.com/google/cadvisor/storage"
|
||||||
|
"github.com/google/cadvisor/storage/influxdb"
|
||||||
"github.com/google/cadvisor/storage/memory"
|
"github.com/google/cadvisor/storage/memory"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -40,7 +43,6 @@ func NewStorageDriver(driverName string) (storage.StorageDriver, error) {
|
|||||||
case "memory":
|
case "memory":
|
||||||
storageDriver = memory.New(*argSampleSize, *argHistoryDuration)
|
storageDriver = memory.New(*argSampleSize, *argHistoryDuration)
|
||||||
return storageDriver, nil
|
return storageDriver, nil
|
||||||
/*
|
|
||||||
case "influxdb":
|
case "influxdb":
|
||||||
var hostname string
|
var hostname string
|
||||||
hostname, err = os.Hostname()
|
hostname, err = os.Hostname()
|
||||||
@ -59,7 +61,6 @@ func NewStorageDriver(driverName string) (storage.StorageDriver, error) {
|
|||||||
// TODO(monnand): One hour? Or user-defined?
|
// TODO(monnand): One hour? Or user-defined?
|
||||||
1*time.Hour,
|
1*time.Hour,
|
||||||
)
|
)
|
||||||
*/
|
|
||||||
default:
|
default:
|
||||||
err = fmt.Errorf("Unknown database driver: %v", *argDbDriver)
|
err = fmt.Errorf("Unknown database driver: %v", *argDbDriver)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user